Skip to content

Commit

Permalink
Merge pull request #44 from wirecard/TPWDCEE-1578
Browse files Browse the repository at this point in the history
Tpwdcee 1578
  • Loading branch information
jpy authored Jun 14, 2018
2 parents ac3eef2 + 493e04c commit 9063e08
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{

protected $_pluginVersion = '1.0.12';
protected $_pluginVersion = '1.0.13';
protected $_pluginName = 'Wirecard/CheckoutPage';

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Wirecard Checkout Page extension for Magento 2",
"keywords": ["wirecard", "checkout", "page", "payment", "magento2"],
"homepage": "https://www.wirecard.at",
"version":"1.0.12",
"version":"1.0.13",
"support": {
"email": "[email protected]",
"docs": "https://guides.wirecard.com"
Expand Down
3 changes: 3 additions & 0 deletions view/frontend/layout/checkout_onepage_success.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<script src="Wirecard_CheckoutPage/js/action/clear-cart.js" />
</head>
<body>
<referenceContainer name="order.success.additional.info">
<block class="Wirecard\CheckoutPage\Block\Checkout\Onepage\Success\Messages" name="onepage.success.messages"/>
Expand Down
36 changes: 36 additions & 0 deletions view/frontend/web/js/action/clear-cart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* Shop System Plugins - Terms of Use
*
* The plugins offered are provided free of charge by Wirecard AG and are explicitly not part
* of the Wirecard AG range of products and services.
*
* They have been tested and approved for full functionality in the standard configuration
* (status on delivery) of the corresponding shop system. They are under General Public
* License Version 3 (GPLv3) and can be used, developed and passed on to third parties under
* the same terms.
*
* However, Wirecard AG does not provide any guarantee or accept any liability for any errors
* occurring when used in an enhanced, customized shop system configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and requires a
* comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. Wirecard AG does not guarantee their full
* functionality neither does Wirecard AG assume liability for any disadvantages related to
* the use of the plugins. Additionally, Wirecard AG does not guarantee the full functionality
* for customized shop systems or installed plugins of other vendors of plugins within the same
* shop system.
*
* Customers are responsible for testing the plugin's functionality before starting productive
* operation.
*
* By installing the plugin into the shop system the customer agrees to these terms of use.
* Please do not use the plugin if you do not agree to these terms of use!
*/

require([
'Magento_Customer/js/customer-data'
], function (customerData) {
var sections = ['cart'];
customerData.invalidate(sections);
});

0 comments on commit 9063e08

Please sign in to comment.