forgot to add the link of the mod
http://www.oscommerce.com/community/contri...ns,1895/page,12
Here is the readme (i've edited it my site info and price info already)
SC Free Gift Contribution
By Norman Hinks. With help from G.Waudby
This is a basic code addition to provide a free gift option to most stores. I'm using it on MS2.2 and it works fine with the DHTML Menu active.
Set up a category for your free products but do not give it a name, set its position to 99. This ensures its the last thing on the menu if it does show!
Put your products in here as usual.
Using Php MyAdmin, alter the creation dates of the Free gifts in order to remove them from the New Products windows set the Year for last year.
Add this code to where ever you wish to link to your free gifts. e.g shopping_cart.php
<?php if ($cart->show_total()>=100) { ?>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2" color=red> <a href="http://waterlesscarwashproducts.com/catalog/product_info.php?products_id=54">You have spent enough for a free gift.<b> Click here </B>to choose one if you haven't already </a></font>
<?php
} else {
echo "<font face=Verdana size=2 color=red><b>";
echo "You only have to spend ";
echo $currencies->format(-$cart->show_total()+100);
echo " more to receive your free gift.</b>";
echo "</font>";
} ?>
The following changes are required to the above code.
www.your_site.co.uk/~ - set this to your own site
35 - This is the figure at which the free gift page is activated. This needs setting in two places.
default.php may need to be index.php as was my case.
cPath=169 - This needs to change to whatever your free category path is. If you have trouble working this out, give it a name and when it appears in the menu, click it and the path will be shown in the address bar. remove Temporary name and its hidden again!
Enjoy.
This doesnt stop multiple free gifts being selected but I'm sure that will come.