Jump to content

Random or featured products on homepage


Guest

Recommended Posts

Rather than latest/featured products appearing on the homepage, is there anyway to get random latest/featured products to appear. So if you have say 20 selected products, it would then select say six of those at random so the hoempage always looks fresh ?

Is this possible ?

Cheers Tim

Link to comment
Share on other sites

Rather than latest/featured products appearing on the homepage, is there anyway to get random latest/featured products to appear. So if you have say 20 selected products, it would then select say six of those at random so the hoempage always looks fresh ?

Is this possible ?

Cheers Tim

The featured product box does display randomly from the products in the store.

Link to comment
Share on other sites

Rather than latest/featured products appearing on the homepage, is there anyway to get random latest/featured products to appear. So if you have say 20 selected products, it would then select say six of those at random so the hoempage always looks fresh ?

Is this possible ?

Cheers Tim

The featured product box does display randomly from the products in the store.

Aye, i dont mean that one, i mean the 'latest' products one on the homepage.

Link to comment
Share on other sites

You see i think this is problem with the modification site, everyone is in it for the money, when you are forced to request on a site like that.

Anyway, thanks to gwizard for looking at it for me, a simple modification to the includes/content/index.inc.php (line 49) and it does exactly as i want, turns the latest products in random featured products on the homepage.

$latestProducts = $db->select("SELECT productId, image, price, name, sale_price FROM ".$glob['dbprefix']."CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY RAND() DESC LIMIT ".$config['noLatestProds']);

:D

Link to comment
Share on other sites

  • 3 weeks later...

Very cool...changed the center section to random products...much better since I often upload 20+ variations on the same item, making for a boring 'latest products' page.

Now wondering, if it's possible to change the side 'featured products' box to showcase the one latest product added?

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...