ng-easycommerce 0.0.405 → 0.0.406
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/README.md +6 -0
- package/assets/decidirFormEc.html +14 -5
- package/bundles/ng-easycommerce.umd.js +1 -1
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/multiple-items-to-cart-ec/multiple-items-to-cart-ec.component.js +2 -2
- package/esm5/lib/ec-component/multiple-items-to-cart-ec/multiple-items-to-cart-ec.component.js +2 -2
- package/fesm2015/ng-easycommerce.js +1 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +1 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Ultimas Modificaciones
|
|
2
2
|
|
|
3
|
+
### version: 0.0.406
|
|
4
|
+
|
|
5
|
+
- Ajustes en decidir parametros de entorno backoffice (FIX).
|
|
6
|
+
|
|
7
|
+
- Metodo para verificar si un producto tiene todas sus variantes sin segumiento en seleccion multiple de items (FIX).
|
|
8
|
+
|
|
3
9
|
### version: 0.0.405
|
|
4
10
|
|
|
5
11
|
- Ajustes en decidir parametros de entorno backoffice.
|
|
@@ -15,12 +15,21 @@
|
|
|
15
15
|
const dataDecidirHead = localStorage.getItem('dataDecidir')
|
|
16
16
|
&& JSON.parse(localStorage.getItem('dataDecidir'))
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
console.log("dataDecidirHead",dataDecidirHead);
|
|
20
|
+
console.log("dataDecidirHead.config",dataDecidirHead.config);
|
|
21
|
+
console.log("dataDecidirHead.config.public_environment",dataDecidirHead.config.public_environment);
|
|
22
|
+
|
|
23
|
+
let modoHead = dataDecidirHead?.config?.public_environment || null
|
|
24
|
+
console.log("modoHead 1",modoHead);
|
|
19
25
|
|
|
20
26
|
modoHead && (modoHead == 'prod' && (modoHead = false) || modoHead == 'test' && (modoHead = true))
|
|
21
|
-
!modoHead && (modoHead = window.location.host.includes('easycommercetech'))
|
|
22
27
|
|
|
23
|
-
console.log(
|
|
28
|
+
console.log("modoHead 2",modoHead);
|
|
29
|
+
|
|
30
|
+
!modoHead && (modoHead = window.location.host.includes('easycommerce'))
|
|
31
|
+
|
|
32
|
+
console.log('modoHead 3-> ', modoHead);
|
|
24
33
|
|
|
25
34
|
let my_awesome_script = document.createElement('script');
|
|
26
35
|
|
|
@@ -196,10 +205,10 @@
|
|
|
196
205
|
|
|
197
206
|
const publicApiKey = dataDecidir?.config?.public_key
|
|
198
207
|
const cybersource = dataDecidir?.config?.public_cybersource || true
|
|
199
|
-
let modo = dataDecidir?.config?.
|
|
208
|
+
let modo = dataDecidir?.config?.public_environment || null
|
|
200
209
|
|
|
201
210
|
modo && (modo == 'prod' && (modo = false) || modo == 'test' && (modo = true))
|
|
202
|
-
!modo && (modo = window.location.host.includes('
|
|
211
|
+
!modo && (modo = window.location.host.includes('easycommerce'))
|
|
203
212
|
|
|
204
213
|
console.log(modo);
|
|
205
214
|
|
|
@@ -12830,7 +12830,7 @@
|
|
|
12830
12830
|
}
|
|
12831
12831
|
return true;
|
|
12832
12832
|
};
|
|
12833
|
-
_this.allWithoutTracking = function () { return _this.optionsProductForVariant().some(function (item) { var _a; return ((_a = item.currentOption) === null || _a === void 0 ? void 0 : _a.stock) != 9999; })
|
|
12833
|
+
_this.allWithoutTracking = function () { return _this.optionsProductForVariant().some(function (item) { var _a; return ((_a = item.currentOption) === null || _a === void 0 ? void 0 : _a.stock) != 9999; }); };
|
|
12834
12834
|
_this.getObjectParamsWithVariant = function () {
|
|
12835
12835
|
return _this.objectWithVariant || _this.getObjectWithVariant();
|
|
12836
12836
|
};
|