@salla.sa/twilight-components 2.11.5 → 2.11.6

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.
@@ -23348,6 +23348,10 @@ const SallaProductOptions = class {
23348
23348
  ? { "data-show-when": `options[${option.visibility_condition.option}] ${option.visibility_condition.operator} ${option.visibility_condition.value}` }
23349
23349
  : {};
23350
23350
  }
23351
+ //we need the cart Id for productOption Image
23352
+ componentWillLoad() {
23353
+ return salla.api.cart.getCurrentCartId();
23354
+ }
23351
23355
  render() {
23352
23356
  if (this.optionsData.length == 0) {
23353
23357
  return;
@@ -57,6 +57,10 @@ export class SallaProductOptions {
57
57
  ? { "data-show-when": `options[${option.visibility_condition.option}] ${option.visibility_condition.operator} ${option.visibility_condition.value}` }
58
58
  : {};
59
59
  }
60
+ //we need the cart Id for productOption Image
61
+ componentWillLoad() {
62
+ return salla.api.cart.getCurrentCartId();
63
+ }
60
64
  render() {
61
65
  if (this.optionsData.length == 0) {
62
66
  return;
@@ -104,6 +104,10 @@ const SallaProductOptions$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
104
104
  ? { "data-show-when": `options[${option.visibility_condition.option}] ${option.visibility_condition.operator} ${option.visibility_condition.value}` }
105
105
  : {};
106
106
  }
107
+ //we need the cart Id for productOption Image
108
+ componentWillLoad() {
109
+ return salla.api.cart.getCurrentCartId();
110
+ }
107
111
  render() {
108
112
  if (this.optionsData.length == 0) {
109
113
  return;
@@ -23344,6 +23344,10 @@ const SallaProductOptions = class {
23344
23344
  ? { "data-show-when": `options[${option.visibility_condition.option}] ${option.visibility_condition.operator} ${option.visibility_condition.value}` }
23345
23345
  : {};
23346
23346
  }
23347
+ //we need the cart Id for productOption Image
23348
+ componentWillLoad() {
23349
+ return salla.api.cart.getCurrentCartId();
23350
+ }
23347
23351
  render() {
23348
23352
  if (this.optionsData.length == 0) {
23349
23353
  return;