| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
showing the category in the featured product/search result | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
showing the category in the featured product/search result
i was looking a long time for a possibility to show the category of a product on the featured product page or in the search results. while there are some solutions around, they are all for older versions of x-cart. this mod works with 4.0.11 and is multilanguage-capable:
add the following code to '/include/func.php': Code:
then add the following code to 'featured_products.php' after the following line (probably line 69): Code:
add the same code to the file '/include/search.php' before the $products variable is assigned to $smarty. then you can modify your template file '/customer/main/products_t.tpl'. add the variable at the place where you would like to show the category of the current product. it must be in the correct {section} tag: Code:
hope this helps... regards, lukas.
__________________
-- xcart gold v4.0.11 [LAMP] |
|||||||
#2
|
|||||||
|
|||||||
Thanks for posting. I added code as suggested. Everything worked as stated with one exception.
Quote:
Quote:
Code:
__________________
Tyson McPherson X-Cart version 4.1.8 PHP 4.3.9 MySQL server 4.1.12-log MySQL client 4.1.12 Web server Apache/2.0.52 (Red Hat) Operation system Red Hat 3.4.6-2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|