Silktide Cookie Consent Plugin for osCommerce

If you are using it, you need to make a code change as per this link.

Find:


<script type="text/javascript">window.cookieconsent_options = {"message":"{$message}", "dismiss":"{$dismiss}", "learnMore":"{$more}", "link":"{$link}", "theme":"{$theme}"};</script">
<script type="text/javascript"> src="//s3.amazonaws.com/cc.silktide.com/cookieconsent.latest.min.js"></script">

Change to:


<script>window.cookieconsent_options = {"message":"{$message}", "dismiss":"{$dismiss}", "learnMore":"{$more}", "link":"{$link}", "theme":"{$theme}"};</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>

That’s all folks.

Order Status Messages … Admin Change

I was approached by a long standing customer who uses the inbuilt “Order Status” system a lot (eg change from processing to delivered and so on). A nuisance of the system is that he had to copy and paste the same message multiple times per day when updating.

I know there are at least a couple of addons that can do the job, but they are all old, broken, tired, crap. So I set up to code up an integrated system that allows the shopowner to attach a message to each order status;

– took about 10 lines of code in orders_status.php file

Now when the status dropdown is changed, the system finds the relevant message and inserts into the comments box.

– 1 new block of code in orders.php

Non-invasive (although obviously as it is Admin side, there are core code changes), easy to use and solid.

Another 28 Days Of Code ?

During February 2015, some of you will remember I coded up some cool modules and released then day by day. 28 Days of Code was sort of a last minute idea which stemmed from an idea that dear old John made while in a chat with me…as it was last minute it was very stressful to get modules coded and ready each day during February.

Another 28 Days Of Code ?

To save the incredible stress of last year, I’m presently putting together some more modules and things for “Another 28 Days Of Code” ready for drip feed release in February 2016 – as of right now I am pretty much 9 days completed, and have ideas for another 2…

Sign up for “Another” Mailing List

Click here to go to the subscription form. If you were signed up for the 2015 version, perfect…you don’t need to sign up again. I guarantee no emails until February 1st 2016.

Limit Product Sales?

Today from a long standing client;

I want limit Product Sales to 1 per customer…

That seemed like a really strange question, as what shopowner in their right mind would want to limit sales? Then it became clear…this shopowner not only sells tangible items, but also intangible items such as event tickets.

Thinking further, I limit sales of some of my products to 20 (eg on my recent Responsive templates)…

My initial thought, before having an extra cup of coffee was to simply tell the shopowner to place a products_quantity of “1” on each product that he wants to limit. Absolutely dumb advice and of course no good, as the overall sales of the product is limited to one and one only…whereas this shopowner wants each customer to be limited to one purchase of a given product.

By re-using some code I had made previously, I managed to come up with a system to allow this Shopowner to easily and quickly place a limit per product, this is a whole new Admin page:

admin_limit

Admin Side Core Code Changes: NONE
– new admin page
– new entry in the “catalog” sidebox

Shop Side, I coded up a Header Tag module which activates on checkout_shipping.php, this HT module is a bit complicated, what does it do;

1. looks at each product in the cart and determines if there is a limit and if that limit has been reached or exceeded. If so error_message and redirect back to shopping cart to allow customer to adjust quantities
2. looks at previous orders and determines if the customer has previously ordered and reached the limit. If so error_message and redirect back to shopping cart to allow customer to adjust quantities.

shop_limit

Shop Side Core Code Changes: NONE
– new HT module installable via Admin

As you can see, quite a nice little system, giving you shopowners total flexibility in what you want to sell to your customers. Interested in this, or something similar – contact me at your convenience…