| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display random product | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is something like this possible?
__________________
X-Cart 4.0.11 {My simple mods} Adding Market list and % save on product detail Quantity input box |
|||||||
#2
|
|||||||
|
|||||||
![]() Depends on where you want it to show. The Recommended products shown on the product page are completely random.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Actually I want to display it on the homepage
skin1>customer>home.tpl I've tried to random loop produts loop=$products but it doesn't seem to be looping it. here's what I have added Code:
__________________
X-Cart 4.0.11 {My simple mods} Adding Market list and % save on product detail Quantity input box |
|||||||
#4
|
|||||||
|
|||||||
![]() I need to randomize all products in all categories. I've looked at the recommends for help, but it just isn't the same relation to the overall products.php.
Has anyone done this? If so, do you have the SQL statement that will give the option in General Settings/Appearance to display randomn products? Funky has some 3.x code in the forum, but there just doesn't seem to be anything for 4.0.x. In recommends you see $rnd = rand(); and ORDER BY RAND(NOW()+$rnd). Ideas? Thanks, Mike
__________________
4.1.9 |
|||||||
#5
|
|||||||
|
|||||||
![]() I have managed to replace the "Featured Products" with "Recommended Products" on home.php - now 6 products are displayed at random instead of the static "Featured Products"
My next goal would be to make this now display the pricing information and the "Buy Now" button, in 2 rows of 3 products....any help? Heres what I did: in skin1/customer/home.tpl, add Code:
Code:
In skin1/customer/main/welcome.tpl remove Code:
and finally, in home.php add: Code:
under Code:
This was done in 4.0.11 Hope this helps someone! Allan
__________________
____________ ____________ X-Cart v 4.0.14 X-Cart v 4.0.11 ____________ ____________ |
|||||||
#6
|
|||||||
|
|||||||
![]() I think that is a good solution and may investigate, but there must be a way to just display all products at random?
Has anyone done this? The main reason we need this is that our providers are soiking their product names to get better display and it's very annoying. TelaFirma, I know you know how to do this one... ![]() Thanks, Mike
__________________
4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|