Game Controller SP6
${function() {
const variantData = data.variant || {"id":"223858b7-bd3f-4e1b-a57b-890b6a69dd74","product_id":"f5c2a027-cf8c-4f86-91ae-71977f4d128d","title":"Black","weight_unit":"kg","inventory_quantity":2999,"sku":"222","barcode":"","position":2,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/30fb108e4e79582383c36920d9a9fab2.png","path":"30fb108e4e79582383c36920d9a9fab2.png","width":644,"height":644,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":299,"min_quantity":1}],"weight":"0","compare_at_price":"399","price":"299","retail_price":"399","available":true,"url":"\/products\/game-controller-sp6?variant=223858b7-bd3f-4e1b-a57b-890b6a69dd74","available_quantity":2999,"options":[{"name":"Color","value":"Black"}],"off_ratio":25,"flashsale_info":[],"sales":299};
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":"223858b7-bd3f-4e1b-a57b-890b6a69dd74","product_id":"f5c2a027-cf8c-4f86-91ae-71977f4d128d","title":"Black","weight_unit":"kg","inventory_quantity":2999,"sku":"222","barcode":"","position":2,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/30fb108e4e79582383c36920d9a9fab2.png","path":"30fb108e4e79582383c36920d9a9fab2.png","width":644,"height":644,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":299,"min_quantity":1}],"weight":"0","compare_at_price":"399","price":"299","retail_price":"399","available":true,"url":"\/products\/game-controller-sp6?variant=223858b7-bd3f-4e1b-a57b-890b6a69dd74","available_quantity":2999,"options":[{"name":"Color","value":"Black"}],"off_ratio":25,"flashsale_info":[],"sales":299};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 399;
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 `
`;
}()}