geer-builder 1.2.932 → 1.2.934

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/GCheckout.vue CHANGED
@@ -446,6 +446,7 @@ export default {
446
446
  is_branch_pickup:false,
447
447
  is_merchant_free_shipping_conflict:false,
448
448
  is_elms_conflict:false,
449
+ is_renewal_solo_conflict:false,
449
450
  is_elms_included:false,
450
451
  is_ecom_disable:false,
451
452
  is_select_voucher_open:false,
@@ -1391,6 +1392,7 @@ export default {
1391
1392
  let is_merchant_free_shipping = false;
1392
1393
  this.is_merchant_free_shipping_conflict = false;
1393
1394
  this.is_elms_conflict = false;
1395
+ this.is_renewal_solo_conflict = false;
1394
1396
  let free_shipping_ctr = 0;
1395
1397
  let shipping_total = 0;
1396
1398
  let voucher_total = 0;
@@ -1487,8 +1489,24 @@ export default {
1487
1489
  }
1488
1490
  });
1489
1491
  }
1490
-
1491
-
1492
+
1493
+ // Renewal product solo check (only if slot_expiration is enabled)
1494
+ if(this.public_settings.slot_expiration && this.public_settings.slot_expiration.enable && orders.hasOwnProperty("products"))
1495
+ {
1496
+ let has_renewal = false;
1497
+ let total_unique_products = 0;
1498
+ orders.products.forEach(pro => {
1499
+ total_unique_products++;
1500
+ if(pro.product && pro.product.membership_kit && (pro.product.membership_kit.use_for_renew === true || pro.product.membership_kit.use_for_renew === 'Yes'))
1501
+ {
1502
+ has_renewal = true;
1503
+ }
1504
+ });
1505
+ if(has_renewal && total_unique_products > 1)
1506
+ {
1507
+ this.is_renewal_solo_conflict = true;
1508
+ }
1509
+ }
1492
1510
 
1493
1511
  if(orders.hasOwnProperty('courier_chosen'))
1494
1512
  {
@@ -2404,6 +2422,10 @@ export default {
2404
2422
  {
2405
2423
  this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine elms wallet purchase with other products please clear your cart.` });
2406
2424
  }
2425
+ else if(this.is_renewal_solo_conflict == true)
2426
+ {
2427
+ this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Renewal products must be purchased separately. Please clear your cart and keep only the renewal product.` });
2428
+ }
2407
2429
  else if(this.is_merchant_free_shipping_conflict == true)
2408
2430
  {
2409
2431
  this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine products with shipping fee to a product with free shipping fee please clear your cart.` });
package/GLogin.vue CHANGED
@@ -317,7 +317,7 @@ export default
317
317
  }
318
318
  else
319
319
  {
320
- this.$q.dialog({ title: `Invalid Login`, message: err });
320
+ this.$q.dialog({ title: `Invalid Login`, message: String(err) });
321
321
  }
322
322
 
323
323
 
@@ -128,7 +128,7 @@ export default
128
128
  data = await new DB_SETTINGS().get(key);
129
129
  }
130
130
 
131
- return data.value;
131
+ return data?.value;
132
132
  },
133
133
  $_formatNumber(number, options)
134
134
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.932",
3
+ "version": "1.2.934",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {