Sign in to follow this  
keat

Featured Product

Recommended Posts

On the featured product box (Popular Products), is there any way to have this show 3 products instead of just one random product.

At the moment, we have this called Deal of the Week. All products have 'show in featured product' unchecked, apart from one.

This then sits there static.

I'd like to show 3 products.

 

I assume that any changes would need to be made in catalogue.class, but it's beyond my realms

 

 

Mican Skin by the way

Edited by keat

Share this post


Link to post
Share on other sites

The way the 'Featured Products' section works is that it selects one random product from among all that are marked as featured in the database.

If you set your 3 products as featured, each time the page loads one from among those 3 will be shown.

If you would like to show all 3 at once, that will require editing both the back end (probably category class) and the front end (the skin).

On the back end, just find wherever the featured product is selected and change it to have no limit or a larger limit, and return an array of all the found products.

On the front end, iterate through that array and display them in a column similar to how 'Sales Products' are displayed.

Share this post


Link to post
Share on other sites

I had to do something similar to this a while ago. I took the easy way out and created three images for the products that looked the same as the featured products (you can screen print them if you can get them to appear) and I then added an image slider to replace the featured products box.

Edited by ayz1

Share this post


Link to post
Share on other sites

We can suppress displaying the Featured/Random box, but then create a new box to show X-number of products that are flagged in some other way.

If this satisfies your requirement, then one of these plugins may suffice:

https://www.cubecart.com/extensions/plugins/currently-trending-products-carousel
https://www.cubecart.com/extensions/plugins/homepage-featured-products
https://www.cubecart.com/extensions/plugins/homepage-random-products

The location of the output could be changed if desired.

Share this post


Link to post
Share on other sites

In the end I went for a simple aproach.

I created a new category but have this hidden from the front page.

In main.php, I removed the 'Featured Product' call, and added in it's place a small amount of html to create a button with hyperlink to the hidden category.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this