${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":"cc63bb29-e0fc-4465-8e51-8333efd6a666","product_id":"2803c87d-7a30-426a-aee8-e01cea0a99f5","title":"Rose arc-en-ciel-S","weight_unit":"lb","inventory_quantity":1000,"sku":"FR-20210813-YHL(F)-AJ01+","barcode":"","position":1,"option1":"Rose arc-en-ciel","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d51c86ed70575e490ef78381d07bab1e.webp","path":"d51c86ed70575e490ef78381d07bab1e.webp","width":800,"height":646,"alt":"","aspect_ratio":1.238390092879257},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"29.99","retail_price":"68.99","available":true,"url":"\/products\/chenil-universel-quatre-saisons-pour-chiens-et-chats?variant=cc63bb29-e0fc-4465-8e51-8333efd6a666","available_quantity":999999999,"options":[{"name":"Couleur","value":"Rose arc-en-ciel"},{"name":"Taille","value":"S"}],"off_ratio":57,"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":"cc63bb29-e0fc-4465-8e51-8333efd6a666","product_id":"2803c87d-7a30-426a-aee8-e01cea0a99f5","title":"Rose arc-en-ciel-S","weight_unit":"lb","inventory_quantity":1000,"sku":"FR-20210813-YHL(F)-AJ01+","barcode":"","position":1,"option1":"Rose arc-en-ciel","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d51c86ed70575e490ef78381d07bab1e.webp","path":"d51c86ed70575e490ef78381d07bab1e.webp","width":800,"height":646,"alt":"","aspect_ratio":1.238390092879257},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"29.99","retail_price":"68.99","available":true,"url":"\/products\/chenil-universel-quatre-saisons-pour-chiens-et-chats?variant=cc63bb29-e0fc-4465-8e51-8333efd6a666","available_quantity":999999999,"options":[{"name":"Couleur","value":"Rose arc-en-ciel"},{"name":"Taille","value":"S"}],"off_ratio":57,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}