Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define([
- 'jquery',
- 'Magento_Checkout/js/action/get-totals'
- ], function ($, getTotalsAction) {
- "use strict";
- $.ajax({
- method: "post",
- url: demoUrl, //your ajax Url
- data: {/*here post data*/},
- dataType: "html",
- success: function (resp) {
- //below two lines refershing cart summary
- var deferred = $.Deferred();
- getTotalsAction([], deferred); //this function already created in Magento_Checkout/js/action/get-totals.js file
- }
- });
- });
Add Comment
Please, Sign In to add comment