Personalized street style racing print short-sleeved T-shirt
${function() {
const variantData = data.variant || {"id":"dadffc56-8257-4bd4-a61a-0ae181c9f73a","product_id":"6c018e9f-3861-4773-a312-4fa0eecd294d","title":"Dark_Gray-S","weight_unit":"g","inventory_quantity":999,"sku":"XHOxChgjk-Dark_Gray-S","barcode":"","position":1,"option1":"Dark_Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eaca531e9b1117858f452e7e02be2704.jpeg","path":"eaca531e9b1117858f452e7e02be2704.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"31","price":"18.89","retail_price":"31","available":true,"url":"\/products\/personalized-street-style-racing-print-short-sleeved-t-shirt?variant=dadffc56-8257-4bd4-a61a-0ae181c9f73a","available_quantity":999999999,"options":[{"name":"Color","value":"Dark_Gray"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":15};
const saveType = "amount";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Dark_Gray
${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
$18.89
${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":"dadffc56-8257-4bd4-a61a-0ae181c9f73a","product_id":"6c018e9f-3861-4773-a312-4fa0eecd294d","title":"Dark_Gray-S","weight_unit":"g","inventory_quantity":999,"sku":"XHOxChgjk-Dark_Gray-S","barcode":"","position":1,"option1":"Dark_Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eaca531e9b1117858f452e7e02be2704.jpeg","path":"eaca531e9b1117858f452e7e02be2704.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"31","price":"18.89","retail_price":"31","available":true,"url":"\/products\/personalized-street-style-racing-print-short-sleeved-t-shirt?variant=dadffc56-8257-4bd4-a61a-0ae181c9f73a","available_quantity":999999999,"options":[{"name":"Color","value":"Dark_Gray"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":15};
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.
Sku : XHOxChgjk-Dark_Gray-S
Weight : 200g
${function(){
const variantData = data.variant || {"id":"dadffc56-8257-4bd4-a61a-0ae181c9f73a","product_id":"6c018e9f-3861-4773-a312-4fa0eecd294d","title":"Dark_Gray-S","weight_unit":"g","inventory_quantity":999,"sku":"XHOxChgjk-Dark_Gray-S","barcode":"","position":1,"option1":"Dark_Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eaca531e9b1117858f452e7e02be2704.jpeg","path":"eaca531e9b1117858f452e7e02be2704.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"31","price":"18.89","retail_price":"31","available":true,"url":"\/products\/personalized-street-style-racing-print-short-sleeved-t-shirt?variant=dadffc56-8257-4bd4-a61a-0ae181c9f73a","available_quantity":999999999,"options":[{"name":"Color","value":"Dark_Gray"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":15};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
`
}()}