Étui à coussin de salon en plein air mewaii® pour canapé-lit paquet de lit de 2 50 cm * 75cm
${function() {
const variantData = data.variant || {"id":"5c741075-94f3-461f-a656-97dbb0d4a2fd","product_id":"c794aaf1-acbb-4149-aaf0-68a847197dc7","title":"Dinosaur","weight_unit":"kg","inventory_quantity":10,"sku":"2305201-dinosaur","barcode":"","position":2,"option1":"Dinosaur","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cde5f3c4d051deb4d2151a95e370e5b6.jpg","path":"cde5f3c4d051deb4d2151a95e370e5b6.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"35","price":"29.99","retail_price":"35","available":true,"url":"\/products\/mewaii\u00ae-outdoor-living-room-cushion-case-for-sofa-couch-home-bed-pack-of-2-50cm-75cm?variant=5c741075-94f3-461f-a656-97dbb0d4a2fd","available_quantity":10,"options":[{"name":"Style","value":"Dinosaur"}],"off_ratio":14,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
les gens regardent ça en ce moment
Style:
Dinosaur
${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}
`
}()}
Ajouter au panier
€29.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":"5c741075-94f3-461f-a656-97dbb0d4a2fd","product_id":"c794aaf1-acbb-4149-aaf0-68a847197dc7","title":"Dinosaur","weight_unit":"kg","inventory_quantity":10,"sku":"2305201-dinosaur","barcode":"","position":2,"option1":"Dinosaur","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cde5f3c4d051deb4d2151a95e370e5b6.jpg","path":"cde5f3c4d051deb4d2151a95e370e5b6.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"35","price":"29.99","retail_price":"35","available":true,"url":"\/products\/mewaii\u00ae-outdoor-living-room-cushion-case-for-sofa-couch-home-bed-pack-of-2-50cm-75cm?variant=5c741075-94f3-461f-a656-97dbb0d4a2fd","available_quantity":10,"options":[{"name":"Style","value":"Dinosaur"}],"off_ratio":14,"flashsale_info":[],"sales":0};
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":"5c741075-94f3-461f-a656-97dbb0d4a2fd","product_id":"c794aaf1-acbb-4149-aaf0-68a847197dc7","title":"Dinosaur","weight_unit":"kg","inventory_quantity":10,"sku":"2305201-dinosaur","barcode":"","position":2,"option1":"Dinosaur","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cde5f3c4d051deb4d2151a95e370e5b6.jpg","path":"cde5f3c4d051deb4d2151a95e370e5b6.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"35","price":"29.99","retail_price":"35","available":true,"url":"\/products\/mewaii\u00ae-outdoor-living-room-cushion-case-for-sofa-couch-home-bed-pack-of-2-50cm-75cm?variant=5c741075-94f3-461f-a656-97dbb0d4a2fd","available_quantity":10,"options":[{"name":"Style","value":"Dinosaur"}],"off_ratio":14,"flashsale_info":[],"sales":0};
return `
Inventaire : ${variantData && variantData.available_quantity}
`
}()}