Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to display discounted pricing table

How to display discounted pricing table

Locked

Views: 1,641

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 May 2008, 4:17 PM
#1
invision avatar

invision

New Zenner

Join Date:
Mar 2008
Location:
Pickerington, OH
Posts:
30
Plugin Contributions:
0

How to display discounted pricing table

I'm trying to display a table of price discounts on my product detail pages, based on the information stored in the Products Price Manager. I've searched the forums, but haven't found anything that resembles what I'm trying to do.

I was able to display a table of discounts with code from That Software Guy's Quantity Discount mod (marketing example 4), but I don't want to use that because it only displays the discount in the checkout page and not on a per-product basis in the cart. That code gets its info from the quantity discount mod.

Any help or direction is greatly appreciated.

I'm running zen-cart 1.3.8.

12 May 2008, 4:19 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to display discounted pricing table

This Discount Prices should show on the Product Info page by default ...

To see if this is your template causing the problem, switch to the Classic Template and see if the table of Discounted Prices set up in the Products Price Manager now shows for you ...

12 May 2008, 4:48 PM
#3
invision avatar

invision

New Zenner

Join Date:
Mar 2008
Location:
Pickerington, OH
Posts:
30
Plugin Contributions:
0

Re: How to display discounted pricing table

Thanks, I'll check it out.

27 May 2008, 2:00 PM
#4
invision avatar

invision

New Zenner

Join Date:
Mar 2008
Location:
Pickerington, OH
Posts:
30
Plugin Contributions:
0

Re: How to display discounted pricing table

Sorry, I forgot to mention I also have the Zenmagick mod installed. Zenmagick takes over the product info page.

For anyone interested, I had to manually add a table to my product info page:
zenmagick/themes/TEMPLATE/contents/views/product_info.php

I duplicated that page from the zenmagick default theme folder (to leave the original intact) and added the following code:

<table> <tr> <td> <?php $zm_quantitypricediscount->getQuantityPriceDiscount($zm_product);?> </td> </tr> </table>

As you can see, it calls a built-in Zenmagick function to display this info. I just needed to dig a bit to find it. With some nice CSS formatting this does the trick!

27 May 2008, 4:27 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: How to display discounted pricing table

Thanks for the update on the reason why this was not showing and for posting your solution ... :smile:

27 May 2008, 9:55 PM
#6
dermanomann avatar

dermanomann

New Zenner

Join Date:
Feb 2006
Location:
New Zealand
Posts:
146
Plugin Contributions:
1

Re: How to display discounted pricing table

invision:

As you can see, it calls a built-in Zenmagick function to display this info. I just needed to dig a bit to find it. With some nice CSS formatting this does the trick!
Hi there,

Just to clarify, $zm_quantitypricediscount is not a build in function or object, but added to the template context by the ZenMagick plugin zm_quantitypricediscount.

Cheers, mano