**i have already try all the given solutions but its not woking for me. **
Asked
Active
Viewed 2,509 times
2 Answers
0
I have seen this issue when calling .reload in jQuery(window).load
e.g.
require('Magento_Customer/js/customer-data').reload();
Changing it to the following fixed the issue:
require(['Magento_Customer/js/customer-data'], function(customerData) {
customerData.reload();
});
It seems the first block runs before the customer-data is fully loaded.
Abhishek Panchal
- 4,948
- 3
- 21
- 38
Corey
- 1
- 1
0
I have fixed this:
<script type="text/javascript">
require([
'jquery'
],
function($) {
$(window).on("load", function() {
require([
'Magento_Checkout/js/model/cart/totals-processor/default',
'Magento_Customer/js/customer-data',
'Magento_Checkout/js/model/quote',
'Magento_Checkout/js/model/shipping-rate-processor/new-address',
'Magento_Checkout/js/model/shipping-rate-processor/customer-address',
'Magento_Checkout/js/model/shipping-rate-registry'
], function(defaultTotal, customerData, quote, defaultProcessor, customerAddressProcessor, rateRegistry) {
$(document).ready(function() {
/** Do your code here */
});
});
});
});
</script>
Ravi Soni
- 1,809
- 1
- 16
- 33

but its not work for me
– Hansu Dec 14 '17 at 06:33