M4 & M4Pro park Metal tube
M4 & M4Pro park Metal tube
${function() {
const variantData = data.variant || {"id":"c1893837-04a2-4277-9677-95f9149cc1e7","product_id":"8b089793-e910-446e-b313-c0e80abd2dd3","title":"M4Pro park Metal tube","weight_unit":"kg","inventory_quantity":0,"sku":"M4 Pro\u6241\u7ba1","barcode":"","position":1,"option1":"M4Pro park Metal tube","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d16699cac64036f09173446af235d14.jpg","path":"5d16699cac64036f09173446af235d14.jpg","width":573,"height":553,"alt":"M4 & M4Pro park Metal tube","aspect_ratio":1.0361663652802893},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/m4-pro-park-metal-tube?variant=c1893837-04a2-4277-9677-95f9149cc1e7","available_quantity":999999999,"options":[{"name":"M4 & M4Pro park Metal tube","value":"M4Pro park Metal tube"}],"off_ratio":0,"flashsale_info":[],"sales":26};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const postageFreeAmount = 30;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Votre commande est la livraison gratuite";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}
M4 & M4Pro Park Metal Tube:
M4Pro park Metal tube
${function(){
const optName = "M4 & M4Pro park Metal tube";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Ajouter au panier
€45.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"c1893837-04a2-4277-9677-95f9149cc1e7","product_id":"8b089793-e910-446e-b313-c0e80abd2dd3","title":"M4Pro park Metal tube","weight_unit":"kg","inventory_quantity":0,"sku":"M4 Pro\u6241\u7ba1","barcode":"","position":1,"option1":"M4Pro park Metal tube","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d16699cac64036f09173446af235d14.jpg","path":"5d16699cac64036f09173446af235d14.jpg","width":573,"height":553,"alt":"M4 & M4Pro park Metal tube","aspect_ratio":1.0361663652802893},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/m4-pro-park-metal-tube?variant=c1893837-04a2-4277-9677-95f9149cc1e7","available_quantity":999999999,"options":[{"name":"M4 & M4Pro park Metal tube","value":"M4Pro park Metal tube"}],"off_ratio":0,"flashsale_info":[],"sales":26};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Acheter maintenant
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"c1893837-04a2-4277-9677-95f9149cc1e7","product_id":"8b089793-e910-446e-b313-c0e80abd2dd3","title":"M4Pro park Metal tube","weight_unit":"kg","inventory_quantity":0,"sku":"M4 Pro\u6241\u7ba1","barcode":"","position":1,"option1":"M4Pro park Metal tube","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d16699cac64036f09173446af235d14.jpg","path":"5d16699cac64036f09173446af235d14.jpg","width":573,"height":553,"alt":"M4 & M4Pro park Metal tube","aspect_ratio":1.0361663652802893},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/m4-pro-park-metal-tube?variant=c1893837-04a2-4277-9677-95f9149cc1e7","available_quantity":999999999,"options":[{"name":"M4 & M4Pro park Metal tube","value":"M4Pro park Metal tube"}],"off_ratio":0,"flashsale_info":[],"sales":26};
return `
Sku : ${variantData && variantData.sku}
Poids : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
code à barre : ${variantData && variantData.barcode}
`
}()}