Skip to main content
Share Your Experience: Take the 2024 Developer Survey
30 votes
Accepted

Which compilation commands are needed in developer mode and when?

pay attention: I've experienced that in developer mode deleting the pub/static will break the mechanism because you get rid of the .htaccess file that makes the magic in that folder. If you keep the ...
Alessandro Ronchi's user avatar
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

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
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
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,430
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,452
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

What are the first steps in exploring Magento 2?

In addition to what Steve Johnson has written, I would add the following source.. First and foremost, I recommend you to read this eBook, it's like the Bible for all beginning Magento 2 developers: ...
Mageworx's user avatar
  • 3,566
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 ...
Konstantin Gerasimov's user avatar
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

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
  • 198k
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
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
Accepted

Magento Enterprise Cloud Edition: What are the development and deployment tools?

From what I've gathered at the sessions and demos with the Cloud booth at Imagine 2016, you can use any tools and processes you want to use. If you already have processes implemented, they should not ...
Brett's user avatar
  • 1,854
5 votes

Which compilation commands are needed in developer mode and when?

Just to clarify between the three different modes (source: Magento U Fundamentals course). In bold, the specific points related to your question. Developer mode Static file materialization is not ...
Raphael at Digital Pianism'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,826
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
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

Magento 2 as composer dev requirement for extensions

The answer depends on what your CI needs are. For unit tests I am currently looking into the approach to only include in the require section the actual Magento modules I have as direct dependency (...
Kristof at Fooman's user avatar
4 votes

Which compilation commands are needed in developer mode and when?

Does that mean, each individual file in pub/static is generated when it is requested and you never need to call setup:static-content:deploy? This contradicts my experience. Or can I delete any files ...
Janaka Dombawela's user avatar
4 votes

Which compilation commands are needed in developer mode and when?

from my experience, you don't need to run any commands for code / static-file generation in developer mode. If the static files were not generated, there might be another issue. I see two reasons ...
David Verholen's user avatar
4 votes

How can I know what does a magento function do?

The best way to know what a function does is read the source code. There are many ways to do that: using a documentation generator, eg, doxygen using an IDE, eg, PhpStorm using a text search in the ...
kiatng's user avatar
  • 694
4 votes

Why we are using Capitalization (first letter in caps) in magento?

Have a look at this response regarding the controllers directory and checkout out this topic to get some background on the class name capitalization conventions, these two topics should answer your ...
TiEul's user avatar
  • 1,297
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

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

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