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

removing weight

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-05-2007, 07:11 AM
 
mangoboom mangoboom is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 97
 

Default removing weight

Hi

does anyone know how to not show the weight of a product to a user? currently the weight is being displayed on the product detail page, we dont want to show the weight to the users.

thanks for any help
__________________
Using x cart 4.0.19
Reply With Quote
  #2  
Old 09-05-2007, 07:22 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: removing weight

Open up customer/main/product.tpl and remove or comment out this:

{if $product.weight ne "0.00"}<TR><TD width="30%">{$lng.lbl_weight}</TD><TD nowrap><SPAN id="product_weight">{$product.weight}</SPAN> {$config.General.weight_symbol}</TD></TR>{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-05-2007, 07:22 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: removing weight

I did this by commenting out the following code in my /skin1/customer/main/product.tpl file.

Code:
{if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td width="40%">{$lng.lbl_weight}</td> <td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol}</td> </tr> {/if}
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #4  
Old 09-05-2007, 08:02 AM
 
mangoboom mangoboom is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 97
 

Default Re: removing weight

done!

thanks for your help guys
__________________
Using x cart 4.0.19
Reply With Quote
  #5  
Old 01-11-2008, 05:21 PM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: removing weight

Hi,

Does this work for 4.1.9? Is it the same snipet or has it changed?

Thanks in advance!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #6  
Old 02-09-2008, 10:17 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: removing weight

Ok, I just got an answer form x-cart for the solution on 4.1.9 and here it is:

In order to have the weight removed from the product description page but still be calculated for the shipping you need to modify the "skin1/customer/main/product.tpl" on your server.

Find this code:

----CODE----

{if $product.weight ne "0.00" || $variants ne ''}<tr><td width="30%">{$lng.lbl_weight}</td><td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}< /span> {$config.General.weight_symbol}</td></tr>{/if}

----CODE----

and change it to this one:

----CODE----

{*if $product.weight ne "0.00" || $variants ne ''}<tr><td width="30%">{$lng.lbl_weight}</td><td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}< /span> {$config.General.weight_symbol}</td></tr>{/if*}

----CODE----

You can also change the code in your Admin area in the "Edit templates" section by following this route "customer ->main -> product.tpl" and perform the above mentioned change there.

Please, note that the incorrect changing of the templates code may lead to an incorrect display of the page.

Hope this can help someone else. It's easy - even I got it to work.
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
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 07:24 AM.

   

 
X-Cart forums © 2001-2020