Unique Pet Planter
${function() {
const variantData = data.variant || {"id":"1f96a504-7701-41f0-b063-a1dc625ebc41","product_id":"6bb752f3-c9fd-4d24-8ee3-1710cad41704","title":"Golden Retriever-M (9.44\u201c\u00d77.08\u201d)","weight_unit":"lb","inventory_quantity":1000,"sku":"NV1611283-24","barcode":"","position":1,"option1":"Golden Retriever","option2":"M (9.44\u201c\u00d77.08\u201d)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4463944f12cf63e2bed439705dcda40c.jpeg","path":"4463944f12cf63e2bed439705dcda40c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/unique-pet-planter-2517dd58f-ec59-4a0a-ba54-7d5aead79c979c4e4576-9fb6-483a-bef9-d81f48c92084?variant=1f96a504-7701-41f0-b063-a1dc625ebc41","available_quantity":999999999,"options":[{"name":"Pet Breeds","value":"Golden Retriever"},{"name":"Size","value":"M (9.44\u201c\u00d77.08\u201d)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Pet Breeds:
Golden Retriever
${function(){
const optName = "Pet Breeds";
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:
M (9.44“×7.08”)
${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
$39.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":"1f96a504-7701-41f0-b063-a1dc625ebc41","product_id":"6bb752f3-c9fd-4d24-8ee3-1710cad41704","title":"Golden Retriever-M (9.44\u201c\u00d77.08\u201d)","weight_unit":"lb","inventory_quantity":1000,"sku":"NV1611283-24","barcode":"","position":1,"option1":"Golden Retriever","option2":"M (9.44\u201c\u00d77.08\u201d)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4463944f12cf63e2bed439705dcda40c.jpeg","path":"4463944f12cf63e2bed439705dcda40c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/unique-pet-planter-2517dd58f-ec59-4a0a-ba54-7d5aead79c979c4e4576-9fb6-483a-bef9-d81f48c92084?variant=1f96a504-7701-41f0-b063-a1dc625ebc41","available_quantity":999999999,"options":[{"name":"Pet Breeds","value":"Golden Retriever"},{"name":"Size","value":"M (9.44\u201c\u00d77.08\u201d)"}],"off_ratio":50,"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.
${function(){
const variantData = data.variant || {"id":"1f96a504-7701-41f0-b063-a1dc625ebc41","product_id":"6bb752f3-c9fd-4d24-8ee3-1710cad41704","title":"Golden Retriever-M (9.44\u201c\u00d77.08\u201d)","weight_unit":"lb","inventory_quantity":1000,"sku":"NV1611283-24","barcode":"","position":1,"option1":"Golden Retriever","option2":"M (9.44\u201c\u00d77.08\u201d)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4463944f12cf63e2bed439705dcda40c.jpeg","path":"4463944f12cf63e2bed439705dcda40c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/unique-pet-planter-2517dd58f-ec59-4a0a-ba54-7d5aead79c979c4e4576-9fb6-483a-bef9-d81f48c92084?variant=1f96a504-7701-41f0-b063-a1dc625ebc41","available_quantity":999999999,"options":[{"name":"Pet Breeds","value":"Golden Retriever"},{"name":"Size","value":"M (9.44\u201c\u00d77.08\u201d)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}