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)
-   -   Add category name to Upsells List (https://forum.x-cart.com/showthread.php?t=39901)

matthewstroh 05-19-2008 01:59 PM

Add category name to Upsells List
 
Does anyone know how to add the category name of an upsell item to the upsell list in related_products.tpl? I tried to use the following bit of code but it didn't work, though it seemed intuitive given the way the other variables on that page are served.

Code:

{$product_links[cat_num].category}


Also, I tried to add the following to my /include/func/func.product.php file to see if I could get it to pull the category from there, but no luck.
Code:

$fields[] = "$sql_tbl[products].category";


Anybody have any ideas?

Yurij 05-20-2008 02:35 AM

Re: Add category name to Upsells List
 
Quote:

Originally Posted by matthewstroh
Does anyone know how to add the category name of an upsell item to the upsell list in related_products.tpl? I tried to use the following bit of code but it didn't work, though it seemed intuitive given the way the other variables on that page are served.

Code:

{$product_links[cat_num].category}


Also, I tried to add the following to my /include/func/func.product.php file to see if I could get it to pull the category from there, but no luck.
Code:

$fields[] = "$sql_tbl[products].category";


Anybody have any ideas?


The table "products" does not have a field "category" :)))


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

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