${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":"4ff0156c-ae6f-46d1-8005-e6e902bb9ff2","product_id":"16b71438-a473-472c-98db-6e78aaac23ef","title":"violet noir-35","weight_unit":"lb","inventory_quantity":1000,"sku":"FR-20211230-CYW(F)-A01+","barcode":"","position":1,"option1":"violet noir","option2":"35","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/42fd61898886c576cd178cf9c80cc2f6.webp","path":"42fd61898886c576cd178cf9c80cc2f6.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.99","price":"31.99","retail_price":"65.99","available":true,"url":"\/products\/chaussures-de-sport-dcontractes-03sw?variant=4ff0156c-ae6f-46d1-8005-e6e902bb9ff2","available_quantity":999999999,"options":[{"name":"Couleur","value":"violet noir"},{"name":"Taille","value":"35"}],"off_ratio":52,"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":"4ff0156c-ae6f-46d1-8005-e6e902bb9ff2","product_id":"16b71438-a473-472c-98db-6e78aaac23ef","title":"violet noir-35","weight_unit":"lb","inventory_quantity":1000,"sku":"FR-20211230-CYW(F)-A01+","barcode":"","position":1,"option1":"violet noir","option2":"35","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/42fd61898886c576cd178cf9c80cc2f6.webp","path":"42fd61898886c576cd178cf9c80cc2f6.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.99","price":"31.99","retail_price":"65.99","available":true,"url":"\/products\/chaussures-de-sport-dcontractes-03sw?variant=4ff0156c-ae6f-46d1-8005-e6e902bb9ff2","available_quantity":999999999,"options":[{"name":"Couleur","value":"violet noir"},{"name":"Taille","value":"35"}],"off_ratio":52,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}