Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Get 1 Free

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
Normalerweise wenn Sie einen Artikel haben mit Mindestbestellabnahme, dann erhöht dieser Contrib auch die kostenlose Artikel auf Mindestbestellabnahme.Also wenn Sie einen Artikel haben der min.best.menge ist 8 hat.

Und Get1free haben Sie für den Artikel als 10 eingestellt.

Wenn jemand das 10 stück bestellen möchte, dann sieht noch 8 Stück als kostenlos, nicht 1...

Das habe ich so verhindert:

nach der Installation finden Sie diesen Code in shopping_cart.php :

if ($products[$i]['quantity'] < $min_order['min_quant'] ) {
$products[$i]['min_quant']=$min_order['min_quant'];
}
}

und ersetze durch:

if ($products[$i]['final_price']>'0') {
//ende
if ($products[$i]['quantity'] < $min_order['min_quant'] )
$products[$i]['min_quant']=$min_order['min_quant'];
}
}

Danke
------
http://www.eksa-trade.com
http://www.es-toys.com
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...
   Posted on: 04/10/2009     See contribution details Request Installation with Paid service