Game Controller S1P
${function() {
const variantData = data.variant || {"id":"99fd2515-e29f-4b42-b016-53b7cd45bb8f","product_id":"a080367c-6d11-4e4c-9cc2-3597f048b2d2","title":"","weight_unit":"kg","inventory_quantity":2998,"sku":"22","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":109.99,"min_quantity":1}],"weight":"1","compare_at_price":"109.99","price":"109.99","retail_price":"109.99","available":true,"url":"\/products\/game-controller-s1p?variant=99fd2515-e29f-4b42-b016-53b7cd45bb8f","available_quantity":2998,"options":[],"off_ratio":0,"flashsale_info":[],"sales":299};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"99fd2515-e29f-4b42-b016-53b7cd45bb8f","product_id":"a080367c-6d11-4e4c-9cc2-3597f048b2d2","title":"","weight_unit":"kg","inventory_quantity":2998,"sku":"22","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":109.99,"min_quantity":1}],"weight":"1","compare_at_price":"109.99","price":"109.99","retail_price":"109.99","available":true,"url":"\/products\/game-controller-s1p?variant=99fd2515-e29f-4b42-b016-53b7cd45bb8f","available_quantity":2998,"options":[],"off_ratio":0,"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 `
`;
}()}