Skip to content

Commit 7435f19

Browse files
Merge pull request #57 from buckaroo-it/BP-4155-Checkout-success-template-RequireJS-javascript-55
BP-4155-Checkout-success-template-RequireJS-javascript
2 parents 6fb48bf + 1cc52ce commit 7435f19

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<page
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"
5+
>
6+
<body>
7+
<referenceContainer name="content">
8+
<block name="buckaroo.success.hyva"
9+
template="Buckaroo_HyvaCheckout::checkout/success.phtml"
10+
after="-"
11+
/>
12+
</referenceContainer>
13+
</body>
14+
</page>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
* NOTICE OF LICENSE
4+
*
5+
* This source file is subject to the MIT License
6+
* It is available through the world-wide-web at this URL:
7+
* https://tldrlegal.com/license/mit-license
8+
* If you are unable to obtain it through the world-wide-web, please send an email
9+
* to support@buckaroo.nl so we can send you a copy immediately.
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this module to newer
14+
* versions in the future. If you wish to customize this module for your
15+
* needs please contact support@buckaroo.nl for more information.
16+
*
17+
* @copyright Copyright (c) Buckaroo B.V.
18+
* @license https://tldrlegal.com/license/mit-license
19+
*/
20+
?>
21+
22+
<script>
23+
window.addEventListener('load', function() {
24+
window.dispatchEvent(new CustomEvent('reload-customer-section-data'));
25+
console.log('Reload shopping cart on success via Hyvä method');
26+
});
27+
</script>

0 commit comments

Comments
 (0)