Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Hide Weight

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-23-2010, 02:53 PM
 
vw_airkooled vw_airkooled is offline
 

Member
  
Join Date: May 2009
Posts: 16
 

Default Hide Weight

Hello, I would like to hide the weight under the item details on each item. Thank you for the help
__________________
X-Cart v4.2.0
Reply With Quote
  #2  
Old 05-23-2010, 03:08 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Hide Weight

You can look in customer/main/product.tpl then find this:

Code:
{if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td class="property-name">{$lng.lbl_weight}</td> <td class="property-value"> <span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol} </td> </tr> {/if}

and change it to

Code:
{* {if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td class="property-name">{$lng.lbl_weight}</td> <td class="property-value"> <span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol} </td> </tr> {/if} *}
__________________
- Shane Munroe
Reply With Quote

The following user thanks Shamun for this useful post:
vw_airkooled (05-25-2010)
  #3  
Old 05-25-2010, 03:06 PM
 
vw_airkooled vw_airkooled is offline
 

Member
  
Join Date: May 2009
Posts: 16
 

Default Re: Hide Weight

Quote:
Originally Posted by Tal
You can look in customer/main/product.tpl then find this:

Code:
{if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td class="property-name">{$lng.lbl_weight}</td> <td class="property-value"> <span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol} </td> </tr> {/if}

and change it to

Code:
{* {if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td class="property-name">{$lng.lbl_weight}</td> <td class="property-value"> <span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol} </td> </tr> {/if} *}

Thanks! works perfectly!
__________________
X-Cart v4.2.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:49 PM.

   

 
X-Cart forums © 2001-2020