Create a New Page

This information applies to:

On-Prem
Adobe Commerce Cloud
Adobe Commerce as a Cloud Service
Aobe Commerce Optimizer
Yes
Yes
No
No

Create a page that returns JSON with one parameter.

Who is this video for?

  • Developers

Steps to add a page

  • Create a module
  • Add a routes.xml file
  • Add a controller (action) file

Steps to create a module

  • Create the module folder
  • Create the etc/module.xml file
  • Create the registration.php file
  • To install the new module, run the bin/magento setup:upgrade script
  • Verify that the module is functional

Video content

Useful resources

Frontend developer guide

recommendation-more-help
commerce-learn-help-home