Currently browsing

Magento – Adding Custom Category Fields Attributes

How to add new custom category attribute in Magentomagento add category attributemagento add custom field to categoryYou know in Magento backend, you can add new product attribute easily which allow you to extend and add more product information. So here I will show you how to add new category attribute …

How to import products with custom options in Magento

magento import custom optionsmagento import products with custom optionsTo add this customization to your magento store first copy app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php to app/code/local/Mage/Catalog/Model/Convert/Adapter/Product.php. This will prevent upgrades from overwriting your changes. Next you need to add some code to “local” version of Product.php (code/local/Mage/Catalog/Model/Convert/Adapter/Product.php). The line numbers below correspond to version 1.3 …

Best Magento practice to get current Url of the page

magento get current urlmagento current urlget current url in magentoget current url magentoThe following code gives you the current url of the page you are:- $currentUrl = $this->helper(‘core/url’)->getCurrentUrl(); // Gives the base url of your magento installation $baseUrl = Mage::getBaseUrl(); //Gives the url of media directory inside your magento installation …