Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var config = {
  2. map: {
  3. '*': {
  4.  
  5.  
  6. 'Magento_Checkout/js/action/select-shipping-method': 'Xyz_Customcheckout/js/action/select-shipping-method'
  7.  
  8. }
  9. }
  10. };
  11.  
  12. define(
  13. [
  14. 'Magento_Checkout/js/model/quote',
  15. 'Magento_Checkout/js/action/set-shipping-information'
  16. ],
  17. function (quote, setShippingAction) {
  18. "use strict";
  19.  
  20. return function (shippingMethod) {
  21. quote.shippingMethod(shippingMethod);
  22. // Update totals on summary
  23. setShippingAction([]);
  24. };
  25. }
  26. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement