Jump to content

How to get all id_product_attribute from id_product ?


octagonal elf

Recommended Posts

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

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...