${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":"5a0c605a-c4e5-4888-bb44-6e86429c6b7b","product_id":"0832e33a-cba4-4528-a7b9-0a1c387cc33e","title":"Kaki-36-37","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20211010-YHL(F)-A01+","barcode":"","position":1,"option1":"Kaki","option2":"36-37","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1784a05b75eda288e347aa60cb50a79f.webp","path":"1784a05b75eda288e347aa60cb50a79f.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.48,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"28.48","retail_price":"49.99","available":true,"url":"\/products\/chaussons-en-coton-chauds?variant=5a0c605a-c4e5-4888-bb44-6e86429c6b7b","available_quantity":999999999,"options":[{"name":"Couleurs","value":"Kaki"},{"name":"Taille","value":"36-37"}],"off_ratio":43,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Enregistrer {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
Détail €49.99
1 vendu
people are viewing this right now
${function(){
const tipText = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"5a0c605a-c4e5-4888-bb44-6e86429c6b7b","product_id":"0832e33a-cba4-4528-a7b9-0a1c387cc33e","title":"Kaki-36-37","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20211010-YHL(F)-A01+","barcode":"","position":1,"option1":"Kaki","option2":"36-37","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1784a05b75eda288e347aa60cb50a79f.webp","path":"1784a05b75eda288e347aa60cb50a79f.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.48,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"28.48","retail_price":"49.99","available":true,"url":"\/products\/chaussons-en-coton-chauds?variant=5a0c605a-c4e5-4888-bb44-6e86429c6b7b","available_quantity":999999999,"options":[{"name":"Couleurs","value":"Kaki"},{"name":"Taille","value":"36-37"}],"off_ratio":43,"flashsale_info":[],"sales":1};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}