View Full Version : Free Shipping w/ Minimum Amount

02-06-2009, 12:00 PM
I am calling this v3.5e-C because it is based on the 3.5e version. I ignored v3.5f and the "Free Amount changes for Google Checkout Support" version because I didn't need any of that and wanted to keep complications out of my store. I also ignored v3.5e-b because I think the changes are unneccessary. And finally, I ignored v3.6f because I don't speak german and don't know what it does.

Basically this version that I am uploading is v3.5e PLUS I fixed the calculations where it takes into account whether to count products on special towards the minimum amount required to qualify for free shipping. Version 3.5e does account for products on special, but does not account for products on special purchased in multiple quantities. I simply rewrote that section. So if you want to use one of the other versions provided, you can simply change the following section.

In catalogincludesmodulesshippingfreeamount.php, find the section that checks whether MODULE_SHIPPING_FREEAMOUNT_HIDE_SPECIALS is true or not (around line 67), and replace that whole IF section with this

if ($cart->count_contents() > 0) {
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i