${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":"db913e50-191b-492e-a78d-69d93dd7a2fb","product_id":"6eb8bfe0-fa59-414a-bf77-0bf2ec4c5c25","title":"Kaki-38","weight_unit":"lb","inventory_quantity":500,"sku":"FR-20210708-FCY-F01+","barcode":"","position":1,"option1":"Kaki","option2":"38","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9557a4d978fc9ae23976fd931ca97f59.jpeg","path":"9557a4d978fc9ae23976fd931ca97f59.jpeg","width":571,"height":658,"alt":"","aspect_ratio":0.8677811550151976},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"35.99","retail_price":"68.99","available":true,"url":"\/products\/sandales-a-tongues-faites-a-la-main-respirantes-et-antiderapantes?variant=db913e50-191b-492e-a78d-69d93dd7a2fb","available_quantity":999999999,"options":[{"name":"Couleur","value":"Kaki"},{"name":"Taille","value":"38"}],"off_ratio":48,"flashsale_info":[],"sales":3};
const saveType = "amount";
const saveText = "Enregistrer {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
Détail €68.99
3 vendu
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":"db913e50-191b-492e-a78d-69d93dd7a2fb","product_id":"6eb8bfe0-fa59-414a-bf77-0bf2ec4c5c25","title":"Kaki-38","weight_unit":"lb","inventory_quantity":500,"sku":"FR-20210708-FCY-F01+","barcode":"","position":1,"option1":"Kaki","option2":"38","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9557a4d978fc9ae23976fd931ca97f59.jpeg","path":"9557a4d978fc9ae23976fd931ca97f59.jpeg","width":571,"height":658,"alt":"","aspect_ratio":0.8677811550151976},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"35.99","retail_price":"68.99","available":true,"url":"\/products\/sandales-a-tongues-faites-a-la-main-respirantes-et-antiderapantes?variant=db913e50-191b-492e-a78d-69d93dd7a2fb","available_quantity":999999999,"options":[{"name":"Couleur","value":"Kaki"},{"name":"Taille","value":"38"}],"off_ratio":48,"flashsale_info":[],"sales":3};
return `
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}