Jump to content

change query products-list


freelance84

Recommended Posts

It really depends on what you want to do.....

 

Which version of Prestashop are you using?

 

In 1.5 There's a hook in the CategoryController called in assignProductList():

 

actionProductListOverride($params)

 

The keys to the $params array are: nbProducts(integer), catProducts(product array) and hookExecuted(bool)

 

Or you could look at the Product class and override the getProductProperties() method.

Link to comment
Share on other sites

It really depends on what you want to do.....

 

Which version of Prestashop are you using?

 

In 1.5 There's a hook in the CategoryController called in assignProductList():

 

actionProductListOverride($params)

 

The keys to the $params array are: nbProducts(integer), catProducts(product array) and hookExecuted(bool)

 

Or you could look at the Product class and override the getProductProperties() method.

 

Hello Paul,

 

I want only add a condition in query for extract distinct value for column "name".

I'm using version 1.5 and i will try your suggests.

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