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

Use {$product.descr|amp} in recommended products?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-25-2011, 09:01 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Use {$product.descr|amp} in recommended products?

Hi,

I'd love to be able to use {$product.descr|amp} in the Recommended Products section. {$product.product|amp} works fine, but for some reason descr doesn't deliver any content.

Does anyone know how to make this happen?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #2  
Old 04-25-2011, 09:13 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Use {$product.descr|amp} in recommended products?

It is probably not part of the $product array in recommended products. If that is the case you need to modify the php script to include description
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-25-2011, 09:22 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Use {$product.descr|amp} in recommended products?

Thanks. Any idea what file I'd need to be looking in?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #4  
Old 04-25-2011, 09:26 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Use {$product.descr|amp} in recommended products?

Try modules/recommended_products/ directory
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 04-25-2011, 09:38 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Use {$product.descr|amp} in recommended products?

Was looking there. The set up doesn't seem to offer any clues. I've been looking back through my 4.1.10 install (where I actually use Related Products) and in there was the ability to call {$product_links[cat_num].descr} to achieve this. That's not working in the 4.4x install I'm building on right now though.

Does anyone know if this functionality was replaced with something that still allows the product description to be displayed?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #6  
Old 04-25-2011, 10:04 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Use {$product.descr|amp} in recommended products?

It is recommends.php in root. And $product_links is for upsell products not recommended products
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 06-30-2011, 01:41 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Use {$product.descr|amp} in recommended products?

Can I bother you to confirm something for me? Should the Upselling Products module at least show the price natively?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #8  
Old 06-30-2011, 04:18 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Use {$product.descr|amp} in recommended products?

It can show price, not sure if it's like this by default, but it's probably just a matter of modifying the template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 07-02-2011, 12:23 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Use {$product.descr|amp} in recommended products?

For Upselling Products it seems to use the products_list.tpl file, but mine won't display the price either when I call the upselling module on product.tpl.

I'm confused because on my previous 4.1 installation I had this working perfectly but that code no longer works.

Any idea how I can get the desc and price calls to work? I'm not sure why it works for the category listings (also uses products_list.tpl) but not here.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #10  
Old 07-02-2011, 08:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Use {$product.descr|amp} in recommended products?

Like I said this info may not be included in products array for upselling products. If that's the case the php script must be modified to query this info form the database and include it in the products array so you can call it in the template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 05:03 PM.

   

 
X-Cart forums © 2001-2020