| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding a link to category from product listing | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() One of my clients would like to have a link to a product's category in the product listing (customer/main/products_t.tpl). It would be similar to the featured products seen on this site: http://www.ncix.com/ - See how it says "More Processors" etc and links to the category? Does anyone know the smarty code to do this?
The cart version is 4.1.1 Thanks!!
__________________
~ Andrea Beight |
|||||||||
#2
|
|||||||
|
|||||||
![]() I would be interested in that too. Anyone have a suggestion?
Jamie xcartpro 4.1.1 [unix] |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Anyone have an answer for this....what variable would be used to add the category name to the featured products or products listing for 4.1.x?
Thanks, Louise
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
#4
|
|||||||
|
|||||||
![]() Hi All,
I would like to do this same thing (get a hold of the category name / id and use it in my featured products listing). Does anyone know how to alter the product query to include the stinking category of the product in the product array?!?!?
__________________
v 4.1.11, v 4.2 |
|||||||
#5
|
|||||||
|
|||||||
![]() Also searching for this... A shitload of junk in the smarty variables, yet a simple category of the product nowhere to be found!
__________________
X-Cart |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Here is a quick mod for this:
1. create a new Smarty modifier plugin -> "include/templater/plugins/modifier.getproductmaincat.php" with the following content: PHP Code:
2. add something like this: Code:
anywhere inside main section loop in the "skin1/customer/main/products_t.tpl" template. e.g. right before this code -> {*** Uncomment it if you need 'Buy Now' button ***
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#7
|
|||||||||
|
|||||||||
![]() This didn't work for me. :\
On my 4.1.10 build I was able to use the following: {$current_category.category} on product.tpl but on my 4.4 evaluation its not working. I need to show the category link on the product page. Is there any way to do this?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Has anyone been able to show the category name on product.tpl in 4.4x?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() 1. create a new Smarty modifier plugin -> "include/templater/plugins/modifier.getcatnamebyid.php" with the following content:
PHP Code:
2. add something like this: Code:
into the "skin/common_files/customer/main/product.tpl" template.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() Hi Alex,
Thanks for the idea. Unfortunately this solution doesn't seem to output anything though.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|