¡@

Home 

php Programming Glossary: subcats

Populate another select dropdown from database based on dropdown selection

http://stackoverflow.com/questions/11636293/populate-another-select-dropdown-from-database-based-on-dropdown-selection

subcat result db query query while row result fetch_assoc subcats row 'catid' array id row 'id' val row 'subcat' jsonCats json_encode.. jsonCats json_encode categories jsonSubCats json_encode subcats docytpe html html head script type 'text javascript' php echo.. javascript' php echo var categories jsonCats n echo var subcats jsonSubCats n function loadCategories var select document.getElementById..

Create new magento Rest api to get category list in magento

http://stackoverflow.com/questions/15037773/create-new-magento-rest-api-to-get-category-list-in-magento

toArray cats Mage getModel 'catalog category' load ruleId subcats Mage getModel 'catalog category' load ruleId getChildren cur_category.. getName node 'parent_id' cats getParentId node 'child_id' subcats if cats getIsActive node 'active' 1 else node 'active' 0 node.. node 'position' cats getPosition cur_category node subcats Mage getModel 'catalog category' load ruleId getAllChildren..

PHP tree structure for categories and sub categories without looping a query

http://stackoverflow.com/questions/4843945/php-tree-structure-for-categories-and-sub-categories-without-looping-a-query

can have an element which will contain an array of subcats. Now I can easily achieve this by looping a query for each category..