Random Short Sleeves Shirt
${function() {
const variantData = data.variant || {"id":"de154c2e-75bf-49da-9c0a-2121ded2b960","product_id":"ec22df2d-6a96-4f82-ad45-63aba67fc211","title":"Random-S","weight_unit":"kg","inventory_quantity":498,"sku":"MTM19180-Random-S","barcode":"","position":1,"option1":"Random","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":27.24,"min_quantity":1}],"weight":"0.23","compare_at_price":"28.67","price":"27.24","retail_price":"28.67","available":true,"url":"\/products\/random-christmas-charms-2-274p-j3eg-5hmf?variant=de154c2e-75bf-49da-9c0a-2121ded2b960","available_quantity":498,"options":[{"name":"color","value":"Random"},{"name":"size","value":"S"}],"off_ratio":"5","flashsale_info":{"variant_id":"de154c2e-75bf-49da-9c0a-2121ded2b960","product_id":"","quantity":0,"discount_id":"ec95396a-bcda-4f6b-b82f-49fedb0b2ef9","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":498,"ends_at":-1,"starts_at":1716808914,"allow_oversold":"uncheck","allocation_method":"none","price":"27.24","compare_at_price":"28.67","discount_price":"27.24","customary_saved_price":"1.43","customary_off_ratio":"5","discount_saved_price":"1.43","discount_off_ratio":"5","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":4};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minDays = parseInt('8');
const maxDays = parseInt('15');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
${tipText}
`;
}()}
people are viewing this right now
Color:
Random
${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}
`
}()}
Size:
S
${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}
`
}()}
Add to cart
$27.24
${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":"de154c2e-75bf-49da-9c0a-2121ded2b960","product_id":"ec22df2d-6a96-4f82-ad45-63aba67fc211","title":"Random-S","weight_unit":"kg","inventory_quantity":498,"sku":"MTM19180-Random-S","barcode":"","position":1,"option1":"Random","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":27.24,"min_quantity":1}],"weight":"0.23","compare_at_price":"28.67","price":"27.24","retail_price":"28.67","available":true,"url":"\/products\/random-christmas-charms-2-274p-j3eg-5hmf?variant=de154c2e-75bf-49da-9c0a-2121ded2b960","available_quantity":498,"options":[{"name":"color","value":"Random"},{"name":"size","value":"S"}],"off_ratio":"5","flashsale_info":{"variant_id":"de154c2e-75bf-49da-9c0a-2121ded2b960","product_id":"","quantity":0,"discount_id":"ec95396a-bcda-4f6b-b82f-49fedb0b2ef9","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":498,"ends_at":-1,"starts_at":1716808914,"allow_oversold":"uncheck","allocation_method":"none","price":"27.24","compare_at_price":"28.67","discount_price":"27.24","customary_saved_price":"1.43","customary_off_ratio":"5","discount_saved_price":"1.43","discount_off_ratio":"5","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":4};
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.