Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Upselling Products within product description.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-17-2016, 08:39 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default 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?
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #2  
Old 08-19-2016, 02:53 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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.
__________________
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.
Reply With Quote
  #3  
Old 08-19-2016, 03:51 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default 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.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:28 PM.

   

 
X-Cart forums © 2001-2020