X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Upselling Products within product description. (https://forum.x-cart.com/showthread.php?t=74325)

hoosierglass 08-17-2016 08:39 AM

Upselling Products within product description.
 
I have managed to put the Related Products (upselling module) into the product description. What I would like to do is add an if statement so that if there are assigned products to the main product it will show them and if there is not then it will skip over the section in the product.tpl file.

I also want to add a header to this after the if statement to explain the products listed below. Is there anyone that can possibly give me a little guidance?

pauldodman 08-19-2016 02:53 AM

Re: Upselling Products within product description.
 
Hi Mike
The related products template should be checking for related products itself at step 1.
It should already have the if statement required which would be:
{if $product_links ne ""}

Not sure how you have added the module to the description, but using if statements in the description is tricky.
You'd be better doing this in the template itself.

hoosierglass 08-19-2016 03:51 AM

Re: Upselling Products within product description.
 
I managed to get it. Forgot I had this thread here. Basically I put it just below where it calls for the description in the template.


All times are GMT -8. The time now is 06:52 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.