Forums / Templates, Stylesheets, Page Layout / Edit the look of the quantity discount table on product page?

Edit the look of the quantity discount table on product page?

Started by amylynpace on 13 Nov 2012, 3:17 PM · Views: 1,239

Results 1 to 4 of 4
13 Nov 2012, 3:17 PM
#1
amylynpace avatar

amylynpace

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

Edit the look of the quantity discount table on product page?

Can anyone tell me the template file that controls the little quantity discount table displayed on the product page? I've been digging for awhile.
If there is a simple way to toggle its display on/off from the admin controls, that would also help me. Not sure if client wants to remove or revise.
Thanks!

13 Nov 2012, 4:11 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Edit the look of the quantity discount table on product page?

Depends on what you want to do. The id of that table is #productQuantityDiscounts table. If it's the ugly HTML border you want to remove, that seems to be hard coded in includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php.

You can turn it off by removing the quantity discount in Admin - Catalog - Specials. There's no way I know to turn it off from admin but keep the discount.

13 Nov 2012, 4:59 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,137
Plugin Contributions:
56

Re: Edit the look of the quantity discount table on product page?

Edit your stylesheet.css to add (at the bottom is fine):

#productQuantityDiscounts table {
border-collapse: collapse;
}

That will get rid of the "ugly" default table border.

13 Nov 2012, 6:31 PM
#4
amylynpace avatar

amylynpace

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

Re: Edit the look of the quantity discount table on product page?

Thanks for both answers. The discount information is written into the product description, so the table is overkill. Both of these suggestions help me a great deal!