BUGFIX:
in the file catalog/includes/classes/shopping_cart.php
at the end of this file - in the function function get1free ($products_id)
there was a line with this code:
$free_quantity = floor ($products_quantity / $get_1_free['products_qualify_quantity']);
I changed it to:
$free_quantity = floor ($products_quantity / $get_1_free['products_qualify_quantity']) * $get_1_free['products_free_quantity'];
BECAUSE:
when I set:
Quantity to Qualify: 2 X
Quantity of Free Product: 4 (Product B )
Maximum Free Items: 100
(Product A) A=2
B would be 4...
old code: floor(A/X) is floor(2/2) is 1
NEW CODE: floor(A/X)*B is floor(2/2)*4 is 4
COMPLETE PACKAGE, updated also install.txt and upgrade.txt...
More...





LinkBack URL
About LinkBacks









Bookmarks