requ Posted February 27, 2017 Share Posted February 27, 2017 Hi Please help, how to select in SQL Manager this things: 1 Product name 2 It is display in shop 3 It have defined out_of_stock=0 (disalow to display - first option in edit) Presta 1.6.1.10 Thanks in advance Link to comment Share on other sites More sharing options...
rocky Posted February 28, 2017 Share Posted February 28, 2017 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. 1 Link to comment Share on other sites More sharing options...
requ Posted February 28, 2017 Author Share Posted February 28, 2017 (edited) Its works! Thank you so much!!! Idk how to change tiitle, can be marked as SOLVED Edited February 28, 2017 by requ (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted February 28, 2017 Share Posted February 28, 2017 I edited the title for you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now