integer-net/magento2-addtocartgraphql

View on GitHub
src/view/frontend/layout/catalog_product_view.xml

Summary

Maintainability
Test Coverage
<?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"
                        template="IntegerNet_AddToCartGraphQl::catalog/product/view/addtocart.phtml">
            <block name="product.info.addtocart.js"
                   template="IntegerNet_AddToCartGraphQl::catalog/product/view/addtocart/js.phtml"/>
        </referenceBlock>
    </body>
</page>