Totally Zenned
- Join Date:
- Feb 2010
- Posts:
- 2,159
- Plugin Contributions:
- 10
Post #1 by rbarbour
I am trying to apply a discount to quantity discounts
It shows and calculates correctly on the product listing page.
It shows and calculates correctly on the product info page.
It shows and calculates correctly on the shopping cart page through to checkout.
Problem is:
It is applying the discount from the first (db) row only ignoring products_id
so if:
product a has a discount of 5%
product b has no discount
product c has a discount of 20%
- no discount gets applied to
product b
- a discount of 5% get applied to
product a
product c
for some reason in function_prices using a db query (where) products_id='" . (int)$product_id . "'");
returns no discount
Any ideas?
link if needed
http://zcadditions(DOT)com/zc10101/