Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Quantity Discounts (What am I missing)

Quantity Discounts (What am I missing)

Started by rbarbour on 20 May 2013, 12:33 AM · Views: 878

Results 1 to 4 of 4
20 May 2013, 12:33 AM
#1
rbarbour avatar

rbarbour

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/

20 May 2013, 4:02 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #2 by rbarbour

I figured it out :smile:

28 May 2013, 11:40 AM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #3 by rbarbour

I have this fully functioning:

Admin Price Manager screenshot:
[Attachment no longer available]

Catalog Product Info screenshot:
[Attachment no longer available]

Catalog Shopping Cart screenshot:
[Attachment no longer available]

Anyone interested in testing?

Anyone interested in as a plugin?

Only applies Quantity Discount Special Price if a Special Exists for that product.

Adds a Quantity Discount Special Price, either as a percentage off or amount off. You can see from the shopping cart screenshot I have tested all discount types.

9 Jun 2013, 3:10 PM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #4 by rbarbour

Here is the correct link to see in action, just click next to browse through the different discounting options.

I provided an ADMIN screenshot on each product info page to see how the totals got calculated.

Like I said I did no package this cause no one showed any interest

Demo - www[DOT]zcadditions[DOT]com/quantity_discount_special_prices/index.php?main_page=product_info&cPath=1&products_id=1