| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do I not display the 'Weight' on my Product Detail pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#3
|
|||||||
|
|||||||
![]() THANKS!
![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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  : 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|