I'm a Multitasker I Can Listen Ignore and Forget All at the Same Time! Print Men's T-shirt
${function() {
const variantData = data.variant || {"id":"36451176-cec1-4b79-bd89-4e5928136b12","product_id":"171f3ec3-bfc8-4110-9f8f-f928e28acdc4","title":"Black-5XL","weight_unit":"kg","inventory_quantity":1000,"sku":"101888480001","barcode":"","position":1,"option1":"Black","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0cbf6114a0633e4c4eb36936148c660.jpeg","path":"a0cbf6114a0633e4c4eb36936148c660.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"22.98","price":"18.99","retail_price":"22.98","available":true,"url":"\/products\/im-a-multitasker-i-can-listen-ignore-and-forget-all-at-the-same-time-print-mens-t-shirt?variant=36451176-cec1-4b79-bd89-4e5928136b12","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"5XL"}],"off_ratio":17,"flashsale_info":[],"sales":1};
const saveType = "amount";
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:
5XL
${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
$18.99
${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":"36451176-cec1-4b79-bd89-4e5928136b12","product_id":"171f3ec3-bfc8-4110-9f8f-f928e28acdc4","title":"Black-5XL","weight_unit":"kg","inventory_quantity":1000,"sku":"101888480001","barcode":"","position":1,"option1":"Black","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0cbf6114a0633e4c4eb36936148c660.jpeg","path":"a0cbf6114a0633e4c4eb36936148c660.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"22.98","price":"18.99","retail_price":"22.98","available":true,"url":"\/products\/im-a-multitasker-i-can-listen-ignore-and-forget-all-at-the-same-time-print-mens-t-shirt?variant=36451176-cec1-4b79-bd89-4e5928136b12","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"5XL"}],"off_ratio":17,"flashsale_info":[],"sales":1};
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.