Return to Snippet

Revision: 33716
at October 12, 2010 18:02 by mphuongz


Initial Code
		$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']);

Initial URL

                                

Initial Description

                                

Initial Title
presta get attributes

Initial Tags
textmate

Initial Language
Other