USB 3.0 A male to female extension cable
${function() {
const variantData = data.variant || {"id":"a0ea201c-0da3-4181-8504-99a5dfc19256","product_id":"c1297a04-47dd-4277-8a7b-154d746d93ef","title":"0.5M","weight_unit":"kg","inventory_quantity":1000,"sku":"CT-AMAF1-AG0.5","barcode":"","position":1,"option1":"0.5M","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.99,"min_quantity":1}],"weight":"0","compare_at_price":"12.99","price":"12.99","retail_price":"12.99","available":true,"url":"\/products\/usb-3-0-a-male-to-female-extension-cable?variant=a0ea201c-0da3-4181-8504-99a5dfc19256","available_quantity":999999999,"options":[{"name":"Length","value":"0.5M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a0ea201c-0da3-4181-8504-99a5dfc19256","product_id":"c1297a04-47dd-4277-8a7b-154d746d93ef","title":"0.5M","weight_unit":"kg","inventory_quantity":1000,"sku":"CT-AMAF1-AG0.5","barcode":"","position":1,"option1":"0.5M","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.99,"min_quantity":1}],"weight":"0","compare_at_price":"12.99","price":"12.99","retail_price":"12.99","available":true,"url":"\/products\/usb-3-0-a-male-to-female-extension-cable?variant=a0ea201c-0da3-4181-8504-99a5dfc19256","available_quantity":999999999,"options":[{"name":"Length","value":"0.5M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 50;
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 = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}