Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define([
- "jquery",
- "ko",
- "uiComponent",
- "Magento_Customer/js/customer-data"
- ], function ($, ko, Component, customerData) {
- var self = {
- initialize: function () {
- this._super();
- var checkoutData = customerData.get('checkout-data')();
- checkoutData.shippingAddressFromData = {
- firstname: 'your firstname',
- lastname: 'your lastname',
- company: 'your company',
- street: { 0: 'street line 1', 1: 'street line 2' },
- city: 'your city',
- postcode: 'your postcode',
- region: 'region name',
- region_id: 'region ID of dropdown',
- country_id: 'US',
- fax: '1112223333',
- telephone: '4445556666'
- };
- customerData.set('checkout-data', checkoutData);
- }
- };
- return Component.extend(self);
- });
Add Comment
Please, Sign In to add comment