flowrix 1.0.1-beta.81 → 1.0.1-beta.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -122,7 +122,7 @@ export default function() {
|
|
|
122
122
|
inputData.value.shipping_mobile = shippingAddres.mobile;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
} else if (isAuthenticated
|
|
125
|
+
} else if (isAuthenticated && sameasbilling == true) {
|
|
126
126
|
inputData.value.shipping_firstname = inputData.value.billing_firstname ? inputData.value.billing_firstname : "";
|
|
127
127
|
inputData.value.shipping_lastname = inputData.value.billing_lastname ? inputData.value.billing_lastname : "";
|
|
128
128
|
inputData.value.shipping_address = inputData.value.billing_address ? inputData.value.billing_address : "";
|
|
@@ -256,7 +256,7 @@ export default function() {
|
|
|
256
256
|
return false;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
if (isAuthenticated
|
|
259
|
+
if (isAuthenticated) {
|
|
260
260
|
sessiondata.value.fields.firstname = inputData.value.billing_firstname;
|
|
261
261
|
sessiondata.value.fields.lastname = inputData.value.billing_lastname;
|
|
262
262
|
}
|
|
@@ -189,25 +189,6 @@ export const useCheckoutStore = defineStore("checkout", {
|
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
async saveToCheckoutSession(fieldsData) {
|
|
192
|
-
this.loading = true;
|
|
193
|
-
fieldsData.firstname = fieldsData.billing_firstname ?? void 0;
|
|
194
|
-
fieldsData.lastname = fieldsData.billing_lastname ?? void 0;
|
|
195
|
-
fieldsData.mobile = fieldsData.billing_mobile ?? void 0;
|
|
196
|
-
fieldsData.fullname = `${fieldsData.billing_firstname} ${fieldsData.billing_lastname}`;
|
|
197
|
-
fieldsData.billing_fullname = `${fieldsData.billing_firstname} ${fieldsData.billing_lastname}`;
|
|
198
|
-
fieldsData.shipping_fullname = `${fieldsData.billing_firstname} ${fieldsData.billing_lastname}`;
|
|
199
|
-
if (fieldsData.shippingasbilling === true) {
|
|
200
|
-
fieldsData.billing_address = fieldsData.shipping_address ?? void 0;
|
|
201
|
-
fieldsData.billing_country = fieldsData.shipping_country ?? null;
|
|
202
|
-
fieldsData.billing_state = fieldsData.shipping_state ?? void 0;
|
|
203
|
-
fieldsData.billing_suburb = fieldsData.shipping_suburb ?? void 0;
|
|
204
|
-
fieldsData.billing_firstname = fieldsData.shipping_firstname ?? void 0;
|
|
205
|
-
fieldsData.billing_fullname = fieldsData.shipping_fullname ?? null;
|
|
206
|
-
fieldsData.billing_lastname = fieldsData.shipping_lastname ?? void 0;
|
|
207
|
-
fieldsData.billing_middlename = fieldsData.shipping_middlename ?? void 0;
|
|
208
|
-
fieldsData.billing_mobile = fieldsData.shipping_mobile ?? void 0;
|
|
209
|
-
fieldsData.billing_postcode = fieldsData.shipping_postcode ?? void 0;
|
|
210
|
-
}
|
|
211
192
|
this.checkoutSession.fields = {
|
|
212
193
|
...this.checkoutSession.fields,
|
|
213
194
|
...fieldsData
|