flowrix 1.0.1-beta.107 → 1.0.1-beta.109
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 +1 -1
- package/dist/module.mjs +60 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.js +8 -6
- package/dist/runtime/composables/Checkout/useDeliveryMethod.js +7 -6
- package/dist/runtime/composables/Product/useProductComponent.js +11 -17
- package/dist/runtime/composables/useMetaLayer.js +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -337,6 +337,66 @@ const module$1 = defineNuxtModule({
|
|
|
337
337
|
route: "/sitemap.xml",
|
|
338
338
|
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
339
339
|
});
|
|
340
|
+
addServerHandler({
|
|
341
|
+
route: "/sitemap.xml.gz",
|
|
342
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
343
|
+
});
|
|
344
|
+
addServerHandler({
|
|
345
|
+
route: "/brands-sitemap.xml",
|
|
346
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
347
|
+
});
|
|
348
|
+
addServerHandler({
|
|
349
|
+
route: "/brands-sitemap.xml.gz",
|
|
350
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
351
|
+
});
|
|
352
|
+
addServerHandler({
|
|
353
|
+
route: "/post-categories-sitemap.xml",
|
|
354
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
355
|
+
});
|
|
356
|
+
addServerHandler({
|
|
357
|
+
route: "/post-categories-sitemap.xml.gz",
|
|
358
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
359
|
+
});
|
|
360
|
+
addServerHandler({
|
|
361
|
+
route: "/services-sitemap.xml",
|
|
362
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
363
|
+
});
|
|
364
|
+
addServerHandler({
|
|
365
|
+
route: "/services-sitemap.xml.gz",
|
|
366
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
367
|
+
});
|
|
368
|
+
addServerHandler({
|
|
369
|
+
route: "/pages-sitemap.xml",
|
|
370
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
371
|
+
});
|
|
372
|
+
addServerHandler({
|
|
373
|
+
route: "/pages-sitemap.xml.gz",
|
|
374
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
375
|
+
});
|
|
376
|
+
addServerHandler({
|
|
377
|
+
route: "/products-sitemap.xml",
|
|
378
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
379
|
+
});
|
|
380
|
+
addServerHandler({
|
|
381
|
+
route: "/products-sitemap.xml.gz",
|
|
382
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
383
|
+
});
|
|
384
|
+
addServerHandler({
|
|
385
|
+
route: "/posts-sitemap.xml",
|
|
386
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
387
|
+
});
|
|
388
|
+
addServerHandler({
|
|
389
|
+
route: "/posts-sitemap.xml.gz",
|
|
390
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
391
|
+
});
|
|
392
|
+
addServerHandler({
|
|
393
|
+
route: "/categories-sitemap.xml",
|
|
394
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
395
|
+
});
|
|
396
|
+
addServerHandler({
|
|
397
|
+
route: "/categories-sitemap.xml.gz",
|
|
398
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
399
|
+
});
|
|
340
400
|
addServerHandler({
|
|
341
401
|
route: "/robots.txt",
|
|
342
402
|
handler: resolver.resolve("./runtime/server/api/generate/robots.get")
|
|
@@ -5,18 +5,18 @@ import { META_add_payment_info } from "../../useMetaLayer.js";
|
|
|
5
5
|
import { TikTok_add_payment_info } from "../../useTikTokDatalayer.js";
|
|
6
6
|
export default function() {
|
|
7
7
|
const checkoutStore = useCheckoutStore();
|
|
8
|
-
const getpaymentMethod = async (paymentMethod,
|
|
8
|
+
const getpaymentMethod = async (paymentMethod, inputData2, totalPrice) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
inputData2.paymentmethod = paymentMethod;
|
|
11
11
|
const newPrice = parseFloat(totalPrice);
|
|
12
12
|
if (paymentMethod == "web-eway") {
|
|
13
13
|
await checkoutStore.paymentMethods({
|
|
14
14
|
paymentmethod: paymentMethod,
|
|
15
15
|
total: newPrice
|
|
16
16
|
});
|
|
17
|
-
|
|
17
|
+
inputData2.ewayKey = checkoutStore.publishableKey.key;
|
|
18
18
|
}
|
|
19
|
-
checkoutStore.saveToCheckoutSession(
|
|
19
|
+
checkoutStore.saveToCheckoutSession(inputData2);
|
|
20
20
|
const cartData = useCartStore().cart;
|
|
21
21
|
GTM_add_payment_info(cartData, "Eway");
|
|
22
22
|
META_add_payment_info(cartData, "Eway");
|
|
@@ -25,8 +25,8 @@ export default function() {
|
|
|
25
25
|
console.log("Error", error);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function saveToCheckoutSession(
|
|
29
|
-
checkoutStore.saveToCheckoutSession(
|
|
28
|
+
function saveToCheckoutSession(inputData2) {
|
|
29
|
+
checkoutStore.saveToCheckoutSession(inputData2);
|
|
30
30
|
}
|
|
31
31
|
function eWayCardValidations() {
|
|
32
32
|
const e = document.getElementById("EWAY_CARDNUMBER");
|
|
@@ -78,6 +78,8 @@ export default function() {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
e.value = finalValue;
|
|
81
|
+
inputData.ewaeway_expiryyearyKey = finalValue;
|
|
82
|
+
checkoutStore.saveToCheckoutSession(inputData);
|
|
81
83
|
});
|
|
82
84
|
const ChangeCard = ((token = "") => {
|
|
83
85
|
checkoutStore.checkoutSession.fields.eway_cvn = "";
|
|
@@ -18,12 +18,8 @@ export default function(inputData) {
|
|
|
18
18
|
let shipping_method = shippingmethods.filter((method) => method.selected == true)[0];
|
|
19
19
|
let deliverymethods = checkoutStore.config.preferences;
|
|
20
20
|
let delivery_method = deliverymethods.filter((method) => method.selected == true)[0];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
GTM_add_shipping_info(cart, shipping_method);
|
|
24
|
-
META_add_shipping_info(cart, shipping_method);
|
|
25
|
-
}
|
|
26
|
-
} else if (delivery_method.id == 2) {
|
|
21
|
+
console.log("delivery_method", shipping_method);
|
|
22
|
+
if (delivery_method.id == 2) {
|
|
27
23
|
shipping_method = {
|
|
28
24
|
"id": 0,
|
|
29
25
|
"title": "Click and Collect",
|
|
@@ -34,6 +30,11 @@ export default function(inputData) {
|
|
|
34
30
|
};
|
|
35
31
|
GTM_add_shipping_info(cart, shipping_method);
|
|
36
32
|
META_add_shipping_info(cart, shipping_method);
|
|
33
|
+
} else {
|
|
34
|
+
if (shipping_method) {
|
|
35
|
+
GTM_add_shipping_info(cart, shipping_method);
|
|
36
|
+
META_add_shipping_info(cart, shipping_method);
|
|
37
|
+
}
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
return {
|
|
@@ -23,14 +23,16 @@ export function useProductComponent(product) {
|
|
|
23
23
|
});
|
|
24
24
|
const ifPromotioned = () => {
|
|
25
25
|
if (product.rpfloat > product.pricefloat) {
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
return {
|
|
27
|
+
"priceSpecification": [
|
|
28
|
+
{
|
|
29
|
+
"@type": "UnitPriceSpecification",
|
|
30
|
+
"price": product.rpfloat,
|
|
31
|
+
"priceCurrency": companyProfile.profile?.data?.currencyCode || "",
|
|
32
|
+
"priceComponentType": "https://schema.org/ListPrice"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
34
36
|
}
|
|
35
37
|
return [];
|
|
36
38
|
};
|
|
@@ -90,15 +92,7 @@ export function useProductComponent(product) {
|
|
|
90
92
|
"price": product.pricefloat || "",
|
|
91
93
|
"availability": "https://schema.org/InStock",
|
|
92
94
|
"itemCondition": "https://schema.org/NewCondition",
|
|
93
|
-
|
|
94
|
-
...ifPromotioned(),
|
|
95
|
-
{
|
|
96
|
-
"@type": "UnitPriceSpecification",
|
|
97
|
-
"price": product.pricefloat || "",
|
|
98
|
-
"priceCurrency": companyProfile.profile?.data?.currencyCode || "",
|
|
99
|
-
"priceComponentType": "https://schema.org/SalePrice"
|
|
100
|
-
}
|
|
101
|
-
]
|
|
95
|
+
...ifPromotioned()
|
|
102
96
|
}
|
|
103
97
|
})
|
|
104
98
|
}
|
|
@@ -192,7 +192,7 @@ export function META_add_shipping_info(cart = null, shipping_tier = null) {
|
|
|
192
192
|
});
|
|
193
193
|
fbq("trackCustom", "add_shipping_info", {
|
|
194
194
|
contents: ecomarceCartItems,
|
|
195
|
-
content_type: shipping_tier?.
|
|
195
|
+
content_type: shipping_tier?.name || "Shipping",
|
|
196
196
|
value: cart.totals.total,
|
|
197
197
|
currency: useCompanyProfile().profile?.data?.currencyCode
|
|
198
198
|
});
|