Zen Cart Logo
Forums / General Questions / How to edit the quantity discount box on the product page?

How to edit the quantity discount box on the product page?

Views: 1,030

Results 1 to 12 of 12
20 Feb 2015, 7:23 PM
#1
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

How to edit the quantity discount box on the product page?

Hi there :)

Hoping someone might be able to give me some direction on customizing the quantity discount box on my product page. Here's a link so you can see how it is currently set up: http://www.funwrappers.ca/index.php?main_page=product_info&cPath=3_20&products_id=1

I'd like to change the following:

"Qty Discounts New Price" to something a little simpler like 'Pricing"
Remove the first coloum where it shows a quantity of 1 for $0.00
Remove the bottom row where it says "*Discounts may vary....."

I've looked everywhere but cannot seem to find where to make these changes :frusty:

Thanks :smile:

20 Feb 2015, 7:42 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to edit the quantity discount box on the product page?

Use the Admin - Tools - Developers Tool Kit to search for parts of the text you want to change to find the files where they are defined.

20 Feb 2015, 7:56 PM
#3
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

Re: How to edit the quantity discount box on the product page?

Thanks Stevesh, that worked like a charm! I've managed to change the text but how do I remove the first column so it doesnt show 1 - $0.00? The first column is 1 - $0.00 and the second column is 1-25 - $1.49. It doesnt make sense to have the first column there.

Thanks :smile:

20 Feb 2015, 10:14 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to edit the quantity discount box on the product page?

I'm just guessing, but it looks like you set up a discount level for a quantity of 1 in Admin - Catalog - Products Price Manager.

20 Feb 2015, 10:38 PM
#5
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

Re: How to edit the quantity discount box on the product page?

stevesh:

I'm just guessing, but it looks like you set up a discount level for a quantity of 1 in Admin - Catalog - Products Price Manager.

I do have a price of $1.49 set for 1 and then the discount level 2 is a quantity of 26 with a discount value of $1.29. I'm lost as to why the additional column for 1 at $0.00 is showing. Here's a screen shot:

Attachment 15010

20 Feb 2015, 11:02 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to edit the quantity discount box on the product page?

And if you set the Product Price to 1.49 and remove the Discount for the quantity 1, does it work now?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Feb 2015, 11:42 PM
#7
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

Re: How to edit the quantity discount box on the product page?

Ajeh:

And if you set the Product Price to 1.49 and remove the Discount for the quantity 1, does it work now?

YES!!! It fixed the problem BUT it has created another one for me :( I don't like the price showing in the description becuase then customers won't know to click into the product to see further discounted prices. By having the pricing shown in the product description only, then customers will know that they more they order the bigger discount they get. Is there any way to accomplish what I need without setting the product price and removing iscount quantity 1?

Thanks :)

21 Feb 2015, 12:57 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How to edit the quantity discount box on the product page?

I am not sure if this will work for your site, but if you want to NOT set a Product Price and just use the Qty Discounts, you could use your templates and overrides for:
/includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php

and copy that, if not already dones, to:
/includes/templates/template_default/your_templates_dir/tpl_modules_products_quantity_discounts.php

and then add the code in RED:

    <tr>
[B]<?php
if ($show_qty != 1) {
?>
[/B]      <td align="center"><?php echo $show_qty . '<br />' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)); ?></td>
[B]<?php
}
?>
[/B]<?php
  foreach($quantityDiscounts as $key=>$quantityDiscount) {
?>
<td align="center"><?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></td>

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Feb 2015, 2:18 PM
#9
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

Re: How to edit the quantity discount box on the product page?

Ajeh:

I am not sure if this will work for your site, but if you want to NOT set a Product Price and just use the Qty Discounts, you could use your templates and overrides for:
/includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php

and copy that, if not already dones, to:
/includes/templates/template_default/your_templates_dir/tpl_modules_products_quantity_discounts.php

and then add the code in RED:

<tr>

[B]<?php if ($show_qty != 1) { ?>
[/B]
<td align="center"><?php echo $show_qty . '<br />' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)); ?></td>
[B]<?php } ?>
[/B]
<?php foreach($quantityDiscounts as $key=>$quantityDiscount) { ?>

<td align="center"><?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></td> ```

Will that end up removing the Product Price all together for all products? Only some of my products use quantity discounts and the ones that don't I use Product Price.

25 Feb 2015, 2:35 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How to edit the quantity discount box on the product page?

You are right that is a bad IF, try this one instead and see if it works to prevent the $0.00 from showing but allow the other settings to work right ...

if ($show_price != 0) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Mar 2015, 3:50 AM
#11
jcrewe avatar

jcrewe

Zen Follower

Join Date:
Jul 2011
Posts:
107
Plugin Contributions:
0

Re: How to edit the quantity discount box on the product page?

Ajeh:

You are right that is a bad IF, try this one instead and see if it works to prevent the $0.00 from showing but allow the other settings to work right ...

if ($show_price != 0) {


Worked like a charm!  Thanks Ajeh!!!! :D
3 Mar 2015, 1:55 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: How to edit the quantity discount box on the product page?

Thanks for the update that this worked for you ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!