Skip to content

Commit

Permalink
Added cart reload on success page
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-onufriichuk committed Jan 2, 2024
1 parent 765db3f commit 9afb42e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions view/frontend/layout/checkout_onepage_success.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block template="Rvvup_Payments::cart/reload.phtml" cacheable="false"/>
</referenceContainer>
</body>
</page>
7 changes: 7 additions & 0 deletions view/frontend/templates/cart/reload.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script type="text/x-magento-init">
{
"*": {
"Magento_Checkout/js/empty-cart": {}
}
}
</script>

0 comments on commit 9afb42e

Please sign in to comment.