Skip to content

Commit

Permalink
Merge pull request #51 from YotpoLtd/YMES-1-Yotpo-Magento-2-module-br…
Browse files Browse the repository at this point in the history
…akes-Varnish-Full-Page-Cache

Fix for Yotpo Magento 2 module brakes Varnish Full Page Cache
  • Loading branch information
Alex Berenshtein committed Aug 9, 2017
2 parents f980de0 + 809fe91 commit 810808b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions view/frontend/layout/checkout_onepage_success.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<body>
<!-- Add yotpo pixel for order conversion tracking -->
<referenceContainer name="order.success.additional.info">
<block class="Yotpo\Yotpo\Block\Conversion" name="yotpo_conversion" template="conversion.phtml" cacheable="false"/>
</referenceContainer>
</body>
</page>
6 changes: 0 additions & 6 deletions view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@
<!-- <referenceContainer name="product.info.addtocart">
<block class="Yotpo\Yotpo\Block\Yotpo" name="yotpo_1" template="widget_div.phtml"/>
</referenceContainer> -->

<!-- Add yotpo pixel for order conversion tracking -->
<referenceContainer name="order.success.additional.info">
<block class="Yotpo\Yotpo\Block\Conversion" name="yotpo_conversion" template="conversion.phtml" cacheable="false"/>
</referenceContainer>

</body>
</page>

0 comments on commit 810808b

Please sign in to comment.