${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":"3b36a2ba-116e-400a-8399-3d1b5581b502","product_id":"8b2b8b84-dbd0-4813-bfcf-af1827d35f51","title":"Blanc-S","weight_unit":"kg","inventory_quantity":999,"sku":"FR-20220425-LS(Z)-B01+","barcode":"","position":1,"option1":"Blanc","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8bfa3144c0785b9a90e5201bd0b93514.jpg","path":"8bfa3144c0785b9a90e5201bd0b93514.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.2","compare_at_price":"58.99","price":"29.95","retail_price":"58.99","available":true,"url":"\/products\/\ud83d\udc95chemise-a-dentelle-en-coton-patchwork-de-couleur-unie\ud83d\ude0d?variant=3b36a2ba-116e-400a-8399-3d1b5581b502","available_quantity":999999999,"options":[{"name":"Styles","value":"Blanc"},{"name":"Taille","value":"S"}],"off_ratio":49,"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":"3b36a2ba-116e-400a-8399-3d1b5581b502","product_id":"8b2b8b84-dbd0-4813-bfcf-af1827d35f51","title":"Blanc-S","weight_unit":"kg","inventory_quantity":999,"sku":"FR-20220425-LS(Z)-B01+","barcode":"","position":1,"option1":"Blanc","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8bfa3144c0785b9a90e5201bd0b93514.jpg","path":"8bfa3144c0785b9a90e5201bd0b93514.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.2","compare_at_price":"58.99","price":"29.95","retail_price":"58.99","available":true,"url":"\/products\/\ud83d\udc95chemise-a-dentelle-en-coton-patchwork-de-couleur-unie\ud83d\ude0d?variant=3b36a2ba-116e-400a-8399-3d1b5581b502","available_quantity":999999999,"options":[{"name":"Styles","value":"Blanc"},{"name":"Taille","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}