Spherical milling cutter for wood
${function() {
const variantData = data.variant || {"id":"32314282-3211-4354-a810-8ee3ecdb4385","product_id":"0aa81335-bbb2-4be2-bd34-923822ea68d0","title":"silver-10mm","weight_unit":"kg","inventory_quantity":99999,"sku":"","barcode":"","position":3,"option1":"silver","option2":"10mm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7018312ded441a1d904b9ca7b616afd1.jpg","path":"7018312ded441a1d904b9ca7b616afd1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.98,"min_quantity":1}],"weight":"0","compare_at_price":"77.98","price":"38.98","retail_price":"77.98","available":true,"url":"\/products\/fraise-spherique-a-bois?variant=32314282-3211-4354-a810-8ee3ecdb4385","available_quantity":999999999,"options":[{"name":"Color","value":"silver"},{"name":"size","value":"10mm"}],"off_ratio":50,"flashsale_info":[],"sales":5};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
silver
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
10mm
${function(){
const optName = "size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$38.98
${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":"32314282-3211-4354-a810-8ee3ecdb4385","product_id":"0aa81335-bbb2-4be2-bd34-923822ea68d0","title":"silver-10mm","weight_unit":"kg","inventory_quantity":99999,"sku":"","barcode":"","position":3,"option1":"silver","option2":"10mm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7018312ded441a1d904b9ca7b616afd1.jpg","path":"7018312ded441a1d904b9ca7b616afd1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.98,"min_quantity":1}],"weight":"0","compare_at_price":"77.98","price":"38.98","retail_price":"77.98","available":true,"url":"\/products\/fraise-spherique-a-bois?variant=32314282-3211-4354-a810-8ee3ecdb4385","available_quantity":999999999,"options":[{"name":"Color","value":"silver"},{"name":"size","value":"10mm"}],"off_ratio":50,"flashsale_info":[],"sales":5};
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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"32314282-3211-4354-a810-8ee3ecdb4385","product_id":"0aa81335-bbb2-4be2-bd34-923822ea68d0","title":"silver-10mm","weight_unit":"kg","inventory_quantity":99999,"sku":"","barcode":"","position":3,"option1":"silver","option2":"10mm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7018312ded441a1d904b9ca7b616afd1.jpg","path":"7018312ded441a1d904b9ca7b616afd1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.98,"min_quantity":1}],"weight":"0","compare_at_price":"77.98","price":"38.98","retail_price":"77.98","available":true,"url":"\/products\/fraise-spherique-a-bois?variant=32314282-3211-4354-a810-8ee3ecdb4385","available_quantity":999999999,"options":[{"name":"Color","value":"silver"},{"name":"size","value":"10mm"}],"off_ratio":50,"flashsale_info":[],"sales":5};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}