Guest User

Untitled

a guest
Jan 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. /**
  2. * After place order callback
  3. */
  4. afterPlaceOrder: function () {
  5. // Override this function and put after place order logic here
  6. },
  7.  
  8. $this->_quote = null;
  9. $this->setQuoteId(null);
  10. $this->setLastSuccessQuoteId(null);
  11. + $this->setLoadInactive(false);
  12. + $this->replaceQuote($this->getQuote()->save());
  13. return $this;
  14. }
  15.  
  16. <a class="action primary continue" href="<?php /* @escapeNotVerified */ echo $block->getUrl() ?>"><span><?php /* @escapeNotVerified */ echo __('Continue Shopping') ?></span></a>
  17. </div>
  18. </div>
  19. + <script>
  20. + require([
  21. + 'Magento_Customer/js/customer-data'
  22. + ], function (customerData) {
  23. + var sections = ['cart'];
  24. + customerData.invalidate(sections);
  25. + customerData.reload(sections, true);
  26. + });
  27. + </script>
  28. </div>
Add Comment
Please, Sign In to add comment