AshbridgeWS Posted February 9, 2017 Share Posted February 9, 2017 Hi, I am trying to select the price of all products from the store with ID of 1 but for some reason; not all products are showing and the price is very, very different from what is being shown on my website. Here is my SQL query so far... SELECT * FROM ps_product p LEFT JOIN ps_product_lang l ON l.id_product = p.id_product LEFT JOIN ps_product_attribute_shop s ON s.id_product = p.id_product LEFT JOIN ps_product_attribute a ON a.id_product_attribute = s.id_product_attribute WHERE l.id_shop = 1 AND s.id_shop = 1 Can anyone help? Link to comment Share on other sites More sharing options...
NemoPS Posted February 11, 2017 Share Posted February 11, 2017 The price can't be gotten directly like that, you must use Product::getPriceStatic($id_product) 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