Jump to content

Modify the product SQL request


renaud2263
 Share

Recommended Posts

Hi All,

I need to add informations from my own tables on the product listing on category page. What could be the best way to do ?
How modify the SQL request to add some LEFT JOIN request to get additionnal infos in my product.tpl  ?

Many thanks in advance !

Share this post


Link to post
Share on other sites

My reviews are managed by a module, but yes, it's exactly what I'm searching to do...But where can I use WHERE  reviews_table.id_product=this_id_product ? I need to build a new module and hook it on "ProductReviews" ? And in this hook I must write this request ? Sorry I don't really understand...

Share this post


Link to post
Share on other sites

@renaud2263

At first you need to told the module name and their table structure name and files, then community member can give you the full sql correctly if you are not expert.

You find the table name and filed name and relation ship with theme and in your custom module you need class via PrestaShop DB class and then send the result data in 

ProductReviews hook. If you can share the module then any community member can help.

Without know no one can help as you are not expert to find where you need to put the code and how to do

 

Thank you

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
 Share

×
×
  • Create New...

Important Information

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