Lantern Ghost Pumpkin A Line T Shirt
${function() {
const variantData = data.variant || {"id":"e4b31ef0-17ff-4c05-a4ba-042e51d5e098","product_id":"d6c372a6-2633-4c3c-9902-a1a65e75bdc4","title":"Pumpkin Color-S","weight_unit":"kg","inventory_quantity":999,"sku":"MR326-Pumpkin Color-S","barcode":"","position":1,"option1":"Pumpkin Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae05346d0dbe196f1e90b0c1adfc516e.jpeg","path":"ae05346d0dbe196f1e90b0c1adfc516e.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"50.99","price":"25.99","retail_price":"50.99","available":true,"url":"\/products\/lantern-ghost-pumpkin-a-line-t-shirt?variant=e4b31ef0-17ff-4c05-a4ba-042e51d5e098","available_quantity":999,"options":[{"name":"Color","value":"Pumpkin Color"},{"name":"Size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":14};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Pumpkin Color
${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
$25.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":"e4b31ef0-17ff-4c05-a4ba-042e51d5e098","product_id":"d6c372a6-2633-4c3c-9902-a1a65e75bdc4","title":"Pumpkin Color-S","weight_unit":"kg","inventory_quantity":999,"sku":"MR326-Pumpkin Color-S","barcode":"","position":1,"option1":"Pumpkin Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae05346d0dbe196f1e90b0c1adfc516e.jpeg","path":"ae05346d0dbe196f1e90b0c1adfc516e.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"50.99","price":"25.99","retail_price":"50.99","available":true,"url":"\/products\/lantern-ghost-pumpkin-a-line-t-shirt?variant=e4b31ef0-17ff-4c05-a4ba-042e51d5e098","available_quantity":999,"options":[{"name":"Color","value":"Pumpkin Color"},{"name":"Size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":14};
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.
${function(){
const variantData = data.variant || {"id":"e4b31ef0-17ff-4c05-a4ba-042e51d5e098","product_id":"d6c372a6-2633-4c3c-9902-a1a65e75bdc4","title":"Pumpkin Color-S","weight_unit":"kg","inventory_quantity":999,"sku":"MR326-Pumpkin Color-S","barcode":"","position":1,"option1":"Pumpkin Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae05346d0dbe196f1e90b0c1adfc516e.jpeg","path":"ae05346d0dbe196f1e90b0c1adfc516e.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"50.99","price":"25.99","retail_price":"50.99","available":true,"url":"\/products\/lantern-ghost-pumpkin-a-line-t-shirt?variant=e4b31ef0-17ff-4c05-a4ba-042e51d5e098","available_quantity":999,"options":[{"name":"Color","value":"Pumpkin Color"},{"name":"Size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":14};
return `
`
}()}