package.json
in your theme and pay attention to field scandipwa.parentTheme
node_modules/<PARENT THEME NAME>
src
) as the original filepackage.json
fieldscandipwa.parentTheme
is empty, your theme is considered to be a root theme. In this case, parent theme overrides will not function, as there is simply no parent theme.AddToCart.component.js
:package.json
file:scandipwa.parentTheme
is @scandipwa/scandipwa
node_module/@scandipwa/scandipwa
AddToCart.component.js
in a parent theme files:src/component/AddToCart/AddToCart.component.js
AddToCart.component.js
src/component/AddToCart
start
scriptsrc
folder, which matches the extension namename
field of the extension's package.json
src
) as the original file, but under the newly created extension specific folder. The pattern for the folder to create extension in is src/<EXTENSION NAME>/<PATH AS IS EXTENSION>
.@scandipwa/m2-theme
provision the public/index.php
file. To override this file, you need to create the exact path in your application theme, without creating the folder matching extension name.PayPal.component.js
:PayPal.component.js
node_modules/@scandipwa/pay-pal/src/component/PayPal/PayPal.component.js
@scandipwa/pay-pal
src/component/PayPal/PayPal.component.js
src/@scandipwa/pay-pal
PayPal.component.js
src/@scandipwa/pay-pal/component/PayPal
src
and public
folders your theme, parent theme or extensions.