It Is What It Is Printed Men's T-shirt
${function() {
const variantData = data.variant || {"id":"565a8729-9c18-4707-bba8-8f52d55ab67f","product_id":"307fb919-7670-418c-bce3-34ac176428ea","title":"Black-5XL","weight_unit":"g","inventory_quantity":0,"sku":"102283830001","barcode":"102283830001","position":1,"option1":"Black","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5e6bd1951d130255fc382ee48f4e4258.jpeg","path":"5e6bd1951d130255fc382ee48f4e4258.jpeg","width":800,"height":800,"alt":"It Is What It Is Printed Men's T-shirt","aspect_ratio":1},"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"250","compare_at_price":"30.98","price":"14.98","retail_price":"30.98","available":true,"url":"\/products\/it-is-what-it-is-printed-mens-t-shirt?variant=565a8729-9c18-4707-bba8-8f52d55ab67f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"5XL"}],"off_ratio":52,"flashsale_info":[],"sales":0};
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
$14.98
${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":"565a8729-9c18-4707-bba8-8f52d55ab67f","product_id":"307fb919-7670-418c-bce3-34ac176428ea","title":"Black-5XL","weight_unit":"g","inventory_quantity":0,"sku":"102283830001","barcode":"102283830001","position":1,"option1":"Black","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5e6bd1951d130255fc382ee48f4e4258.jpeg","path":"5e6bd1951d130255fc382ee48f4e4258.jpeg","width":800,"height":800,"alt":"It Is What It Is Printed Men's T-shirt","aspect_ratio":1},"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"250","compare_at_price":"30.98","price":"14.98","retail_price":"30.98","available":true,"url":"\/products\/it-is-what-it-is-printed-mens-t-shirt?variant=565a8729-9c18-4707-bba8-8f52d55ab67f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"5XL"}],"off_ratio":52,"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 ? `
` : ' ';
}
}()}
Product was out of stock.
Product is unavailable.