0

there are some behaviors in a module that i installed from Marketplace that i want to change a bit, like adding some more configurations, overriding template files and add a bit more Javascript, stylings, etc. I'm not seeing anywhere i can extend from a 3rd party module installed from Marketplace, what would be the best practices to deal with this? As i don't really want to modify the extension's code. I'm using Magento 2

2
  • what is your module name ? ( check registration.php file ) Sep 11, 2018 at 18:02
  • Assuming the module is called 'myworkspace/mymodulename' Sep 11, 2018 at 19:11

1 Answer 1

1

Check module name in registration.php and create same folder in your theme.

Inside this folder create 3 other folders ( templates, layout, web ). Now which ever file you want to change place in there and it will override module templates, layouts , js and css.

Note : view/frontend/templates file will go into templates folder. view/frontend/layouts will go in layout folder and web files in web/js and css files in web/css.

Here is helpful post to explain how to overrides templates and modules files :

https://jamersan.com/super-guide-theming-magento-2-part-2-3/

2
  • Hi can you help giving some links or articles about this? the modules i installed are through composer, so the codes are placed in vendor directory Sep 11, 2018 at 21:52
  • Updated answer with a blog post url Sep 11, 2018 at 23:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.