Category: Magento

Magento Step by Step tutorials 0

How to get config variable value in magento.?

To get the config variable value in Magento you must use the below code to get the desired results accordingly. $configValue = Mage::getStoreConfig(‘sectionName/groupName/fieldName’); $configValue = Mage::getStoreConfig(‘sectionName/groupName/fieldName’, Mage::app()->getStore()); Above both methods...

Magento Step by Step tutorials 0

How to Change Product Type in magento?

Change Product Type In Magento:- If you are looking to change the product type in Magento then there are no options from Magento admin, for which you have to make...

Magento Step by Step tutorials 0

Javascript Validation Form in Magento

Magento Javascript Form Validation In Magento there is default validation functionality for forms which then must be configured accordingly to get the specific results. All the JavaScript functions comes from...

Magento Step by Step tutorials 0

How to Get a Product by SKU in Magento?

Get a Product by SKU in Magento. In Magento usually we upload product by its ID $product = Mage::getModel(‘catalog/product’)->load($product_id); But when need to get product by its attribute SKU. To...

Magento Step by Step tutorials 0

How to Execute Custom Query in magento.?

Executing Custom Query in magento. When you are working with the custom Magento development then we need use specific custom queries to get the desired result respectively. Here we have...

Magento Step by Step tutorials 0

How To Install Extension In Magento.?

When you  installed the Magento Then you will get a default theme from Magento. If you want more than the default appearance and functionality for your Magento store, the simplest...

Magento Step by Step tutorials 0

How to create the XML sitemap in Magento?

Website XML Sitemap plays an important role in SEO for fetching the correct information by Web Crawlers. Hence they must be configured precisely for better SEO practices. Today we are...

Magento Step by Step tutorials 0

How to remove all items in a magento product collection?

In the following code we are going to study how to remove all items in a Magento Product Collection in a simple way. $Collection = Mage::getModel(‘catalog/product’)->getCollection() foreach( $collection as $item...

Magento Step by Step tutorials 0

How to get current category name and id on product page in magento.?

Following is the code to get current Category name and id on product page in Magento. <?php $catname = Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getName(); //gives current category name $catid = Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getId(); //gives current category...