Guest User

Untitled

a guest
Jan 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. define([
  2. 'jquery',
  3. 'Magento_Checkout/js/action/get-totals'
  4. ], function ($, getTotalsAction) {
  5. "use strict";
  6.  
  7. $.ajax({
  8. method: "post",
  9. url: demoUrl, //your ajax Url
  10. data: {/*here post data*/},
  11. dataType: "html",
  12. success: function (resp) {
  13. //below two lines refershing cart summary
  14. var deferred = $.Deferred();
  15. getTotalsAction([], deferred); //this function already created in Magento_Checkout/js/action/get-totals.js file
  16. }
  17.  
  18. });
  19.  
  20. });
Add Comment
Please, Sign In to add comment