cancel
Showing results for 
Search instead for 
Did you mean: 

how to develop a new extension

SOLVED

how to develop a new extension

Hi guys,

I would like to develop an extension but I am brand new to Magento.

May I ask you if my understanding of how to develop a new extension is correct?

1. set up the environment and install Magento according to the below (must? Coz at least need for testing?)

https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/overview.html

2. create a new module in the Magento project, write the code inside there

3. zip and submit the module

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: how to develop a new extension

@mandywong112af  Yes. You also need to make sure you follows all the coding best practices and Magento coding standards. Post submission your code will get scan again all this as well as you'll need marketing content like screenshots, description etc..

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

View solution in original post

3 REPLIES 3

Re: how to develop a new extension

@mandywong112af  Yes. You also need to make sure you follows all the coding best practices and Magento coding standards. Post submission your code will get scan again all this as well as you'll need marketing content like screenshots, description etc..

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: how to develop a new extension

Hi,

 

Environment Setup and Magento Installation:

 

  • Yes, setting up your development environment and installing Magento is a necessary first step. You need a Magento instance to develop and test your extension.
  • Follow the installation guide provided by Magento (the link you shared) to set up a local or development server with Magento. This environment is essential for testing and debugging your extension.

 

Create a New Module:

 

  • After you have a working Magento instance, you can proceed to create your extension. Extensions in Magento are typically organized into modules.
  • You can create a new module within your Magento project. This involves defining the structure of your extension, including directories, configuration files, and code files.
  • Write your code within this module to implement the desired functionality. This can include custom blocks, controllers, models, layouts, templates, and more, depending on what your extension is meant to do.

 

Package and Submit the Module:

 

  • Once you have developed and thoroughly tested your extension, you will need to package it for distribution.
  • The common way to distribute Magento extensions is by creating a module package in ZIP format.
  • You can then submit your extension to the Magento Marketplace or make it available for installation via Composer, depending on your distribution strategy.

 

It's important to note that Magento 2 follows a modular structure, and understanding this structure is crucial when creating extensions. Additionally, Magento development often involves using PHP, XML, and other web development technologies.

 

Remember to thoroughly test your extension and ensure it complies with Magento coding and quality standards before submitting it. Proper documentation and compatibility with different versions of Magento are also essential considerations when developing an extension.

 

While your understanding of the process is correct, Magento extension development can be complex, so it's advisable to refer to official Magento documentation, join Magento developer communities, and seek guidance from experienced developers as you embark on your extension development journey. If you still have any queries then please browse us we would like to assist you.

Re: how to develop a new extension

Hi,

 

I am wondering if a custom extension can deliver as a package, (eg: .zip) for internal usage without publish to the marketplace. And others just need to extract the package and put into the magento app\code.

 

Does this custom extension need to go through approval and review process from Magento?