Created
March 18, 2016 15:42
-
-
Save pablocattaneo/b8f226c75baeb266e654 to your computer and use it in GitHub Desktop.
Obtiene el ID de una categoría por su nombre.
Get category ID filtering by name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $category = Mage::getResourceModel('catalog/category_collection')->addFieldToFilter('name', 'clothing'); | |
| $cat= $category->getData(); | |
| $categoryid = $cat[0][entity_id]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment