prestashop_newuser Posted December 25, 2014 Share Posted December 25, 2014 In Prestashop I want to get product's all attribute from its product id. Lets say I have a product with id as 3. Now from product id 3 I want to get all of its attribute like name, price, stock, category, product link.. etc. So far I have tried $product_id = $result['id_product'];$id_product = (int)$product_id;$product = new Product(Tools::getValue($id_product));var_dump($product); But its giving me an array with all attributes in blank. The array can be seen here So can someone tell me how to get its all attribute from id? Any help and suggestions will be really appreciable. Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted December 29, 2014 Share Posted December 29, 2014 Is $result['id_product'] really 3? 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