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 and variants on products.tpl (https://forum.x-cart.com/showthread.php?t=15071)

DanUK 07-08-2005 03:50 AM

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

instinctual 07-20-2005 07:15 PM

yah
 
Yah - how about just hiding the sku# on the list page, and only showing it on the details page ;o)

DanUK 07-20-2005 10:53 PM

LOL, I was thinking about doing that but I see that as a backward step! :wink:


All times are GMT -8. The time now is 12:34 AM.

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