Jump to content

[SOLVED] Manager SQL - Select things (?)


requ

Recommended Posts

Try:

SELECT `name`
FROM `ps_product` p
LEFT JOIN `ps_product_lang` pl ON p.`id_product` = pl.`id_product`
WHERE pl.`id_lang` = 1 AND pl.`id_shop` = 1 AND p.`out_of_stock` = 0 

Change ps_ to your database prefix, the first 1 to the ID of the language you want the product name in and the second 1 to the ID of the shop you want the product name from.

  • Like 1
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...