octagonal elf Posted July 22, 2017 Share Posted July 22, 2017 Hi. I am trying to get all attributes ID from product ID, and I tried below it does not work... any idea? $attributes = $product->getAttributeCombinations($context->language->id); foreach($attributes as $attribute ){ $update_quantity = StockAvailable::updateQuantity($product['id_product'], $attribute, -(int)$product['cart_quantity']); } Link to comment Share on other sites More sharing options...
NemoPS Posted July 22, 2017 Share Posted July 22, 2017 you should use $attribute['id_product_attribute'] as parameter, when you pass it to the upateQuantity ($attribute as you wrote it is an array) 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