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)
-   -   Use {$product.descr|amp} in recommended products? (https://forum.x-cart.com/showthread.php?t=59059)

tqualizerman 04-25-2011 09:01 AM

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?

cflsystems 04-25-2011 09:13 AM

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

tqualizerman 04-25-2011 09:22 AM

Re: Use {$product.descr|amp} in recommended products?
 
Thanks. Any idea what file I'd need to be looking in?

cflsystems 04-25-2011 09:26 AM

Re: Use {$product.descr|amp} in recommended products?
 
Try modules/recommended_products/ directory

tqualizerman 04-25-2011 09:38 AM

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?

cflsystems 04-25-2011 10:04 AM

Re: Use {$product.descr|amp} in recommended products?
 
It is recommends.php in root. And $product_links is for upsell products not recommended products

tqualizerman 06-30-2011 01:41 AM

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?

cflsystems 06-30-2011 04:18 AM

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

tqualizerman 07-02-2011 12:23 AM

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.

cflsystems 07-02-2011 08:03 AM

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


All times are GMT -8. The time now is 04:37 AM.

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