| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Upselling Products within product description. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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? |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|