Game Controller SP6
${function() {
const variantData = data.variant || {"id":"4902d860-d481-448a-b981-6d809ef42832","product_id":"f5c2a027-cf8c-4f86-91ae-71977f4d128d","title":"White","weight_unit":"kg","inventory_quantity":2999,"sku":"222","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/730a49bc7542448127eb395d41c7a295.png","path":"730a49bc7542448127eb395d41c7a295.png","width":528,"height":528,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":298,"min_quantity":1}],"weight":"0","compare_at_price":"339","price":"298","retail_price":"339","available":true,"url":"\/products\/game-controller-sp6?variant=4902d860-d481-448a-b981-6d809ef42832","available_quantity":2999,"options":[{"name":"Color","value":"White"}],"off_ratio":12,"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":"4902d860-d481-448a-b981-6d809ef42832","product_id":"f5c2a027-cf8c-4f86-91ae-71977f4d128d","title":"White","weight_unit":"kg","inventory_quantity":2999,"sku":"222","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/730a49bc7542448127eb395d41c7a295.png","path":"730a49bc7542448127eb395d41c7a295.png","width":528,"height":528,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":298,"min_quantity":1}],"weight":"0","compare_at_price":"339","price":"298","retail_price":"339","available":true,"url":"\/products\/game-controller-sp6?variant=4902d860-d481-448a-b981-6d809ef42832","available_quantity":2999,"options":[{"name":"Color","value":"White"}],"off_ratio":12,"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 `
`;
}()}