ng-easycommerce 0.0.525 → 0.0.527
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 +4 -0
- package/bundles/ng-easycommerce.umd.js +22 -5
- 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/build-your-ec/build-your-ec.component.js +6 -4
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +19 -3
- package/esm5/lib/ec-component/build-your-ec/build-your-ec.component.js +6 -4
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +19 -3
- package/fesm2015/ng-easycommerce.js +22 -5
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +22 -5
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +3 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# version 0.0.527
|
|
2
|
+
- avances1 asociaciones concatenadas por atributos y categorias
|
|
3
|
+
# version 0.0.526
|
|
4
|
+
- se añaden etiquetas meta en product-details para probar utm
|
|
1
5
|
# version 0.0.525
|
|
2
6
|
- se hace un cambio para obtener el section de forma correcta cuando en la url se usa utm en los bloques
|
|
3
7
|
# version 0.0.524
|
|
@@ -10058,7 +10058,7 @@
|
|
|
10058
10058
|
};
|
|
10059
10059
|
var ProductDetailEcComponent = /** @class */ (function (_super) {
|
|
10060
10060
|
__extends$v(ProductDetailEcComponent, _super);
|
|
10061
|
-
function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService) {
|
|
10061
|
+
function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService, meta) {
|
|
10062
10062
|
var _this = _super.call(this) || this;
|
|
10063
10063
|
_this.productService = productService;
|
|
10064
10064
|
_this.consts = consts;
|
|
@@ -10069,6 +10069,7 @@
|
|
|
10069
10069
|
_this.analyticsService = analyticsService;
|
|
10070
10070
|
_this.router = router;
|
|
10071
10071
|
_this.toastrService = toastrService;
|
|
10072
|
+
_this.meta = meta;
|
|
10072
10073
|
_this.show = false;
|
|
10073
10074
|
_this.quantity = 1;
|
|
10074
10075
|
_this.breadcrumb = [];
|
|
@@ -10137,6 +10138,19 @@
|
|
|
10137
10138
|
_this.product = res;
|
|
10138
10139
|
window.scroll(0, 0);
|
|
10139
10140
|
_this.breadcrumb = _this.optionsService.getBreadcrumb(_this.product.category);
|
|
10141
|
+
if (_this.product.name) {
|
|
10142
|
+
_this.meta.removeTag('name="og:title"');
|
|
10143
|
+
_this.meta.removeTag('name="og:description"');
|
|
10144
|
+
_this.meta.removeTag('name="og:image"');
|
|
10145
|
+
_this.meta.removeTag('name="og:type"');
|
|
10146
|
+
_this.meta.removeTag('name="og:url"');
|
|
10147
|
+
// console.log(this.product);
|
|
10148
|
+
_this.meta.addTag({ name: 'og:title', content: _this.product.name });
|
|
10149
|
+
_this.meta.addTag({ name: 'og:description', content: _this.product.description });
|
|
10150
|
+
_this.meta.addTag({ name: 'og:image', content: _this.consts.mediaUrl() + _this.product.picturesdefault[0] });
|
|
10151
|
+
_this.meta.addTag({ name: 'og:type', content: 'product' });
|
|
10152
|
+
_this.meta.addTag({ name: 'og:url', content: window.location.href });
|
|
10153
|
+
}
|
|
10140
10154
|
});
|
|
10141
10155
|
_this.productService.product$.pipe(operators.filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
|
|
10142
10156
|
_this.analyticsService.callEvent('view_item', __assign$o(__assign$o({}, productParam), { currency: _this.consts.currency.code }));
|
|
@@ -10161,7 +10175,8 @@
|
|
|
10161
10175
|
{ type: ProductsService },
|
|
10162
10176
|
{ type: AnalyticsService },
|
|
10163
10177
|
{ type: router.Router },
|
|
10164
|
-
{ type: ToastService }
|
|
10178
|
+
{ type: ToastService },
|
|
10179
|
+
{ type: platformBrowser.Meta }
|
|
10165
10180
|
]; };
|
|
10166
10181
|
__decorate$13([
|
|
10167
10182
|
core.ViewChild('contact')
|
|
@@ -15311,7 +15326,7 @@
|
|
|
15311
15326
|
_this.selectedValues = {}; //Guarda los valores que se van seleccionando.
|
|
15312
15327
|
_this.itemCurrentSelected = ''; //Para guarda el item selecciondo
|
|
15313
15328
|
_this.loadingStep = false; //Marca si se esta cargando el paso
|
|
15314
|
-
_this.finished = false; //Marca si finalizo la secuencia de pasos
|
|
15329
|
+
_this.finished = false; //Marca si finalizo la secuencia de pasos
|
|
15315
15330
|
_this.noMoreCoincidences = false; //Marca si no hay mas coincidencias de productos
|
|
15316
15331
|
_this.products = []; //Recibe el/los producto/s resultantes
|
|
15317
15332
|
/**
|
|
@@ -15544,8 +15559,10 @@
|
|
|
15544
15559
|
if (_this.stepList[0]) {
|
|
15545
15560
|
_this.itemValuesFactory(_this.stepList[0]);
|
|
15546
15561
|
_this.code = _this.stepList[0].code;
|
|
15547
|
-
if (
|
|
15548
|
-
|
|
15562
|
+
if (_this.stepList[0].values) {
|
|
15563
|
+
if (!_this.stepList[0].skippeable && (_this.stepList[0].values.length == 1)) {
|
|
15564
|
+
_this.setItemCurrentSelected(_this.stepList[0].values[0].code);
|
|
15565
|
+
}
|
|
15549
15566
|
}
|
|
15550
15567
|
}
|
|
15551
15568
|
});
|