MeWaii® Famille Champignon Phalène Diable Noir Kawaii Oreiller en peluche Jouet à écraser
${function() {
const variantData = data.variant || {"id":"7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","product_id":"14a2575d-4681-458f-83b3-6668abae36a9","title":"Devil Moth Black-21 cm","weight_unit":"kg","inventory_quantity":72,"sku":"MEPI000MUD0403B1","barcode":"","position":1,"option1":"Devil Moth Black","option2":"21 cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f68413917a349d3ce00797a1805ab46f.jpeg","path":"f68413917a349d3ce00797a1805ab46f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"13.99","price":"14.99","retail_price":"13.99","available":true,"url":"\/products\/mewaii-mushroom-family-devil-moth-black-kawaii-plush-pillow-squish-toy?variant=7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","available_quantity":72,"options":[{"name":"Style","value":"Devil Moth Black"},{"name":"Size","value":"21 cm"}],"off_ratio":0,"flashsale_info":[],"sales":25};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
les gens regardent ça en ce moment
Style:
Devil Moth Black
${function(){
const optName = "Style";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
21 cm
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Ajouter au panier
€14.99
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","product_id":"14a2575d-4681-458f-83b3-6668abae36a9","title":"Devil Moth Black-21 cm","weight_unit":"kg","inventory_quantity":72,"sku":"MEPI000MUD0403B1","barcode":"","position":1,"option1":"Devil Moth Black","option2":"21 cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f68413917a349d3ce00797a1805ab46f.jpeg","path":"f68413917a349d3ce00797a1805ab46f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"13.99","price":"14.99","retail_price":"13.99","available":true,"url":"\/products\/mewaii-mushroom-family-devil-moth-black-kawaii-plush-pillow-squish-toy?variant=7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","available_quantity":72,"options":[{"name":"Style","value":"Devil Moth Black"},{"name":"Size","value":"21 cm"}],"off_ratio":0,"flashsale_info":[],"sales":25};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","product_id":"14a2575d-4681-458f-83b3-6668abae36a9","title":"Devil Moth Black-21 cm","weight_unit":"kg","inventory_quantity":72,"sku":"MEPI000MUD0403B1","barcode":"","position":1,"option1":"Devil Moth Black","option2":"21 cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f68413917a349d3ce00797a1805ab46f.jpeg","path":"f68413917a349d3ce00797a1805ab46f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"13.99","price":"14.99","retail_price":"13.99","available":true,"url":"\/products\/mewaii-mushroom-family-devil-moth-black-kawaii-plush-pillow-squish-toy?variant=7db16f04-c540-4b21-b5a9-1e1d0d5e6f4b","available_quantity":72,"options":[{"name":"Style","value":"Devil Moth Black"},{"name":"Size","value":"21 cm"}],"off_ratio":0,"flashsale_info":[],"sales":25};
return `
Inventaire : ${variantData && variantData.available_quantity}
`
}()}