| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Short description for Product Recommends | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I'm trying to show the short description for the recommend products and am working with the file /modules/Recommended_Products/recommends.tpl
Throwing {$product.descr} simply echoes the short description of the product the customer is looking at, not the recommends. So I'm wondering how I can call on the short description of each product recommendation. Any ideas?
__________________
- 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 |
|||||||||
#2
|
|||||||
|
|||||||
![]() Did you tried this:
{$recommends[num].descr}
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#3
|
|||||||||
|
|||||||||
![]() I just did, but nothing is returned -- just blank.
__________________
- 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 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
I am not sure that this is a good solution, but it was invented for 5 minutes. Open file "include/func/func.product.php" and find next lines: PHP Code:
add after this text next line: PHP Code:
.... now you can use in the template /modules/Recommended_Products/recommends.tpl variable: {$recommends[num].descr} |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Awesome, that worked flawlessly.
Another question I had was along the same lines and probably requires a similar edit (I think.) Would it be possible to add an 'add to cart' button into the Upselling/Related products module?
__________________
- 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 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Add the following line for every products in the file "skin1/modules/Upselling_Products/related_products.tpl" PHP Code:
Instead of text "Add to cart", you can use image or button. |
|||||||||
|
#7
|
|||||||||
|
|||||||||
![]() Thanks again Yurij,
Worked flawleslly.
__________________
- 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 |
|||||||||
#8
|
|||||||
|
|||||||
![]() How can you add a buy now button to 4.2.1 for this?
__________________
x-cart 4.2.3 AlteredCart Smart Search Auto Featured Products Mod (Personal Mod) BCSE Product Importer Pro & Drop Shipper Pro CDSEO Pro CMS EZRecommends EE slider login (Personal Mod) Next Prev Link Mod (Customized) ShadowBox Detailed Images (Personal Mod) Shop By Price (Customized) Social Media (Personal Mod) Switch Layout View (Personal Mod) Special Offers Testimonials (Personal Mod) Whats New (Customized) |
|||||||
|
|||
X-Cart forums © 2001-2020
|