Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Quantity Discount by catagory display problem

Quantity Discount by catagory display problem

Locked

Views: 2,333

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Oct 2009, 12:59 PM
#1
donscotti avatar

donscotti

New Zenner

Join Date:
Aug 2009
Posts:
27
Plugin Contributions:
0

Quantity Discount by catagory display problem

Quantity discount module. I have quantity discounts set for only certain catagories. I used the "Quantity Discounts Marketing Example 2 Code" to display a table of discounts, but it shows on every product page. How can I set it to display only for the catagories which have the discount?

www.r i c e s t u d i o s u p p l i e s . c o m

Thanks, Scott

2 Oct 2009, 2:34 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Quantity Discount by catagory display problem

I am not familar with this, but I am guessing that you are either calling a module or something for that table to show or just displaying the table in the template ...

You could surround that with an IF statement based on $current_category_id and only show it when on the right $current_category_id ...

2 Oct 2009, 4:48 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Quantity Discount by catagory display problem

If you post questions like this to the Quantity Discount support thread, I'll be more likely to see them.

Ajeh's advice is sound; see the "notes" section under marketing text

http://www.thatsoftwareguy.com/zencart_quantity_discounts.html#marketing

for specific examples of how to do this depending on how you have conditioned your discounts.

3 Oct 2009, 7:09 PM
#4
donscotti avatar

donscotti

New Zenner

Join Date:
Aug 2009
Posts:
27
Plugin Contributions:
0

Re: Quantity Discount by catagory display problem

Sorry, I'm really new at this.

I have included catagories rather than excluded them for Quantity Discounts. How would I modify

if ( ($discount->check() > 0) &&
(!$discount->exclude_category($current_category_id)) ) {

to include catagory 2, 5, and 7?

Thanks,

Scott

3 Oct 2009, 7:36 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Quantity Discount by catagory display problem

See your PM.