Women's Be Careful Who You Hate, It Could Be Someone You Love Printed T-Shirt
${function() {
const variantData = data.variant || {"id":"babac58a-f8a4-4b91-8818-4307dc568478","product_id":"7011532b-c30b-4043-bf69-a6dc63f936df","title":"black-XXS","weight_unit":"kg","inventory_quantity":200,"sku":"TSLC3169-black-XXS","barcode":"","position":1,"option1":"black","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/39888b259a0d4a57300739cb55951d80.jpeg","path":"39888b259a0d4a57300739cb55951d80.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.98,"min_quantity":1}],"weight":"0.26","compare_at_price":"0","price":"21.98","retail_price":"0","available":true,"url":"\/products\/womens-gods-children-are-not-for-sale-print-short-sleeve-t-shirt-zbj9-l4lp-zgee-abra-ctjd-aqdd-l8jm-ybcx-y1xw-ag9t-ijri-recp-gi6g-gwd3-5z3n-yk7a-ca7h-jy62-be7d?variant=babac58a-f8a4-4b91-8818-4307dc568478","available_quantity":200,"options":[{"name":"color","value":"black"},{"name":"size","value":"XXS"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
Sku : TSLC3169-black-XXS
Weight : 0.26kg
${function(){
const variantData = data.variant || {"id":"babac58a-f8a4-4b91-8818-4307dc568478","product_id":"7011532b-c30b-4043-bf69-a6dc63f936df","title":"black-XXS","weight_unit":"kg","inventory_quantity":200,"sku":"TSLC3169-black-XXS","barcode":"","position":1,"option1":"black","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/39888b259a0d4a57300739cb55951d80.jpeg","path":"39888b259a0d4a57300739cb55951d80.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.98,"min_quantity":1}],"weight":"0.26","compare_at_price":"0","price":"21.98","retail_price":"0","available":true,"url":"\/products\/womens-gods-children-are-not-for-sale-print-short-sleeve-t-shirt-zbj9-l4lp-zgee-abra-ctjd-aqdd-l8jm-ybcx-y1xw-ag9t-ijri-recp-gi6g-gwd3-5z3n-yk7a-ca7h-jy62-be7d?variant=babac58a-f8a4-4b91-8818-4307dc568478","available_quantity":200,"options":[{"name":"color","value":"black"},{"name":"size","value":"XXS"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function(){
const rules = data.data.rules;
return `
`
}()}
${function(){
const isCart = data.data.isCart;
const isCollection = data.data.isCollection;
const isProduct = data.data.isProduct;
const isIndex = data.data.isIndex;
return `
${isCart ? 'The items in the shopping cart do not participate in any recommendation rule. Add the participating items to your shopping cart to check the design.' : ''}
${isProduct ? 'This product did not participated in any recommendation rule. Switch to another product to check the design.' : ''}
${isCollection ? 'The items in this collection do not participate in any recommendation rule. Switch the participating items to check the design.' : ''}
${isIndex ? 'The home page do not participate in any recommendation rule.' : ''}
(This prompt would not display on client-side)
Recommended Products
`
}()}
${function(){
const rule = data.data;
const getImageHeight = function(image){
const image_size = rule.config.image_size || 0;
const imageWidth = image.width || 600;
const imageHeight = image.height || 800;
let ratio = 0;
if(image_size == 0){
ratio = (imageHeight / imageWidth).toFixed(2);
}else if(image_size == 1){
ratio = 1.5;
}else if(image_size == 2){
ratio = 1;
}else if(image_size == 3){
ratio = 0.75;
}
return imageWidth * ratio;
};
const toQuery = obj =>
Object.keys(obj)
.map(k =>
Array.isArray(obj[k])
? obj[k].map(v => `${k}[]=${encodeURIComponent(v)}`).join('&')
: `${k}=${encodeURIComponent(obj[k])}`
)
.join('&');
return `