View Single Post
  #11  
Old 03-13-2016, 09:04 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Hiding product weights and inventory quantities

The weight is displayed by this template file:
skins/default/en/shopping_cart/parts/item.info.weight.tpl

If you check the file, it has the @ListChild directive that says that the template must be shown in the "cart.item.info" list. So, to removing the template from that list should be enough to hide the weight in the shopping cart.

I haven't tested the following code, but creating a custom module and adding the following method to your Main.php (or doing the same for Custom Skin module) should work:
PHP Code:
protected static function moveTemplatesInLists()
    {
        return array(
            
'shopping_cart/parts/item.info.weight.tpl' => array(
                static::
TO_DELETE => array(
                    array(
'cart.item.info', \XLite\Model\ViewList::INTERFACE_CUSTOMER)
                ),
            ),
        );
    } 
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote