Skip to main content
19 votes

How to write a custom extension?

If you sell your extension or share it with others, think about writing code that is human readable. don't make method too complex add DOC blocks to your methods * use proper variable names, like $...
sv3n's user avatar
  • 11.7k
10 votes
Accepted

Magento 2 running so slow on localhost development

I tried everything and the only thing it works is the virtual machine that provides bitnami. https://bitnami.com/stack/magento/virtual-machine Seriously, I don't know what has this vm, but goes ...
Marc Pont's user avatar
  • 1,453
10 votes

Error "Payment model name is not provided in config" when having config in payment section

I disagree with the accepted answer. I found myself in a similar situation as OP and made my own experiments to get rid of this error, and what solved it for me was setting a title in etc/config.xml. ...
peedee's user avatar
  • 713
9 votes

How to write a custom extension?

@marius, regarding Coding Standards (point 24 in your list). I like to use PHP_CodeSniffer along with EQP and ECG CS to automatically enforce these standards. Using PHP_CodeSniffer you don't have ...
diazwatson's user avatar
  • 2,470
8 votes

Magento 1: improving my module development workflow (Modman, composer, git)

I very often take the following approach which is pretty framework agnostic. Check out the module you want to edit to /path/to/my/module Create a branch for your piece of work (branched off of the ...
Luke Rodgers's user avatar
  • 4,462
7 votes

Magento2 moving from staging to live site

You can use ansible to automate the steps : From a global point of view : (Manage all your changes with setup/upgrade scripts) backup database toggle maintenance disable crons retrieve updated code ...
Franck Garnier's user avatar
6 votes
Accepted

Magento Module - Linux Vs Windows?

the only thing you should pay attention to is not having class names with uppercase letters inside the class path. This works on both: Namespace_Module_Model_Classname. This may fail on linux: ...
Marius's user avatar
  • 199k
6 votes

Magento 1: improving my module development workflow (Modman, composer, git)

I'm using modman with hardcopy here, no symlink. There's your problem. If you cannot change this setup for your shop deployments, consider working on shared extensions on a separate instance where ...
Fabian Schmengler's user avatar
6 votes

Magento 2 running so slow on localhost development

disable CSS/JS merging and minifying: Stores > Configuration > CSS Settings (Javascript Settings) > Merge CSS (Merge JS) > NO Stores > Configuration > CSS Settings (Javascript ...
goivvy.com's user avatar
  • 4,213
6 votes

Magento 2 running so slow on localhost development

I found that developer mode disable everything - which was overkill. There's certain aspects I do wish to cache, such as translation. Thankfully in env.php you can still set which caches to use ...
MackieeE's user avatar
  • 232
6 votes
Accepted

What are some important concepts to learn in Magento 2 for Interview?

Apart from the above, you need to know the following: The folder structure of Magento themes The folder structure of Magento modules EAV concept Why do we do reindexing Observer, Plugin, and Class ...
Mohit Kumar Arora's user avatar
5 votes

How to test or style the order success page?

For Magento 2: If you want to style or customize in success page after order success page redirects to cart page. Now solution is here: Go To vendor/magento/module-checkout/Controller/Onepage open ...
Nikul's user avatar
  • 1,306
5 votes
Accepted

When to run magento:setup:compile?

Yes you will need to run bin/magento setup:di:compile everytime when you added new classes with dependencies (constructor parameters) or changed dependencies of existing classes.(di.xml) Another ...
Manthan Dave's user avatar
  • 9,906
5 votes

What is the best guide to start developing Magento 2 modules?

I Think, It will help you. https://www.mageplaza.com/magento-2-module-development/ https://www.cloudways.com/blog/create-module-in-magento-2/ http://inchoo.net/magento-2/how-to-create-a-basic-...
Ashna's user avatar
  • 518
5 votes
Accepted

Best practice for local development

Your question is quite broad, so hard to give an exact answer without me spending ages on a reply - but using anything like XAMPP is a bad idea from the start (I know from experience) especially with ...
Ricky Odin Matthews's user avatar
5 votes
Accepted

How to use GrumPHP with Magento2?

I created this basic tutorial about how to install and use in your Magento 2 project, but to start without a lot of errors I recommend using this method below. 1 - Run in your Magento 2 root folder ...
Rafael Corrêa Gomes's user avatar
5 votes

magento dev:urn-catalog:generate command fails to detect secret file

Try to create the .idea folder before run the bin/magento dev:urn-catalog:generate .idea/misc.xml If running Linux, from magento root folder: mkdir .idea && bin/magento dev:urn-catalog:...
Jorge Henrique's user avatar
4 votes

Magento 1: improving my module development workflow (Modman, composer, git)

So my idea here for you is to start working with composer even for Magento1. If you had your own packagist, which is not too hard to manage now that aws and google cloud is in place, or you can use ...
David Manners's user avatar
4 votes

Magento 2 running so slow on localhost development

Suggestions from Magento posted after this question was answered. Reading other answers I think this information could be a helpful addition http://devdocs.magento.com/guides/v2.2/extension-dev-...
Ian at SSU's user avatar
4 votes
Accepted

automatic generation of dir/files under pub/static not working

There are two different scenarios: developer mode you should not run the command at all (more info: Which compilation commands are needed in developer mode and when? ) the original pub/static/....
Fabian Schmengler's user avatar
4 votes

Switch to the developer mode Magento 2

Here is 3 ways to change Magento 2 to developer mode 1. Command line php bin/magento deploy:mode:set developer 2. Config file app/etc/env.php Find line 'MAGE_MODE' => 'default' Change to '...
Nicholas Miller's user avatar
4 votes

Error "Payment model name is not provided in config" when having config in payment section

You need to provide <model> node in your config.xml file. See example from Authorize.net module: <default> <payment> <authorizenet_directpost> ...
Bery's user avatar
  • 150
4 votes
Accepted

Every time i make changes in my template file i need to flush cache

If you are working only on template files, and changes aren't reflecting : 1) Go to system->Cache Management. 2) Select block_html and full_page Cache. 3) Disable it. 4) Clear var->cache and var->...
Pankaj Bhope's user avatar
  • 1,546
4 votes

Magento 2 : Development is extremely slow?

It is good that you spent a lot of time learning core concepts. But if you still need to guess, which step is missing if something you made does not work, you should probably spend more time learning ...
Simon's user avatar
  • 5,745
4 votes
Accepted

best way to use magento 2.4 on windows 10 for development

From version 2.4 onwards, Magento won't suggest to run it on Windows and Mac operating system specially for development purpose. Devdocs Reference : Many things will not work properly like GraphQL, ...
Pratik Navapara's user avatar
3 votes

How duplicate your live store on a development store and try installation on it in advance

Try below Steps: 1. Create folder on server like "staging" 2. Copy all Magento related files and folder in it 3. Create a copy of database like "database_bk" 4. Create a sub-domain and point to this ...
Pawan's user avatar
  • 5,991
3 votes

Faster ways of developing for magento 2

Thinking that your questions is more about working on remote environments, so my answer centers around this. The nowdays most used PHP IDE is PHPStorm, but other traditional IDEs are similar in this. ...
Flyingmana's user avatar
  • 6,147
3 votes

Magento 2 changing from production to developer I get error Element 'remove': This element is not expected

Find "<remove" this sting in your app folder. you will find like below code: <remove name="product.info.price"/> remove this, its alternative, you need to add remove="true" attribute in ...
Prashant Valanda's user avatar
3 votes

How to speed up Magento 2 development process?

There are lots of thing for development but some of them in my mind now. I listed as below 1. Always Work in Developer Mode 2. Never run Deploy Command in Developer. it will not generate symlink it ...
Gohil Rajesh's user avatar
  • 3,060

Only top scored, non community-wiki answers of a minimum length are eligible