parklan Posted October 24, 2013 Share Posted October 24, 2013 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 More sharing options...
parklan Posted October 25, 2013 Author Share Posted October 25, 2013 Anyone could help me ... i 'm still stuck in this issue I really appreciate your help guys! Link to comment Share on other sites More sharing options...
parklan Posted October 25, 2013 Author Share Posted October 25, 2013 I solved the issue since the id_lang is wrong 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