Home
Monge Dry Cat Hairball 400gr
Monge Dry Cat Hairball 400gr
Monge Dry Cat Hairball 400gr
I croccantini Monge Natural Superpremium Hairball sono un alimento completo per gatti adulti che soffrono piu' di altri l'accumolo di peli nello stomaco.
Disponibile
Aggiungi al Carrello
Condividi su
About / Monge Dry Cat Hairball 400gr
response.json())
.then((data) => {
this.currency = (data &&
data.data &&
data.data.currency);
return this.products = (
data &&
data.data &&
data.data.products &&
data.data.products.items &&
data.data.products.items[0] &&
data.data.products.items[0]['related_products']
) || [];
}
).finally(() => {
this.loading = false
$nextTick(() => this.calcPageSize());
});
},
addToWishlist(productId) {
var formKey = document.querySelector('input[name=form_key]').value;
var postUrl = BASE_URL+"wishlist/index/add/";
fetch(postUrl, {
"headers": {
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
},
"body": "form_key="+ formKey + "&product="+productId+"&uenc="+btoa(window.location.href),
"method": "POST",
"mode": "cors",
"credentials": "include"
}).then(function (response) {
if (response.redirected) {
window.location.href = response.url;
} else if (response.ok) {
return response.json();
} else {
typeof window.dispatchMessages !== "undefined" && window.dispatchMessages(
[{
type: "warning",
text: "Could not add item to wishlist."
}], 5000
);
}
}).then(function (response) {
if(!response) { return }
typeof window.dispatchMessages !== "undefined" && window.dispatchMessages(
[{
type: (response.success) ? "success" : "error",
text: (response.success)
? "Prodotto è stato aggiunto nella tua lista desideri."
: response.error_message
}], 5000
);
var reloadCustomerDataEvent = new CustomEvent("reload-customer-section-data");
window.dispatchEvent(reloadCustomerDataEvent);
}).catch(function (error) {
typeof window.dispatchMessages !== "undefined" && window.dispatchMessages(
[{
type: "error",
text: error
}], 5000
);
});
},
addToCompare: function (productId) {
const formKey = document.querySelector('input[name=form_key]').value;
const postUrl = BASE_URL + 'catalog/product_compare/add/';
fetch(postUrl, {
"headers": {
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
},
"body": "form_key="+ formKey + "&product="+productId+"&uenc="+btoa(window.location.href),
"method": "POST",
"mode": "cors",
"credentials": "include"
}).then(function (response) {
if (response.redirected) {
window.location.href = response.url;
}
}).catch(function (error) {
typeof window.dispatchMessages !== "undefined" && window.dispatchMessages(
[{
type: "error",
text: error
}], 5000
);
});
},
getSlider: function getSlider() {
return this.$el.querySelector('.js_slides');
},
pageSize: 1,
pageFillers: 0,
calcPageSize: function calcPageSize() {
var slider = this.getSlider();
if (slider) {
this.pageSize = Math.round(slider.clientWidth / slider.querySelector('.js_slide').clientWidth);
this.pageFillers = (
this.pageSize * Math.ceil(this.products.length / this.pageSize)
) - this.products.length;
}
},
calcActive: function calcActive(event) {
var slider = this.getSlider();
this.active = Math.ceil(
Math.round(
slider.scrollLeft / (slider.scrollWidth / this.products.length)
) / this.pageSize
) * this.pageSize;
},
formatPrice(value, currency, showSign) {
var formatter = new Intl.NumberFormat(
document.documentElement.lang,
{
style: 'currency',
currency: currency || this.currency.base_currency_code,
signDisplay: showSign ? "always" : "auto"
}
);
return (typeof Intl.NumberFormat.prototype.formatToParts) ?
formatter.formatToParts(value).map(({type, value}) => {
switch (type) {
case 'currency':
return this.currency.base_currency_symbol || value;
case 'minusSign':
return '- ';
case 'plusSign':
return '+ ';
default :
return value;
}
}).reduce((string, part) => string + part) :
formatter.format(value);
},
}
}
Prodotti Correlati:
A partire da
I croccantini Monge Natural Superpremium Hairball sono un alimento completo per gatti adulti che soffrono piu' di altri l'accumolo di peli nello stomaco.
Disponibile
Description
Iscriviti alla Newsletter
Ricevi subito un buono sconto del 10% sul tuo primo ordine