View Single Post
  #16  
Old 02-03-2010, 03:38 PM
  xcel's Avatar 
xcel xcel is offline
 

eXpert
  
Join Date: Nov 2008
Posts: 220
 

Default Re: Weight removing from product page

balinor to the rescue. this works in pro 4.1.9. thanks sir!

Quote:
Originally Posted by balinor
Be VERY careful when you are working with {if} tags. If you don't include the brackets, you could really mess your site up. Instead of all of those comment tags, just put a comment at the beginning and the end of the code, like this:

Code:
{*{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}*}

That will tell X-Cart to skip the whole thing, and won't leave a blank spot where the weight is supposed to be. No need for it to waste time running the {if} statement if there is nothing to process

FYI, this is how you can hide anything on any page. Just be sure to get both the opening and closing {if} tags.
__________________
X-Cart Gold Plus 4.6.6

Altered Cart - Checkout One
Altered Cart - Checkout One Payments
Altered Cart - Cash Rewards
Altered Cart - On Sale

Smack Digital - CDSEO
Smack Digital - CDSEO Rich Snippets
Smack Digital - xCMS

The xCart Store - xBanners2

Star Plugins - Cloud Zoom

Heavily Customized by Starts Here Ltd. (UK)
Reply With Quote