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

SKU and variants on products.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-08-2005, 03:50 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default SKU and variants on products.tpl

I have products with variants. I input a SKU for the main product details and then create separate SKUs for each variant. I'm getting different SKU reults showing, dependiong on which view I'm in:

-When I view the product page it gives me the main SKU I entered under product details i.e. NOT the variant SKU

-When I view a category or search listing it displays the SKU of the first variant I set up.

How do I get it so that both views display the product details SKU as opposed to the first product variant code?

Here's what I have in products/product templates:

customer/main/products.tpl:

Code:
{$lng.lbl_sku}: {$products[product].productcode}

customer/main/product.tpl:

Code:
{$lng.lbl_sku}: {$product.productcode}

I've tried putting the product.tpl code into products.tpl but it only shows the label.

Any ideas?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 07-20-2005, 07:15 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default yah

Yah - how about just hiding the sku# on the list page, and only showing it on the details page ;o)
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #3  
Old 07-20-2005, 10:53 PM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

LOL, I was thinking about doing that but I see that as a backward step!
__________________
4.4.2

and

4.6.1
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 03:46 AM.

   

 
X-Cart forums © 2001-2020