4

How do implement lazy loading on product list page in Magento ?

posted on , by Muthupandi

Please follow the below steps :1) Add the below script in the app/design/frontend/your theme/default/template/catalog/product/list/toolbar.phtml<script>        jQuery(document).ready(function(){        if(!jQuery('#current').length){                        jQuery("body").append('<input type="hidden" name="current"  ...

0

Why are products not showing in the magento frontend ?

posted on , by Muthupandi

Reference : http://www.aschroder.com/2010/07/why-are-my-magento-products-not-showing-u ...

0

How do display specific category products in the home page ?

posted on , by Muthupandi

Reference : http://www.templatemonster.com/help/magento-display-products-from-the-category-on-the-home-page.ht ...

0

Magento Login in all websites when login in any one of the website

posted on , by Muthupandi

Reference : http://excellencemagentoblog.com/blog/2012/12/15/magento-multiple-website-logi ...

0

Load product at store level in magento ?

posted on , by Muthupandi

Get Current store id $storeId = Mage::app()->getStore()->getId(); Load product $product = Mage::getModel('catalog/product') ->setStoreId($storeId) ->load($key) ...

0

Magento Import and Export clarifications

posted on , by Muthupandi

Reference: http://blog.mag-manager.com/2013/01/101-magento-import-questions.ht ...

0

Magento Sample EAV tables

posted on , by Muthupandi

-- first our items table: CREATE TABLE `items` ( `id` int(11) NOT NULL auto_increment, `item_name` varchar(50) default NULL, PRIMARY KEY (`id`) ); -- now our item attributes CREATE TABLE `item_attributes` ( `id` int(11) NOT NULL auto_increment, `item_id` int(11) NOT NULL default '0', `attribute_name` varchar(50) default NULL, PRIMARY KEY (`id`), KEY `item_id_attribute_name` (`item_id`,`attribute_name`) ); -- now finally our attribute values CREATE TABLE `attribute_values` ( `attribute_id` ...

1

Magento:Adding store view multi-selection to admin module

posted on , by Muthupandi

Reference: http://www.demacmedia.com/magento-commerce/mini-tutorial-adding-store-view-selection-to-your-modules-adminhtm ...

0

Magento - custom (non eav) model, load by multiple fields?

posted on , by Muthupandi

Step 1: $attributes = array('name'=> $name'store_id'=> store_id); $model = mage::getmodel('module/modelname')->loadbyattributes($attributes); Step 2: public function loadbyattributes($attributes) { $this->setdata($this->getresource()->loadbyattributes($this,$attributes)); return $this; } Step 3: public function loadbyattributes(Custom_Ccms_Model_Ccms $ccmsObj, $attributes) { $adapter = $this->_getreadadapter(); $where = array(); foreach ($attributes as $attributecode=> ...

0

List of All Observer-Events in Magento 1.8

posted on , by Muthupandi

Reference : https://huztechbuzz.wordpress.com/2014/04/26/complete-list-of-all-events-in-magent ...

0

How do get module, route, controller and action name in magento ?

posted on , by Muthupandi

Module name Mage::app()->getRequest()->getModuleName(); Route name Mage::app()->getRequest()->getRouteName(); Controller name Mage::app()->getRequest()->getControllerName(); Action name Mage::app()->getRequest()->getActionName( ...

0

How do install extension using magento connect in magento ?

posted on , by Muthupandi

Consider extension 'Redirect Visitors by Country IP' Get this extension key from the http://www.magentocommerce.com/magento-connect/redirect-visitors-by-country-ip.html Go System -> Magento connect -> Magento Connect Manager Paste your extension key in the 'Paste extension key to install' text box and click instal button After clicking install button, you can view 'Extension ...

0

Create Sub Admin and provide CMS access only in Magento

posted on , by Muthupandi

1. Go System -> Permissions -> Roles 2. Give Role Name in the 'Role Name' Text field. 3. Select 'Custom' from the Resource Access drop-down and select 'CMS' from the list of resources 4. In First three steps, we created Roles and selected resources to those role. 5. The next steps explain about create user from admin and assign Role to those user. 6. Go System -> Permissions ...

1

How to get shipping address by shipping address id?

posted on , by Muthupandi

Reference: http://magento.stackexchange.com/questions/8444/how-to-get-shipping-address-by-shipping-address- ...

0

How to get customer address in magento by cutomer id

posted on , by Muthupandi

Reference: http://www.w3bdeveloper.com/how-to/how-to-get-customer-address-in-magento-by-cutomer-i ...

0

Apply default shipping address on shipping estimation in Magento

posted on , by Muthupandi

Reference : http://www.arscommunity.com/wiki/magento/default-address-for-shipping-estimati ...

0

Get Product Custom Options Label & Id in magento

posted on , by Muthupandi

$product = Mage::getModel(“catalog/product”)->load($product_id); $theoptions = $product->getOptions(); foreach($theoptions as $opkey=> $opval) { echo $opval->getOptionId().’|’.$opval->getTitle(); ...

0

Add new language to magento

posted on , by Muthupandi

Reference : http://inchoo.net/magento/adding-a-new-language-in-magento/ Norwegian Nynorsk Language Pack : http://www.magentocommerce.com/magento-connect/magento-community-modules-norwegian-nynorsk-norway-language-pack.html Norwegian Bokmal Language Pack : http://www.magentocommerce.com/magento-connect/magento-community-modules-norwegian-bokmal-norway-language-pack.ht ...

0

Integrating Magento Header/Footer in Wordpress

posted on , by Muthupandi

Reference : http://www.daffodilsw.com/blog/integrating-magento-header-footer-in-wordpress-solv ...

0

How do add website switcher instead of store switcher(dorpdown) in magento ?

posted on , by Muthupandi

Reference Url : http://stackoverflow.com/questions/4270490/how-do-i-get-a-website-switcher-instead-of-store-switcher http://www.magentocommerce.com/boards/viewthread/829 ...

0

Create cusom log file in magento

posted on , by Muthupandi

Magento provide support to create own magento log files.It have the function for this purpose in app/code/Mage.php public static function log($message, $level = null, $file = '') {} We just need to call the above function when we need to create log file or storing information in custom log files. For example: Mage::log('My log entry', null, 'mylogfile.log'); ...

0

How do get current store details in magento ?

posted on , by Muthupandi

Get store data Mage::app()->getStore(); Store Id Mage::app()->getStore()->getStoreId(); Store code Mage::app()->getStore()->getCode(); Website Id Mage::app()->getStore()->getWebsiteId(); Store Name Mage::app()->getStore()->getName(); Is Active Mage::app()->getStore()->getIsActive(); Homepage URL of Store Mage::app()->getStore()->getHomeUrl(); Current page URL of Store Mage::app()->getStore()->getCurrentUrl(); All of these functions can be found in ...

0

Get products Details using Order Id in Magento ?

posted on , by Muthupandi

Reference: http://www.w3bdeveloper.com/how-to/magento-get-products-from-order-by-order-id-as-arra ...

0

How do remove navigation links from My Account Dashboard in Magento ?

posted on , by Muthupandi

Reference : http://ecommerce.eglobeits.com/blog/remove-magento-navigation-links-from-my-account-dashboar ...

0

Magento Custom Shipping Method

posted on , by Muthupandi

Coming soon... ...

0

How do add custom renderer for a custom column in Magento grid ? || Adding thumbnail image to magento admin grid column

posted on , by Muthupandi

To add additional column to your grid and add custom renderer, you need to open your grid block from required module. Let me explain with custom module to add additional column. My custom module Structure Custom -Sample --Block ---Adminhtml ----Sample -----Grid.php We need to work on the Grid.php file.This file contains different type of functions to display content in the grid.We need to search _prepareColumns() functions and work on that.. I already contain some columns to display informations.First ...

0

How do add additional column in admin grid ?

posted on , by Muthupandi

To add additional column to your grid, you need to open your grid block from required module. Let me explain with custom module to add additional column. My custom module Structure Custom -Sample --Block ---Adminhtml ----Sample -----Grid.php We need to work on the Grid.php file.This file contains different type of functions to display content in the grid.We need to search _prepareColumns() functions and work on that.. I already contain some columns to display informations.First I will ...

0

Magento Template path Hints for Admin and Frontend Area

posted on , by Muthupandi

When developing or customizing existing themes,you need to know template path hints for frontend and admin area. Magento provide default option to see the template for the frontend (enable it via System > Configuration > Developer > Debug > Template Path Hints ) Unfortunately Magento doesn't provide same trick to the admin area. Here you can see the trick to find admin temaple area with simple custom module Download and install module from the below links Download Link After ...

0

How do resize the category images in Magento ?

posted on , by Muthupandi

This topic explains about getting category images in the frontend ( category list page ) and resize the image to the given size. Call the below function from your template <img src="<?php echo Mage::getModel('catalog/category')->getCategoryImage($_category,300,300); ?>" alt="category_name"> Override category model(category.php) in the below directory app/code/local/Mage/Catalog/Model/ Add the below function in category.ph ...

0

How to override core model in magento ?

posted on , by Muthupandi

For example : We need to override category.php model file of the catalog module Catalog module is placed in the core/Mage directory. Now here override the model file of the category.php Create the following directory and files in local direcoty app/code/local/Mage app/code/local/Mage/Catalog app/code/local/Mage/Catalog/Model app/code/local/Mage/Catalog/Model/category.php Now Open category.php file from this path ( core/Mage/Catalog/Model/ ) Copy the content of this file paste copied ...

0

How do change order of shopping cart totals in Magento ?

posted on , by Muthupandi

Reference : http://stackoverflow.com/questions/14577006/changing-order-of-shopping-cart-totals-in-magento This site templates : http://www.freshdesignweb.com/free-responsive-blogger-templates.ht ...