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)
-   -   Change 'SKU1' to '1' (https://forum.x-cart.com/showthread.php?t=54955)

Sisom 08-07-2010 03:39 PM

Change 'SKU1' to '1'
 
I am trying to change
customer/main/product_details.tpl
so that the website shows

Product code 1

instead of

Product code SKU1

My client wants the term 'SKU' removed from the site, because customers won't know what an 'SKU' is.

I know that the code that produces it is in customer/main/product_details.tpl, on line 46:
Code:

<td class="property-value" id="product_code" colspan="2">{$product.productcode|escape}</td>

but I don't know where to find the $product variable, nor how it works. Can anybody help? (I am also interested in learning how the variables work, so if you know of a good beginner's tutorial, I would be very grateful.)
Many thanks.

Shamun 08-07-2010 04:32 PM

Re: Change 'SKU1' to '1'
 
SKU####

That's defined via the product page. If you wish to remove SKU, then the best way to avoid having to do modifications to code is just not to have the SKU in the item SKU.

kevfromwiganinlancashire 08-08-2010 02:29 AM

Re: Change 'SKU1' to '1'
 
Does he want to change from SKU:1 or SKU1?

If it's SKU: that you want to remove do it in languages, bl_sku just clear SKU from the box.

SKU1 just clear SKU before you type the product code 1

Kev

Sisom 08-08-2010 08:03 AM

Re: Change 'SKU1' to '1'
 
Thanks guys, I understand what is happening now. The product pulls the term 'SKU1' from the Product Management page, so there isn't anywhere I can change the variable to stop it pulling through the 'SKU' part, it's simply the same string that was entered (or automatically created) in the Product Management page.
So in this case (we haven't entered many products yet), the solution will be to simply change SKU1 to '1' as we enter new products.


All times are GMT -8. The time now is 01:32 AM.

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