| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
removing weight | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() I did this by commenting out the following code in my /skin1/customer/main/product.tpl file.
Code:
__________________
- - 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 ![]() "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#4
|
|||||||
|
|||||||
![]() done!
thanks for your help guys
__________________
Using x cart 4.0.19 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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. |
|||||||
#6
|
|||||||
|
|||||||
![]() 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. |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|