| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Calling up category as a link? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello
How can i call up the category of the product you are viewing as a link? I am trying to add a link (view all items in this category) in my related products tpl. I've tried variations on Code:
Any help or pointers would be greatly appreciated. Thanks ![]() |
|||||||
#2
|
|||||||
|
|||||||
![]() That is indeed the correct way to link it......
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Sorry i'm not very good at getting my point across or PHP coding.
I tried this code from trial and error but it brings up the link to the very 1st category i inputed into database and not the category of the product that i'm currently viewing. |
|||||||
#4
|
|||||||||
|
|||||||||
![]() In your first post you say:
Quote:
Well, the issue here really is that the query to get the related products does not look up the primary Category ID and add it to the respective product in the $recommends array (or the $product_links array - there are two different modules that will generate the links for you like that). So to get this to work like you want, you would need to hack the recommends.php in the root dir and also the /modules/Upselling_Products/related_products.php file to query the xcart_products_categories table and add that to the array. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thank you for the answer.
Now that you've pointed out that related products does not look up the primary category id i feel a bit of a dufus. But hey if you don't ask you don't get. Hopefully i can do this now. Thanks again ![]() |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|