View Single Post
  #14  
Old 11-09-2017, 01:11 AM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Re: Hiding product weights and inventory quantities

Quote:
Originally Posted by CorpWest
What about hiding JUST the weight and keeping the SKU?
Would this work? .product-details .extra-fields { display: weight; }
If you use a custom module to provide your site changes, it's quite easy to then apply your "own version" of the relevant twig files, which in this thread's main discussion cases would be:

/skins/**your-custom-module**/customer/product/details/stock/body.twig for stock levels

/skins/**your-custom-module**/customer/product/details/common_attributes/common.product-attributes.weight.twig for weights

And if you needed to modify the sku display, that's here too:

/skins/**your-custom-module**/customer/product/details/common_attributes/common.product-attributes.sku.twig
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote