| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Replacing "Featured Products" with "Recommend | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
Quote:
The featured products are shown from the welcome.tpl file Check if this line is included into your customer/main/welcome.tpl file: {include file="customer/main/featured.tpl" f_products=$f_products}
__________________
Best regards, Niki Buitenrust Hettema X-Cart Gold 4.1.8 (Live & Loaded) Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more... |
|||||||||
#22
|
|||||||
|
|||||||
Thanks for replying.
Yes of course it is there. I just check. Since I reverted back to the original files as were before I attempted the mod, I can't understand why this is happening. Any other ideas?? Thanks.
__________________
Version 4.1.9 |
|||||||
#23
|
|||||||
|
|||||||
looks like a nice mod, i'll have to try it. Thanks for the work.
__________________
X-cart GOLD v 4.0.18 |
|||||||
#24
|
|||||||
|
|||||||
excellent mod. thank you for sharing your work. i do have one quick question.
any chance of getting this to only show recommended products when the featured products query returns no results? |
|||||||
#25
|
|||||||||
|
|||||||||
great mod ... works well in 4.1.2
only one thing that doesnt show is the price. instead it displays "Enter Your Price" ... After looking into this it's because the 'taxed_price' field isnt passed to the $randoms smarty variable .. Any ideas on how i can get this field passed ? Thanks & Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#26
|
|||||||
|
|||||||
Quote:
See my post earlier in this thread on how to do this. http://forum.x-cart.com/viewtopic.php?t=20135&postdays=0&postorder=asc&sta rt=13
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#27
|
|||||||||
|
|||||||||
Opps ... Missed that ..
Thanks for that Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#28
|
|||||||||
|
|||||||||
Ok ...
i've tried putting the addtional code in just before the smarty assign .. but now i get a blank page.. the code i have in random.php is as follows: // the database query $query = "SELECT $sql_tbl[products].*, (SELECT MIN($sql_tbl[pricing].price) FROM $sql_tbl[pricing] WHERE $sql_tbl[pricing].productid=$sql_tbl[products].productid AND $sql_tbl[pricing].quantity=1 AND $sql_tbl[pricing].variantid = 0) AS price FROM $sql_tbl[products],$sql_tbl[pricing] WHERE forsale='Y' AND avail>0 ORDER BY RAND() LIMIT 6 "; // give the product array to smarty to make it available sitewide. $randoms = func_query($query); if (is_array($randoms) && count($randoms) > 0) { foreach ($randoms as $k=>$v) { $randoms[$k]["tmbn_url"] = func_get_thumbnail_url($v["productid"]); $randoms[$k]["taxes"] = func_get_product_taxes($randoms[$k], $login); } } $smarty->assign("randoms",$randoms); Can you help ? Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#29
|
|||||||||
|
|||||||||
I think i've sorted the issue..
I had to comment the following line: Quote:
The function 'func_get_thumbnail_url' doesnt exist in v4.1.2 (By looking at the /log/x-errors_php-xxxxxx.php file) The thumbmail still displays and the link to more product details work fine too. Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#30
|
|||||||
|
|||||||
This is a beauty in 4.1.2, thanks.
Can anyone get it to be category specific to the current cat. vs. random? The nice thing about this is you can use it for multiple instances. Like a "You Might Also Like..." and a sorta auto-generated cross-selling mod IF it was category specific. Anyone? Thanks! - Mike
__________________
4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|