Blue Gold Exotic Style-YH1240
SIZE:
XS
${function(){
const optName = "SIZE";
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}
`
}()}
COLOR:
Blue
${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}
`
}()}
${function() {
const variantData = data.variant || {"id":"5afb4a39-9a3f-4796-8bac-263243ccce5f","product_id":"24eac8b6-1d77-4d7e-a20e-df5d8e64ae07","title":"XS-Blue","weight_unit":"kg","inventory_quantity":30,"sku":"000YH1240-XS-Blue-A001864","barcode":"","position":1,"option1":"XS","option2":"Blue","option3":"","note":"","image":null,"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0","compare_at_price":"23","price":"11.50","retail_price":"23","available":true,"url":"\/products\/blue-gold-exotic-style-yh1240?variant=5afb4a39-9a3f-4796-8bac-263243ccce5f","available_quantity":999999999,"options":[{"name":"SIZE","value":"XS"},{"name":"COLOR","value":"Blue"}],"off_ratio":"50","flashsale_info":{"variant_id":"5afb4a39-9a3f-4796-8bac-263243ccce5f","product_id":"","quantity":0,"discount_id":"d7b7198d-451c-4af5-89a6-14ad11b26759","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":3,"discount_sales_rate":"3","discount_stock":-1,"ends_at":-1,"starts_at":1708944496,"allow_oversold":"uncheck","allocation_method":"none","price":"11.50","compare_at_price":"23.00","discount_price":"11.50","customary_saved_price":"11.50","customary_off_ratio":"50","discount_saved_price":"11.50","discount_off_ratio":"50","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"Big Sale","discount_quantity":0,"is_need_split":false},"sales":5};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const postageFreeAmount = 59.9;
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 `
`;
}()}
Add to cart
$11.50
${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":"5afb4a39-9a3f-4796-8bac-263243ccce5f","product_id":"24eac8b6-1d77-4d7e-a20e-df5d8e64ae07","title":"XS-Blue","weight_unit":"kg","inventory_quantity":30,"sku":"000YH1240-XS-Blue-A001864","barcode":"","position":1,"option1":"XS","option2":"Blue","option3":"","note":"","image":null,"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0","compare_at_price":"23","price":"11.50","retail_price":"23","available":true,"url":"\/products\/blue-gold-exotic-style-yh1240?variant=5afb4a39-9a3f-4796-8bac-263243ccce5f","available_quantity":999999999,"options":[{"name":"SIZE","value":"XS"},{"name":"COLOR","value":"Blue"}],"off_ratio":"50","flashsale_info":{"variant_id":"5afb4a39-9a3f-4796-8bac-263243ccce5f","product_id":"","quantity":0,"discount_id":"d7b7198d-451c-4af5-89a6-14ad11b26759","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":3,"discount_sales_rate":"3","discount_stock":-1,"ends_at":-1,"starts_at":1708944496,"allow_oversold":"uncheck","allocation_method":"none","price":"11.50","compare_at_price":"23.00","discount_price":"11.50","customary_saved_price":"11.50","customary_off_ratio":"50","discount_saved_price":"11.50","discount_off_ratio":"50","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"Big Sale","discount_quantity":0,"is_need_split":false},"sales":5};
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.