| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Featured product to category page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi guys
We have featured products available on the first page however we are trying to change the link so that when the user clicks the product they are taken to the products category page rather than the products page. Does anyone know how to accomplish this? Thanks in advance
__________________
4.4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You will have to modify the featured products tmeplate and change the <a> tag to point to the category but I am not sure why you want it like this - as a customer if I click on product I will expect to see the product page not the category page
Not test but something like this <a href="home.php?cat={$product.categoryid}">
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Cheers for you reply. I know what you mean however our client wants it this way. Unfortunately the code you gave didn't work, it just comes up with cat= and it doesn't find the id.
__________________
4.4.2 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Either the array is not called product or the categoryid is not available in it. Use the webmaster mode to find out
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() I believe the array is called product however categoryid doesn't seem to work. Not really sure what to do
__________________
4.4.2 |
|||||||
#6
|
|||||||||
|
|||||||||
![]()
__________________
Sincerely yours, Alex Mulin VP of Business Development for X-Cart X-Payments product manager |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() categoryid may not be available in Featured Products. Dump $products in featured_products.php to see what's there. You may have to adjust featured_products.php or include/search.php to include categoryid.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|