August 23, 201318:07 Load category by id Magento | Uncategorized <?php$_category = Mage::getModel(‘catalog/category’)->load(89);$_category_url = $_category->getUrl();?> Read more
August 23, 201318:07 Load product by id or sku Magento | Uncategorized <?php$_product_1 = Mage::getModel(‘catalog/product’)->load(12);$_product_2 = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’,’cordoba-classic-6-String-guitar’);?> Read more
August 23, 201318:06 Update all subscribers into a customer group (e.g. 5) Magento | Uncategorized UPDATEcustomer_entity,newsletter_subscriberSETcustomer_entity.`group_id` = 5WHEREcustomer_entity.`entity_id` = newsletter_subscriber.`customer_id`ANDnewsletter_subscriber.`subscriber_status` = 1; Read more
August 23, 201318:06 Load Products by Category ID Magento | Uncategorized <?php$_category = Mage::getModel(‘catalog/category’)->load(47);$_productCollection = $_category->getProductCollection();if($_productCollection->count()) { foreach( $_productCollection as $_product ): echo $_product->getProductUrl(); echo $this->getPriceHtml($_product, true); echo $this->htmlEscape($_product->getName()); endforeach;}?> Read more
August 23, 201316:31 Including jquery to magento Magento | Uncategorized First step is to include j query to your magento website.To achieve this just add a new line add js… Read more
August 23, 201316:30 Magento Enable template path hint Magento | Uncategorized To enable magento path hint for your magento website first login into your admin section i.e magento backend now go… Read more