//linked in like buttonhttp://developer.linkedin.com/plugins/share-button //twitter tweet button https://twitter.com/about/resources/buttons#tweethttps://dev.twitter.com/docs/tweet-button //facebook like button http://developers.facebook.com/docs/reference/plugins/like/ //google +1 button http://www.google.com/intl/en/webmasters/+1/button/index.html
2013 August
Magento : Add custom image attribute to category Just copy paste the below code in header.phtml and run yourmagento once,…
Magento : Product list page wrong sorting by price When we install webtex_customergroupprice it has a bug when it sorts…
Just you need to replace one line of code in your controllerwhere you want to change the layout of the…
Magento : Change options of configurable product to radio button Replace the configurable.phtml code with below code:<?php$_product = $this->getProduct();$_attributes =…
TRUNCATE TABLE `catalog_product_bundle_option`;TRUNCATE TABLE `catalog_product_bundle_option_value`;TRUNCATE TABLE `catalog_product_bundle_selection`;TRUNCATE TABLE `catalog_product_entity_datetime`;TRUNCATE TABLE `catalog_product_entity_decimal`;TRUNCATE TABLE `catalog_product_entity_gallery`;TRUNCATE TABLE `catalog_product_entity_int`;TRUNCATE TABLE `catalog_product_entity_media_gallery`;TRUNCATE TABLE `catalog_product_entity_media_gallery_value`;TRUNCATE TABLE…
<?php// input is $_product and result is iterating child products$childProducts = Mage::getModel(‘catalog/product_type_configurable’)->getUsedProducts(null, $product);?>
<?php// clear cacheMage::app()->removeCache(‘catalog_rules_dirty’);// reindex pricesMage::getModel(‘index/process’)->load(2)->reindexEverything();/*1 = Product Attributes2 = Product Attributes3 = Catalog URL Rewrites4 = Product Flat Data5 =…
Get Base Url :Mage::getBaseUrl();Get Store Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);Get Skin Url :Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);$this->getSkinUrl(‘images/imagename.jpg’);Get Media Url :Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);Get Js Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);Get Current UrlMage::helper(‘core/url’)->getCurrentUrl();Get Home UrlMage::helper(‘core/url’)->getHomeUrl();
Open up the /app/etc/local.xml file, locate the <frontName> tag, and change the ‘admin’ part it to something a lot more…