Posted By

mphuongz on 10/12/10


Tagged

textmate attributes presta


Versions (?)

presta get attributes


 / Published in: Other
 

  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  

You need to login to post a comment.