graduated prices - staffelpreis littlefix
drdreuza <[email protected]> 20 Aug 2003 12:11:55 -0000
| Newsgroups | gmane.comp.web.oscommerce.features |
|---|---|
| Message-ID | <91b82f815d5e0bb6c076f14fdf2079f9@osCommerce-Forums> |
This message was sent from: Features
http://forums.oscommerce.com/viewtopic.php?p=216763#216763
----------------------------------------------------------------
Hello,
Using graduated prices I have the problem that if some graduated prices are not set or some quantity is 0 the prices in the cart are set to zero.
I have solved this with a very little substitution:
find catalog/includes/classes/shopping_cart.php
substitute the two lines on that file
[code]$products_price = $rabatt_price['unitprice'];[/code]
with
[code]if ($rabatt_price['quantity'] >0) {$products_price = $rabatt_price['unitprice'];}[/code]
I hope this is usefull. :)