presta get attributes


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $defaultLanguage = Configuration::get('PS_LANG_DEFAULT');
  2. $groups = array();
  3. foreach (AttributeGroup::getAttributesGroups($defaultLanguage) AS $group)
  4. $groups[$group['name']] = intval($group['id_attribute_group']);
  5. $attributes = array();
  6. foreach (Attribute::getAttributes($defaultLanguage) AS $attribute)
  7. $attributes[$attribute['attribute_group'].'_'.$attribute['name']] = intval($attribute['id_attribute']);
  8.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.