-
Copy this code and paste it at the bottom of your
Assets/vendor.js
file, or if your theme doesn't have avendor.js
file, place it at the very top of thetheme.js
file. (At the moment, POP requires this to be added at the very bottom of the theme.js file, followed by the next bit). -
Add this to the bottom of the
Assets/theme.js
file:
Shopify.Cart.ShippingCalculator.show( {
submitButton: theme.strings.shippingCalcSubmitButton,
submitButtonDisabled: theme.strings.shippingCalcSubmitButtonDisabled,
customerIsLoggedIn: theme.strings.shippingCalcCustomerIsLoggedIn,
moneyFormat: theme.strings.shippingCalcMoneyFormat