Reflective Casual Sports Overalls
${function() {
const variantData = data.variant || {"id":"9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","product_id":"06c57e7b-220f-48ce-bc25-e27fbfd084ad","title":"black-2XL","weight_unit":"g","inventory_quantity":15,"sku":"5c78bdba-4e9d-4eab-8b25-07e90d9a6af1","barcode":"","position":1,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b0e7dbe0973edea933a398076d712002.png","path":"b0e7dbe0973edea933a398076d712002.png","width":597,"height":601,"alt":"Reflective Casual Sports Overalls Techwear Shop","aspect_ratio":0.9933444259567388},"wholesale_price":[{"price":30.95,"min_quantity":1}],"weight":"0","compare_at_price":"37.95","price":"30.95","retail_price":"37.95","available":true,"url":"\/products\/reflective-stitching-casual-sports-overalls?variant=9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","available_quantity":15,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"2XL"}],"off_ratio":18,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
black
${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:
2XL
${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
$30.95
${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":"9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","product_id":"06c57e7b-220f-48ce-bc25-e27fbfd084ad","title":"black-2XL","weight_unit":"g","inventory_quantity":15,"sku":"5c78bdba-4e9d-4eab-8b25-07e90d9a6af1","barcode":"","position":1,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b0e7dbe0973edea933a398076d712002.png","path":"b0e7dbe0973edea933a398076d712002.png","width":597,"height":601,"alt":"Reflective Casual Sports Overalls Techwear Shop","aspect_ratio":0.9933444259567388},"wholesale_price":[{"price":30.95,"min_quantity":1}],"weight":"0","compare_at_price":"37.95","price":"30.95","retail_price":"37.95","available":true,"url":"\/products\/reflective-stitching-casual-sports-overalls?variant=9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","available_quantity":15,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"2XL"}],"off_ratio":18,"flashsale_info":[],"sales":0};
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.
${function(){
const variantData = data.variant || {"id":"9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","product_id":"06c57e7b-220f-48ce-bc25-e27fbfd084ad","title":"black-2XL","weight_unit":"g","inventory_quantity":15,"sku":"5c78bdba-4e9d-4eab-8b25-07e90d9a6af1","barcode":"","position":1,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b0e7dbe0973edea933a398076d712002.png","path":"b0e7dbe0973edea933a398076d712002.png","width":597,"height":601,"alt":"Reflective Casual Sports Overalls Techwear Shop","aspect_ratio":0.9933444259567388},"wholesale_price":[{"price":30.95,"min_quantity":1}],"weight":"0","compare_at_price":"37.95","price":"30.95","retail_price":"37.95","available":true,"url":"\/products\/reflective-stitching-casual-sports-overalls?variant=9dad6a9f-cfba-4e47-97f3-522cc6d5a9dc","available_quantity":15,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"2XL"}],"off_ratio":18,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}