<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
		 <referenceBlock name='product.info.addtocart'>
			<action method='setTemplate' ifconfig='ajaxaddtocart/setting/enable'>
				<argument name='template' xsi:type='string'>Magento_Catalog::product/view/addtocart.phtml</argument>
			</action>
		</referenceBlock>
    </body>
</page>

