I created a custom storefront theme and override the
catalog_product_view.xml file in my custom theme. Below is the path.
It's working as expected.
Now let's say I have downloaded a third party extension (EXTENSION1) which using set template for the reference
product.info.addtocart in the same layout file i.e
catalog_product_view.xml. like below
<action method="setTemplate"> <argument name="template" xsi:type="string">Vendername_Modulename::product/view/addtocart.phtml</argument> </action>
also uses sequence definition in their
<sequence> <module name="Magento_Catalog"/> </sequence>
Now let's say there is one more third party extension (EXTENSION2) doing the same.
I have two questions
1. How Magento decide priority between Custom Theme, Extension1 Extension2.
Is there any naming convention?
1. How I make all functionality(Changes in custom theme, Extension1 and Extension2) works together.
Do I need to make a single file and merge all changes in one file?