Tagged: 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…)

File Resolving in Magento 2 (Static, Template, Script, …) : Clues for Debugging 0


When Magento 2 wants to find a view file from the filesystem, it uses a fallback mechanism with a file resolving method. Unlike when a Class file is missing (where it gives an error) sometimes Magento 2 doesn’t provide an error message or so (even if error display is enforced).

I came up with a typo in the filename, which I didn’t notice, I got empty content area on frontend. No error messages. After a few debug sessions, found some clues on few interesting places to look on such a scenario.
(more…)