Jump to content

Featured Products


Recommended Posts

Hi
I think I'm right in thinking that to make a product a 'featured' product, I need to tick the 'home' box on the product global information page (please correct me if Im wrong :roll:)
But is there not a simple way to add / remove products to / from the featured list? Is it necessary to go into every individual product and tick or clear the 'home' tickbox?
I bet this is really easy and I'm missing something.....?
If this has been asked about before I apologise, but I did look and couldn't find anything that matched what I was looking for.
:)

Link to comment
Share on other sites

You are right. The only way to add or remove featured products using the Back Office is to add or remove each of them individually to the Home category. The only alternative I can think of is to use phpMyAdmin to add or remove products from the database, but this isn't as safe as using the Back Office. You should back up `ps_category_product` before performing any queries on it, so you can restore it if something goes wrong, before attempting the below queries.

You can write an SQL query in the following format, where the first column is the id of the Home category, the second column is the id of each of the products you want to be in the Home category, and the third column is the position of the product, which allows you to change the order of products:

INSERT INTO `ps_category_product` (`id_category`, `id_product`, `position`) VALUES
(1, 1, 1),
(1, 2, 2),
(1, 3, 3),
(1, 4, 4);



If you wanted to remove all featured products and start over, you could write the following SQL query:

DELETE FROM `ps_category_product` WHERE `id_category` = 1;

Link to comment
Share on other sites

  • 1 year later...

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
×
×
  • Create New...