| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Related Products - Can I link to a folder? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() For one product in my site, I would like the Related Products table to link to an entire category. My idea was to edit the database and add a related product with an odd product number, such as 77777 (This willl never be used). I then modified related_products.tpl as follows thinking this would do what I wanted. I was wrong.
Code:
The result was that the Related Products box was gone completely. I would greatly appreciate any form of help. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Post in Template Editing, not here.
This forum for sharing Custom Modifications only, not posting user problems with templates. Quote:
You'll get a faster response in the correct forum. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() moved
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() I figured it out! If anyone was actually trying to figure this out, I thank you for the effort.
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() Why not share your results? That is how we all learn.
I'd love to know the answer you figured out. |
|||||||||
#6
|
|||||||
|
|||||||
![]() Good Idea. I figured out that the xcart_product_links table would delete an upselling link if the number did not correspond to an actual product. To remedy this, I created a new product with the "Not Available" option enabled. I then used a similar format as before using the product number of this "invisible". The invisible product's number was "77298" so the code looked like the following:
Code:
999 being a generic number for the category I need to go to. It's a bit sloppy, but it works. The application for this is pretty wide as the link can take you to any place that is convenient for the product (even outside of your own site). This works a lot better than my previous direction too because there is no need to edit the database. The upselling link can be created using the normal method. |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Awesome, sounds like one for Custom Mods.
Thanks for sharing. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|