Reference: http://blog.mag-manager.com/2013/01/101-magento-import-questions.ht ...
-- 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` ...
Reference: http://www.demacmedia.com/magento-commerce/mini-tutorial-adding-store-view-selection-to-your-modules-adminhtm ...
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=> ...
Reference : https://huztechbuzz.wordpress.com/2014/04/26/complete-list-of-all-events-in-magent ...
Module name Mage::app()->getRequest()->getModuleName(); Route name Mage::app()->getRequest()->getRouteName(); Controller name Mage::app()->getRequest()->getControllerName(); Action name Mage::app()->getRequest()->getActionName( ...
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 ...
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 ...
Reference: http://magento.stackexchange.com/questions/8444/how-to-get-shipping-address-by-shipping-address- ...
Reference: http://www.w3bdeveloper.com/how-to/how-to-get-customer-address-in-magento-by-cutomer-i ...
Reference : http://www.arscommunity.com/wiki/magento/default-address-for-shipping-estimati ...
$product = Mage::getModel(“catalog/product”)->load($product_id); $theoptions = $product->getOptions(); foreach($theoptions as $opkey=> $opval) { echo $opval->getOptionId().’|’.$opval->getTitle(); ...