# fischo

Members

9

## Profile Information

• Real Name
Jozef Fischer
1. ## [Contribution] QTpro - Quantity Tracking Professional

Hello, does anyone integrates GET 1 FREE (http://forums.oscommerce.com/index.php?showtopic=255288) into QTpro - Quantity Tracking Professional (http://addons.oscommerce.com/info/888) ?? Thanks....
2. ## Get 1 Free

Hello, does anyone integrates GET 1 FREE (http://forums.oscommerce.com/index.php?showtopic=255288) into QTpro - Quantity Tracking Professional (http://addons.oscommerce.com/info/888) ?? Thanks....
3. ## Get 1 Free

.... hm, I have downloaded Version 1.4.2... there is line 489 like this: 'quantity' => \$free_quantity, If we multiply 'quantity' => \$free_quantity * \$get_1_free['products_free_quantity'], than we can get more than maximum allowed free items per one shopping cart....
4. ## Get 1 Free

FINALLY I FOUND THAT BUG! And It was not my error in installation!!! 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
5. ## Get 1 Free

I have set "Maximum Free Products: " to 10...
6. ## Get 1 Free

do you have any tip where I should find that error? Thanks.
7. ## Get 1 Free

Hello, I have installed your contribution and there is any bug: when I set: Quantity to Qualify: 2 Quantity of Free Product: 4 (I set it to this product: http://www.fitpro.sk/product_info.php?products_id=352) When I put 2 products into cart, it gives me only 1 free product (instead of 4). Could anybody help me, please ? Thanks a million! :)
×