Jump to content

Accessories in product list


joanacosta
 Share

Recommended Posts

I have never done the same thing, but this is the suggestion for you:

- Study how Prestashop get and display accessories at product page

- Do similar things in category page. Basically, you will have to override 

Category::getProducts()

- Or you also can develop a module and hook into 1 or these 2 hooks: "actionProductListOverride" or "actionProductListModifier". 

- Or you will be noticed that, from "CategoryController", it invokes 

$this->addColorsToProductList($this->cat_products);

Do the same thing but for accessories, for example:

$this->addAccessoriesToProductList($this->cat_products);

Despite of any approach you follow, you will have to edit/override template manually. There is no flexible way to do that for now.

 

Hope this helps!

Tung

Share this post


Link to post
Share on other sites

  • 6 months 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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More