${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":"df81f76d-1c74-4a3e-b437-7c40a3e912e2","product_id":"51c00d48-43c7-4b5b-8ed0-23ae51307d35","title":"Vert-38","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20210813-YHL(F)-A01+","barcode":"","position":1,"option1":"Vert","option2":"38","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe74996e10fac6ca2b61893bab8e6c41.webp","path":"fe74996e10fac6ca2b61893bab8e6c41.webp","width":750,"height":696,"alt":"","aspect_ratio":1.0775862068965518},"wholesale_price":[{"price":35.28,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.28","retail_price":"0","available":true,"url":"\/products\/chaussures-pour-hommes-respirantes-de-style-vintage?variant=df81f76d-1c74-4a3e-b437-7c40a3e912e2","available_quantity":999999999,"options":[{"name":"Couleur","value":"Vert"},{"name":"Taille","value":"38"}],"off_ratio":0,"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":"df81f76d-1c74-4a3e-b437-7c40a3e912e2","product_id":"51c00d48-43c7-4b5b-8ed0-23ae51307d35","title":"Vert-38","weight_unit":"kg","inventory_quantity":1000,"sku":"FR-20210813-YHL(F)-A01+","barcode":"","position":1,"option1":"Vert","option2":"38","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe74996e10fac6ca2b61893bab8e6c41.webp","path":"fe74996e10fac6ca2b61893bab8e6c41.webp","width":750,"height":696,"alt":"","aspect_ratio":1.0775862068965518},"wholesale_price":[{"price":35.28,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.28","retail_price":"0","available":true,"url":"\/products\/chaussures-pour-hommes-respirantes-de-style-vintage?variant=df81f76d-1c74-4a3e-b437-7c40a3e912e2","available_quantity":999999999,"options":[{"name":"Couleur","value":"Vert"},{"name":"Taille","value":"38"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}