/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$defaultLanguage = Configuration::get('PS_LANG_DEFAULT'); $groups = array(); foreach (AttributeGroup::getAttributesGroups($defaultLanguage) AS $group) $groups[$group['name']] = intval($group['id_attribute_group']); $attributes = array(); foreach (Attribute::getAttributes($defaultLanguage) AS $attribute) $attributes[$attribute['attribute_group'].'_'.$attribute['name']] = intval($attribute['id_attribute']);