Topic: Magento

Create a Shipping Method Module 0


This tutorial is similar to Creation of Payment Method module and differs the most in adapter model.

Each shipping method can be done as a separate module or few methods can be combined in the same module if they share functionality or could be used together.

Our new module will be called NewModule.

Replace all instances of ‘NewModule’ with the name of your module and ‘newmodule’ with simplified code, that contains only alphanumeric characters and underscore.

Replace all instances of ‘YourCompany’ with your company name or whatever name you choose.

To make this tutorial most concise, it’s implied that mentioned folders will be created when needed. (more…)

Mass Product Attribute Upload in Magento and Magento 2 0


Mass Product Attribute Upload in Magento

According to latest practice in magento site most developers use product collection to update the product attribute. But unfortunately it has bad effect to side such as,

  1. Product collection script update get slow.
  2. If we use select option to update product collection, when it save it back url key can be empty.

To overcome magento already have function call mass product attribute to update the product. (more…)

Custom HTML tags are missing in Magento wysiwyg editor 0


If you have encountered this issue,

for ex:- When you add custom html code  and it’s not visible in the admin and often not rendered in the front end, there is a simple hack for this.

Goto,

js\mage\adminhtml\wysiwyg\tiny_mce\setup.js

and add “extended_valid_elements : ‘i[class]'” , code to var = settings (more…)

Install and Upgrade Scripts in Magento 1.x Vs. 2.x 0


When we start writing Magento modules (in both versions 1.x or 2.x) sooner or later, we will need to change database schema and/or data. Magento provides a way to do this by using Install and Upgrade scripts. Using these scripts, we can

  1. Install or Upgrade the Database Schema
  2. Install or Upgrade data

In a self sustainable way while keep tracking of the changes done to the system.
(more…)

Installing and configuring Magento 2 on Window 7 0


Installing Magento 2 on Windows need some extra work since windows have some issues. Below video describes the step by step guide how to install Magento 2 on windows, what are the issues and how to fix those issues.
Install Magento 2
Creating new theme
Installing and configuring Grunt
Updating css
https://www.youtube.com/watch?v=7Tb1Y7Vtca8