MeWaii® Carnaval T-shirt décontracté unisexe
${function() {
const variantData = data.variant || {"id":"a31666a4-1323-485d-bd10-9ad06ed853f6","product_id":"7d552900-9d5a-43ed-bba2-75a297ee4255","title":"Deep Scoop-White","weight_unit":"g","inventory_quantity":0,"sku":"MEDO000SHI475W2","barcode":"","position":3,"option1":"Deep Scoop","option2":"White","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e542f1b19182a975386daa674be1ddd.jpeg","path":"8e542f1b19182a975386daa674be1ddd.jpeg","width":540,"height":540,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":false,"url":"\/products\/mewaii-carnaval-t-shirt-decontracte-unisexe?variant=a31666a4-1323-485d-bd10-9ad06ed853f6","available_quantity":0,"options":[{"name":"Style","value":"Deep Scoop"},{"name":"Color","value":"White"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
les gens regardent ça en ce moment
Style:
Deep Scoop
${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}
`
}()}
Color:
White
${function(){
const optName = "Color";
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}
`
}()}
Solder
€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":"a31666a4-1323-485d-bd10-9ad06ed853f6","product_id":"7d552900-9d5a-43ed-bba2-75a297ee4255","title":"Deep Scoop-White","weight_unit":"g","inventory_quantity":0,"sku":"MEDO000SHI475W2","barcode":"","position":3,"option1":"Deep Scoop","option2":"White","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e542f1b19182a975386daa674be1ddd.jpeg","path":"8e542f1b19182a975386daa674be1ddd.jpeg","width":540,"height":540,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":false,"url":"\/products\/mewaii-carnaval-t-shirt-decontracte-unisexe?variant=a31666a4-1323-485d-bd10-9ad06ed853f6","available_quantity":0,"options":[{"name":"Style","value":"Deep Scoop"},{"name":"Color","value":"White"}],"off_ratio":0,"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":"a31666a4-1323-485d-bd10-9ad06ed853f6","product_id":"7d552900-9d5a-43ed-bba2-75a297ee4255","title":"Deep Scoop-White","weight_unit":"g","inventory_quantity":0,"sku":"MEDO000SHI475W2","barcode":"","position":3,"option1":"Deep Scoop","option2":"White","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e542f1b19182a975386daa674be1ddd.jpeg","path":"8e542f1b19182a975386daa674be1ddd.jpeg","width":540,"height":540,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":false,"url":"\/products\/mewaii-carnaval-t-shirt-decontracte-unisexe?variant=a31666a4-1323-485d-bd10-9ad06ed853f6","available_quantity":0,"options":[{"name":"Style","value":"Deep Scoop"},{"name":"Color","value":"White"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Inventaire : ${variantData && variantData.available_quantity}
`
}()}