${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":"f5223ba5-7012-43e4-802c-10a152bf5f44","product_id":"d237dbb7-dd6c-4632-97e5-422eda61d3a1","title":"BALLON D'ARGENT","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20211119-YHL(F)-A01","barcode":"","position":1,"option1":"BALLON D'ARGENT","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f828b8e3cdc45c60ca8016dea6f9e1d3.webp","path":"f828b8e3cdc45c60ca8016dea6f9e1d3.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/boucles-doreilles-sphere?variant=f5223ba5-7012-43e4-802c-10a152bf5f44","available_quantity":999999999,"options":[{"name":"Styles","value":"BALLON D'ARGENT"}],"off_ratio":50,"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":"f5223ba5-7012-43e4-802c-10a152bf5f44","product_id":"d237dbb7-dd6c-4632-97e5-422eda61d3a1","title":"BALLON D'ARGENT","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20211119-YHL(F)-A01","barcode":"","position":1,"option1":"BALLON D'ARGENT","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f828b8e3cdc45c60ca8016dea6f9e1d3.webp","path":"f828b8e3cdc45c60ca8016dea6f9e1d3.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/boucles-doreilles-sphere?variant=f5223ba5-7012-43e4-802c-10a152bf5f44","available_quantity":999999999,"options":[{"name":"Styles","value":"BALLON D'ARGENT"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}