Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Change 'SKU1' to '1'

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-07-2010, 03:39 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default 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.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 08-07-2010, 04:32 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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.
__________________
- Shane Munroe
Reply With Quote

The following user thanks Shamun for this useful post:
Sisom (08-08-2010)
  #3  
Old 08-08-2010, 02:29 AM
  kevfromwiganinlancashire's Avatar 
kevfromwiganinlancashire kevfromwiganinlancashire is offline
 

X-Adept
  
Join Date: Nov 2004
Location: Appley Bridge
Posts: 563
 

Default 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
__________________
Php 5.4.16-36.el7_1
MySQL 5.5.41-2.el7_0
Apache
2.4.6-31.el7.centos



4.6.x stalled for now

5.2.6 developing
Reply With Quote

The following user thanks kevfromwiganinlancashire for this useful post:
Sisom (08-08-2010)
  #4  
Old 08-08-2010, 08:03 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default 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.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020