Jump to content

$product->getAttributeCombinations Issue


parklan

Recommended Posts

This is the code for my development in product tpl php:

 

{$combinations = $product->getAttributeCombinations($this->context->language->id)}   //get the attribute in combination from the ID

   

{foreach from=$combinations item=combination}

         

{$combArray[$combination['id_product_attribute']]['attributes'][] = array($combination['group_name'], $combination['attribute_name'], $combination['id_attribute'])}

 

{/foreach} 

 

 

This is the code for getting attribute 's attributes. However, When i print the attribute array

There is only $combination['id_attribute'] contains the value (ID) but there is blank in group_name and attribute_name...

 

Anyone can help?

Thanks a lot

 

 

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