Stainless steel kitchen clamp set
${function() {
const variantData = data.variant || {"id":"e44b6f15-0fda-4574-b509-b1a0148c0da6","product_id":"fae56d0e-6c19-4cdc-bfdc-2620e13f8fea","title":"Black","weight_unit":"g","inventory_quantity":5,"sku":"2022010716","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/6484ba9ff80509a31a02f0a99ec138f4.png","path":"6484ba9ff80509a31a02f0a99ec138f4.png","width":663,"height":735,"alt":"","aspect_ratio":0.9020408163265307},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"290","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/hotec-stainless-steel-kitchen-tongs-set-2-9-5-1-22-9-cm-and-12-30-5-cm-locking-metal-food-tongs-non-slip-handles?variant=e44b6f15-0fda-4574-b509-b1a0148c0da6","available_quantity":5,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black
${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}
`
}()}
Add to cart
$9.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":"e44b6f15-0fda-4574-b509-b1a0148c0da6","product_id":"fae56d0e-6c19-4cdc-bfdc-2620e13f8fea","title":"Black","weight_unit":"g","inventory_quantity":5,"sku":"2022010716","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/6484ba9ff80509a31a02f0a99ec138f4.png","path":"6484ba9ff80509a31a02f0a99ec138f4.png","width":663,"height":735,"alt":"","aspect_ratio":0.9020408163265307},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"290","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/hotec-stainless-steel-kitchen-tongs-set-2-9-5-1-22-9-cm-and-12-30-5-cm-locking-metal-food-tongs-non-slip-handles?variant=e44b6f15-0fda-4574-b509-b1a0148c0da6","available_quantity":5,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"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.
Sku : 2022010716
Weight : 290g
${function(){
const variantData = data.variant || {"id":"e44b6f15-0fda-4574-b509-b1a0148c0da6","product_id":"fae56d0e-6c19-4cdc-bfdc-2620e13f8fea","title":"Black","weight_unit":"g","inventory_quantity":5,"sku":"2022010716","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/6484ba9ff80509a31a02f0a99ec138f4.png","path":"6484ba9ff80509a31a02f0a99ec138f4.png","width":663,"height":735,"alt":"","aspect_ratio":0.9020408163265307},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"290","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/hotec-stainless-steel-kitchen-tongs-set-2-9-5-1-22-9-cm-and-12-30-5-cm-locking-metal-food-tongs-non-slip-handles?variant=e44b6f15-0fda-4574-b509-b1a0148c0da6","available_quantity":5,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}