${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":"e098aa2a-6a16-4a5b-ac9f-dd172b775018","product_id":"5cc58c1f-d4cc-4a5c-9c7d-8d96c585b7b4","title":"vert + bleu + rouge corail + beige-M","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20220617-ZL(LS)-D01+","barcode":"","position":1,"option1":"vert + bleu + rouge corail + beige","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6bc327f17a143234f43b2f244bc1bdfc.webp","path":"6bc327f17a143234f43b2f244bc1bdfc.webp","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.39,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.99","price":"31.39","retail_price":"59.99","available":true,"url":"\/products\/4pcs-culotte-en-dentelle-surdimensionnee-pour-femmes?variant=e098aa2a-6a16-4a5b-ac9f-dd172b775018","available_quantity":999999999,"options":[{"name":"Couleur","value":"vert + bleu + rouge corail + beige"},{"name":"Taille","value":"M"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Enregistrer {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
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":"e098aa2a-6a16-4a5b-ac9f-dd172b775018","product_id":"5cc58c1f-d4cc-4a5c-9c7d-8d96c585b7b4","title":"vert + bleu + rouge corail + beige-M","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20220617-ZL(LS)-D01+","barcode":"","position":1,"option1":"vert + bleu + rouge corail + beige","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6bc327f17a143234f43b2f244bc1bdfc.webp","path":"6bc327f17a143234f43b2f244bc1bdfc.webp","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.39,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.99","price":"31.39","retail_price":"59.99","available":true,"url":"\/products\/4pcs-culotte-en-dentelle-surdimensionnee-pour-femmes?variant=e098aa2a-6a16-4a5b-ac9f-dd172b775018","available_quantity":999999999,"options":[{"name":"Couleur","value":"vert + bleu + rouge corail + beige"},{"name":"Taille","value":"M"}],"off_ratio":48,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}