Rockin Around the Christmas Tree Sweatshirt
${function() {
const variantData = data.variant || {"id":"7829a882-33ce-4852-b232-a6c905d6d331","product_id":"75199d77-9acf-4e64-b81d-c2144f7f0cd0","title":"Khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"2211211966-Khaki-S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/674cd50a2e6342b7edd24992f6919e13.png","path":"674cd50a2e6342b7edd24992f6919e13.png","width":1523,"height":1523,"alt":"Rockin Around the Christmas Tree Sweatshirt","aspect_ratio":1},"wholesale_price":[{"price":30.92,"min_quantity":1}],"weight":"0.4","compare_at_price":"34.08","price":"30.92","retail_price":"34.08","available":true,"url":"\/products\/rockin-around-the-christmas-tree-sweatshirt?variant=7829a882-33ce-4852-b232-a6c905d6d331","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":9,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Khaki
${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
$30.92
${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":"7829a882-33ce-4852-b232-a6c905d6d331","product_id":"75199d77-9acf-4e64-b81d-c2144f7f0cd0","title":"Khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"2211211966-Khaki-S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/674cd50a2e6342b7edd24992f6919e13.png","path":"674cd50a2e6342b7edd24992f6919e13.png","width":1523,"height":1523,"alt":"Rockin Around the Christmas Tree Sweatshirt","aspect_ratio":1},"wholesale_price":[{"price":30.92,"min_quantity":1}],"weight":"0.4","compare_at_price":"34.08","price":"30.92","retail_price":"34.08","available":true,"url":"\/products\/rockin-around-the-christmas-tree-sweatshirt?variant=7829a882-33ce-4852-b232-a6c905d6d331","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":9,"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.