X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   SKU & Weight on Details Page (https://forum.x-cart.com/showthread.php?t=28623)

natdog 02-06-2007 01:16 PM

SKU & Weight on Details Page
 
How do remove the weight and sku field from the product details page. Have just installed my first package and this forum is great.

Dave

balinor 02-06-2007 01:56 PM

Re: SKU & Weight on Details Page
 
Hi Dave, welcome to the forum! Open up customer/main/product.tpl. The code you want to remove are these lines:

<tr>
<td width="30%">{$lng.lbl_sku}</td>
<td nowrap="nowrap" id="product_code">{$product.productcode}</td>
</tr>

{if $product.weight ne "0.00" || $variants ne ''}
<tr id="product_weight_box">
<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}


Moving this to the Template Editing forum. Good guide to which template is which is at the top of this forum :)

natdog 02-06-2007 02:29 PM

Re: SKU & Weight on Details Page
 
Thanks, worked like a charm.

herbj 02-15-2007 07:31 AM

Re: SKU & Weight on Details Page
 
I have the opposite request.
My Sku# does not show on the product details page nor after it is moved to the cart. It shows in product list only!

I have the x-cart generated "#XXXXX" that shows up after the Product name! But I would prefer to use my own!

Any options here?

e diddy 06-11-2007 07:37 PM

Re: SKU & Weight on Details Page
 
ah goody. you cant get it to come up huh. LOL

ChrisBarnett 06-26-2007 08:41 PM

Re: SKU & Weight on Details Page
 
Hello,

Also, it appears to still try and validate the fields. So if the fields are missing, then it will complain that they haven't been filled in!

Does anyone know where it validates the fields?

Cheers.


All times are GMT -8. The time now is 05:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.