${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":"c37a12cc-58c4-4dc6-b2b5-e2b590052005","product_id":"efbeb940-869d-4cc2-92e1-824a2516cc91","title":"Or ovale","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20210917-YHL(F)-B01+","barcode":"","position":1,"option1":"Or ovale","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e857b5dea04b20ef24bf46c7d3468423.jpeg","path":"e857b5dea04b20ef24bf46c7d3468423.jpeg","width":500,"height":500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.48,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"23.48","retail_price":"39.99","available":true,"url":"\/products\/ceinture-de-trefle-a-quatre-feuilles?variant=c37a12cc-58c4-4dc6-b2b5-e2b590052005","available_quantity":999999999,"options":[{"name":"Style","value":"Or ovale"}],"off_ratio":41,"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}
`
}()}
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"c37a12cc-58c4-4dc6-b2b5-e2b590052005","product_id":"efbeb940-869d-4cc2-92e1-824a2516cc91","title":"Or ovale","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20210917-YHL(F)-B01+","barcode":"","position":1,"option1":"Or ovale","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e857b5dea04b20ef24bf46c7d3468423.jpeg","path":"e857b5dea04b20ef24bf46c7d3468423.jpeg","width":500,"height":500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.48,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"23.48","retail_price":"39.99","available":true,"url":"\/products\/ceinture-de-trefle-a-quatre-feuilles?variant=c37a12cc-58c4-4dc6-b2b5-e2b590052005","available_quantity":999999999,"options":[{"name":"Style","value":"Or ovale"}],"off_ratio":41,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}