${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function() {
const variantData = data.variant || {"id":"25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","product_id":"613a89fb-5c4a-4987-8d01-1cca38a05abf","title":"Robe Mirabel pour enfants-110cm","weight_unit":"kg","inventory_quantity":999,"sku":"FR-20220325-LS(Z)-F01+","barcode":"","position":1,"option1":"Robe Mirabel pour enfants","option2":"110cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d3f55506dea76e0d2d20d002095a0430.webp","path":"d3f55506dea76e0d2d20d002095a0430.webp","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.3","compare_at_price":"58.99","price":"29.95","retail_price":"58.99","available":true,"url":"\/products\/encanto-cosplay-costumes-pour-filles-robes-pour-filles-en-costume?variant=25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","available_quantity":999999999,"options":[{"name":"STYLE\uff08Robe + Cartable\uff09","value":"Robe Mirabel pour enfants"},{"name":"Taille","value":"110cm"}],"off_ratio":49,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Enregistrer {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Détail €58.99
1 vendu
people are viewing this right now
Style(Robe + Cartable)
: Robe Mirabel pour enfants
${function(){
const optName = "STYLE(Robe + Cartable)";
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}
`
}()}
Taille
: 110cm
${function(){
const optName = "Taille";
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.95
${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":"25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","product_id":"613a89fb-5c4a-4987-8d01-1cca38a05abf","title":"Robe Mirabel pour enfants-110cm","weight_unit":"kg","inventory_quantity":999,"sku":"FR-20220325-LS(Z)-F01+","barcode":"","position":1,"option1":"Robe Mirabel pour enfants","option2":"110cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d3f55506dea76e0d2d20d002095a0430.webp","path":"d3f55506dea76e0d2d20d002095a0430.webp","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.3","compare_at_price":"58.99","price":"29.95","retail_price":"58.99","available":true,"url":"\/products\/encanto-cosplay-costumes-pour-filles-robes-pour-filles-en-costume?variant=25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","available_quantity":999999999,"options":[{"name":"STYLE\uff08Robe + Cartable\uff09","value":"Robe Mirabel pour enfants"},{"name":"Taille","value":"110cm"}],"off_ratio":49,"flashsale_info":[],"sales":1};
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 {
return `
`
}
}()}
Acheter maintenant
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","product_id":"613a89fb-5c4a-4987-8d01-1cca38a05abf","title":"Robe Mirabel pour enfants-110cm","weight_unit":"kg","inventory_quantity":999,"sku":"FR-20220325-LS(Z)-F01+","barcode":"","position":1,"option1":"Robe Mirabel pour enfants","option2":"110cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d3f55506dea76e0d2d20d002095a0430.webp","path":"d3f55506dea76e0d2d20d002095a0430.webp","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.3","compare_at_price":"58.99","price":"29.95","retail_price":"58.99","available":true,"url":"\/products\/encanto-cosplay-costumes-pour-filles-robes-pour-filles-en-costume?variant=25ccb5f4-815c-4ab9-a5a1-e0a6fab5b32d","available_quantity":999999999,"options":[{"name":"STYLE\uff08Robe + Cartable\uff09","value":"Robe Mirabel pour enfants"},{"name":"Taille","value":"110cm"}],"off_ratio":49,"flashsale_info":[],"sales":1};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}