Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Help! Quantity discount box missing in product page.

Help! Quantity discount box missing in product page.

Views: 770

Results 1 to 5 of 5
19 Jan 2013, 6:02 AM
#1
ticktok avatar

ticktok

New Zenner

Join Date:
Nov 2012
Posts:
21
Plugin Contributions:
0

Help! Quantity discount box missing in product page.

Hi, everyone.

I was trying to set up quantity discount for products, but the Quantity discount box won't show up in product page in my template.

and if I switch to the Classic Template, it shows up.

I search for : TEXT_FOOTER_DISCOUNT_QUANTITIES , and show like this below:

Attachment 11795

can anybody help me out? thanks!

19 Jan 2013, 9:06 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Help! Quantity discount box missing in product page.

ticktok:

I was trying to set up quantity discount for products, but the Quantity discount box won't show up in product page in my template.

and if I switch to the Classic Template, it shows up.

can anybody help me out? thanks!

Sounds to me like your template is missing the code needed to display this box. You'll need to edit your template to fix the problem. You can/should use the original template as an example.. It'll just be a matter of copying a line or 3 of code.

Cheers
Rod

19 Jan 2013, 9:21 AM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Help! Quantity discount box missing in product page.

If it's of any help, here's the code you'll need to add to your tpl_product_info_display.php file.

<!--bof Quantity Discounts table -->
<?php
  if ($products_discount_type != 0) { ?>
<?php
/**
 * display the products quantity discount
 */
 require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
  }
?>
<!--eof Quantity Discounts table -->

Where you add it to this file will determine where the box will be displayed on the page. The 'classic' template has this slotted in between the products attributes block and the Addition Product images block.

Cheers
Rod

PS. While you are editing this file, You should probably remove the code that produces:
后台-TOOL-, Define Pages Editor - 下拉选择 **define_middlebox_7.php **页面编辑它
This is clearly a coding error.

19 Jan 2013, 4:04 PM
#4
ticktok avatar

ticktok

New Zenner

Join Date:
Nov 2012
Posts:
21
Plugin Contributions:
0

Re: Help! Quantity discount box missing in product page.

thanks RodG,

you are totally right!

thanks to zen-cart and this forum and guys like you!

20 Jan 2013, 8:20 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Help! Quantity discount box missing in product page.

ticktok:

thanks RodG,

you are totally right!

thanks to zen-cart and this forum and guys like you!

Thanks, but you have to give yourself credit for this solving this one, after all, you did the smart thing by testing with the 'classic' template before seeking help. All I needed to do was make the obvious conclusion even more obvious :)

Cheers
Rod.