2 in 1 Drill Chuck Ratchet Spanner🔥Christmas Sale-49% OFF🔥
${function() {
const variantData = data.variant || {"id":"c64a742c-1a1e-4fb2-97ed-6c41ff912f18","product_id":"4288cd06-cde1-47e6-9dd8-ddde59db11db","title":"1 PCS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"1 PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b40d2d07f1dbc1a5d56c265117f6c54f.webp","path":"b40d2d07f1dbc1a5d56c265117f6c54f.webp","width":400,"height":400,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"20.99","retail_price":"29.99","available":true,"url":"\/products\/2-in-1-drill-chuck-ratchet-spanner-christmas-sale-49-off?variant=c64a742c-1a1e-4fb2-97ed-6c41ff912f18","available_quantity":999999999,"options":[{"name":"Amount","value":"1 PCS"}],"off_ratio":30,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Amount:
1 PCS
${function(){
const optName = "Amount";
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
$20.99
${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":"c64a742c-1a1e-4fb2-97ed-6c41ff912f18","product_id":"4288cd06-cde1-47e6-9dd8-ddde59db11db","title":"1 PCS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"1 PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b40d2d07f1dbc1a5d56c265117f6c54f.webp","path":"b40d2d07f1dbc1a5d56c265117f6c54f.webp","width":400,"height":400,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"20.99","retail_price":"29.99","available":true,"url":"\/products\/2-in-1-drill-chuck-ratchet-spanner-christmas-sale-49-off?variant=c64a742c-1a1e-4fb2-97ed-6c41ff912f18","available_quantity":999999999,"options":[{"name":"Amount","value":"1 PCS"}],"off_ratio":30,"flashsale_info":[],"sales":0};
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":"c64a742c-1a1e-4fb2-97ed-6c41ff912f18","product_id":"4288cd06-cde1-47e6-9dd8-ddde59db11db","title":"1 PCS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"1 PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b40d2d07f1dbc1a5d56c265117f6c54f.webp","path":"b40d2d07f1dbc1a5d56c265117f6c54f.webp","width":400,"height":400,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"20.99","retail_price":"29.99","available":true,"url":"\/products\/2-in-1-drill-chuck-ratchet-spanner-christmas-sale-49-off?variant=c64a742c-1a1e-4fb2-97ed-6c41ff912f18","available_quantity":999999999,"options":[{"name":"Amount","value":"1 PCS"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}