Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Where is the file for editing the table displayed by Quantity Discount...

Where is the file for editing the table displayed by Quantity Discount...

Locked

Views: 1,523

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Jul 2007, 7:27 PM
#1
flipjargendy avatar

flipjargendy

New Zenner

Join Date:
Jun 2007
Posts:
87
Plugin Contributions:
0

Where is the file for editing the table displayed by Quantity Discount...

On the product page there is a table below the description listing the discounts on that product. I would like to change the way that table looks, it is quite chunky.

I would also like to change the placement of the table as well. I want it at the top, above the description.

How would I go about this? I cannot find the file which contains the code for this table.

28 Aug 2007, 12:31 AM
#2
rainbow avatar

rainbow

New Zenner

Join Date:
Jun 2005
Posts:
6
Plugin Contributions:
0

Re: Where is the file for editing the table displayed by Quantity Discount...

Hi there, you probably have this sorted by now, just in case...

The file for moving the position of the quantity discount table is called tpl_product_info_display.php and stored under templates.

In this file, find the following text and move it to the place you want, e.g. perhaps under the text for product image:

<!--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 -->

To change the look of the table, you can use file: tpl_modules_products_quantity_discounts.php which is also saved under templates.

Hope this helps.

Rainbow

28 Aug 2007, 1:56 PM
#3
flipjargendy avatar

flipjargendy

New Zenner

Join Date:
Jun 2007
Posts:
87
Plugin Contributions:
0

Re: Where is the file for editing the table displayed by Quantity Discount...

No, I haven't figured it out! I thought I would just have to live with it the way it was. Thank you very much for the info! I will see if I can figure out how to do it. I think I'll be able to now that I know where to look :clap: