ScandiPWA
Create Magento App
Create ScandiPWA App
User Manual
GitHub
Search…
Why Scandi
🚀
Quick-start Guide
🗺
Roadmap
Introduction to the Stack
Setting up Scandi
Developing with Scandi
Override Mechanism
Extensions
Working With Magento
Developer Tools
Deploying Your App
Structure
Directory Structure
Building Blocks
Application assets
Code Style
Tutorials
Customizing Your Theme
Payment Method Integration
Creating a Custom Widget
Video Tutorials
Dark Mode Extension
Deploying Native Apps
Product 3D Model Extension
Social Share, Full Extension Development
Accessing Magento 2 Controllers
STEP-1 Creating Magento 2 Module
STEP-2 - Create Magento 2 Frontend Route and Basic Controller
STEP-3 Accessing Magento 2 Controller, Bypassing ScandiPWA frontend
STEP-4 Creating ScandiPWA Extension with additional dependencies
STEP-5 Creating Plugin and Axios request
About
Support
Release notes
Technical Information
Data Analytics
Contributing
Powered By
GitBook
STEP-1 Creating Magento 2 Module
1.
Let’s Create Empty Module Folder
app/code/ScandiPWA/Version ScandiPWA
is
[VENDOR]
1.
Let’s Create Empty Module Folder app/code/ScandiPWA/Version ScandiPWA is [VENDOR]
module provider
Version [MODULE]
2.
In [
MODULE]
create file
registration.php
app/code/ScandiPWA/Version/registration.php
1
<?php
2
\
Magento
\
Framework
\
Component
\
ComponentRegistrar
::
register
(
3
\
Magento
\
Framework
\
Component
\
ComponentRegistrar
::
MODULE
,
4
'ScandiPWA_Version'
,
5
__DIR__
6
);
Copied!
3. Create
etc
folder in
[MODULE]
and
module.xml
in it.
app/code/ScandiPWA/Version/etc/module.xml
1
<?xml version="1.0" ?>
2
<
config
xmlns:
xsi
=
"
http://www.w3.org/2001/XMLSchema-instance
"
3
xsi:
noNamespaceSchemaLocation
=
"
urn:magento:framework:Module/etc/module.xsd
"
>
4
<
module
name
=
"
ScandiPWA_Version
"
/>
5
</
config
>
6
Copied!
4. Now we need to run
setup:upgrade
and find our module in output if you are running
CMA setup
open console in
<PROJECT ROOT>
run
npm run cli
and then
m set:up
you should be able to find newly created module in output
Useful Materials
CMA Enter application CLI
Create a New Module
bin/magento (Open Source) Magento CLI
Tutorials - Previous
Accessing Magento 2 Controllers
Next
STEP-2 - Create Magento 2 Frontend Route and Basic Controller
Last modified
7mo ago
Copy link