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

Displaying SKU in product list in Backoffice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-28-2003, 05:29 PM
 
brgreene brgreene is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 70
 

Default Displaying SKU in product list in Backoffice

When I am modifying products I would like to disply the SKU number when i display the products in a list after doing a category search. Can anyone tell me how to do this?
__________________
Brian
X-Cart 4.0.18
Reply With Quote
  #2  
Old 05-17-2003, 11:41 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

HI,

If you are still needing this i have this sorted
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 05-19-2003, 02:17 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

go to file skin1/main/products.tpl

look around line 21

replace

Quote:
<font class=ItemsList>{$products[cat_num].product|escape|truncate:100:"...":false}</font>

with

Quote:
<font class=ItemsList>{$products[cat_num].productcode} - {$products[cat_num].product|escape|truncate:100:"...":false}</font>

notice i also adjusted the truncate amount, which is the length of characters shown in the product description
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 09:28 PM.

   

 
X-Cart forums © 2001-2020