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

How do I not display the 'Weight' on my Product Detail pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-05-2005, 07:23 AM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default How do I not display the 'Weight' on my Product Detail pages

I don't want to display the weight on my product detail pages, how do I remove it but still keep it on the admin side for calculating shipping?

Thanks

Shaun
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #2  
Old 10-05-2005, 07:49 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

You just need to edit the file that displays it:
customer/main/product.tpl

Around line 28, remove or comment out {$lng.lbl_weight} or the whole cell if it fits into your design.

That way you are just not displaying it, but it still works for carriage etc.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 10-05-2005, 10:53 AM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

THANKS!

__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #4  
Old 11-17-2005, 08:17 AM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default

Tried this mode above, and still displays the weight and g symbol, found another topic for removing the weight on the page and this lead to SMARTY FATAL errors, below is now a modified script on the PRODUCT.TPL file, by the way this is located in SKIN1/CUSTOMER/MAIN as some of you might find its saves searching your directory for the file......

MAKE copy of the file first Product.tpl, then:

Find in your Product.tpl file the code below:

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}

and replace with:

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}

This will then REMOVE the word Weight, REMOVE the Number in weight and REMOVE the symbol weight g or Kg lb etc.....

Hope this helps, spent many hours searching for a solution in the end messed around with the script me self.

Version i have is 4.0.13
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #5  
Old 11-17-2005, 08:29 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Thanks for posting the whole solution - I thought that once given the right file and line no. the rest was easy to work out.

If you were still having trouble you can always ask - could have saved you those hours looking.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #6  
Old 11-17-2005, 12:40 PM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default

Thats ok, it pays to search as ive learnt a little, i had after this got the total weight to now display on the checkout, with a few &nbsp: ive managed to even position it where i wanted. im not a programmer but like to see how things work, and if i find a solution i like to share also to help other novices.
I think the only thing wrong with my display total shipping is although it shows the customer total weight it doesnt carry this over to Invoice OR admin on orders!!!! guess this needs some more searching on the forums.....its all worth it in the end.... :P
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #7  
Old 03-27-2007, 10:38 PM
 
Scrapbooker Scrapbooker is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 52
 

Default Re: How do I not display the 'Weight' on my Product Detail pages

Good one, easy to understand instructions for another novice. It has helped me out so thanks Realsecurity and Paul!
__________________
Sean Doohan
www.scrapbookingwonders.com.au
Sydney, Australia
x-cart: v4.0.19
cuteftp
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 06:21 AM.

   

 
X-Cart forums © 2001-2020