I've overridden the ItemDetails
module and I've added a new view it. But now when I run my SCA Mont Blanc website locally the website fails to load (I get a white screen) and the following error in the browser console - fails to load my view I added.
Failed to load resource: the server responded with a status of 404 (Not Found) ItemDetails.PBT.View.js
What do I need to do to add a new view to a overridden module?
What I have done:
- Create the view file in
modules/mymodules/ItemDetailsOverrides@1.0.0/Javascript
. The view (and filename) name isItemDetails.PBT.View
I have also created a simple template for the view in the templates folder. - Added my module override to
distro.json
in themodules
dictionary. Note the originalItemDetails
is still included in the file aswell - Include my new view in
modules/mymodules/ItemDetailsOverrides@1.0.0/Javascript/ItemDetails.View.js
both in the dependencies and in the function as a parameter. - In
ns.package.json
I have specified that I am overridding themodules/suitecommerce/ItemDetailsOverrides@2.1.0/Javascript/ItemDetails.View.js
withmodules/mymodules/ItemDetailsOverrides@1.0.0/Javascript/ItemDetails.View.js
.
What else do I need to do?? Specific answers would be greatly appreciated.