${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":"cf503099-274d-40a6-a0e5-403014ef7e40","product_id":"6b9b2472-31ec-4ec6-b7fb-67753dfd8c4a","title":"kaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20220317-CYW(Z)-C01+","barcode":"","position":1,"option1":"kaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/542018e9fc342641be81fa2a33f1b285.webp","path":"542018e9fc342641be81fa2a33f1b285.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.68,"min_quantity":1}],"weight":"0","compare_at_price":"67.95","price":"34.68","retail_price":"67.95","available":true,"url":"\/products\/pantalon-de-survtement-dcontract-la-mode?variant=cf503099-274d-40a6-a0e5-403014ef7e40","available_quantity":999999999,"options":[{"name":"Couleur","value":"kaki"},{"name":"Taille","value":"M"}],"off_ratio":49,"flashsale_info":[],"sales":6};
const saveType = "amount";
const saveText = "Enregistrer {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
Détail €67.95
6 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":"cf503099-274d-40a6-a0e5-403014ef7e40","product_id":"6b9b2472-31ec-4ec6-b7fb-67753dfd8c4a","title":"kaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20220317-CYW(Z)-C01+","barcode":"","position":1,"option1":"kaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/542018e9fc342641be81fa2a33f1b285.webp","path":"542018e9fc342641be81fa2a33f1b285.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.68,"min_quantity":1}],"weight":"0","compare_at_price":"67.95","price":"34.68","retail_price":"67.95","available":true,"url":"\/products\/pantalon-de-survtement-dcontract-la-mode?variant=cf503099-274d-40a6-a0e5-403014ef7e40","available_quantity":999999999,"options":[{"name":"Couleur","value":"kaki"},{"name":"Taille","value":"M"}],"off_ratio":49,"flashsale_info":[],"sales":6};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}