| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Hiding weight in product page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hiding weight in product page
How do I hide the weight in the product display pages? If found some nice css examples to hide all, but I WANT the SKU - just not the weight? Does anyone have the syntax for that?
P.S. I still want to track and use the weight for shipping and even OK to display in checkout page, just not the product display pages for aesthetics...
__________________
x-cart v5.3.3.4 Shared Linux server we specialize in hosting for non-profits no special modules added - trying to see how vanilla works first |
|||||||
#2
|
|||||||
|
|||||||
Re: Hiding weight in product page
Log in as admin,
open the storefront, click the grey icon in the bottom left corner to open webmaster mode, choose template editor, make sure that "Pick templates from page" is enabled, point to the weight line to pick up the needed template (the right one is "customer/product/details/common_attributes/common.product-attributes.weight.twig") add "add false" to the if statement like this: Code:
Do it under the webmaster mode and the system will create the new theme_tweaker/customer/product/details/common_attributes/common.product-attributes.weight.twig file with custom code. As a result, the upgrade will continue work smoothly for you. The full list of the all edited templates are presented in the "Look & Feel" -> "Edited templates" section
__________________
Sincerely yours, Max Vydrin |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|