Jump to content

Accessories in product list


joanacosta

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

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