Bite-resistant Newspaper dog toys
${function() {
const variantData = data.variant || {"id":"5d8f880e-bd01-429f-9ef4-851903c3cb58","product_id":"1cea5a29-701b-43e3-86c9-7a69ceb82e1c","title":"1pc","weight_unit":"kg","inventory_quantity":1000,"sku":"BNDT-1pc","barcode":"","position":1,"option1":"1pc","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e48c85333d1c5cb448ab87346eea1d89.jpeg","path":"e48c85333d1c5cb448ab87346eea1d89.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.49,"min_quantity":1}],"weight":"0","compare_at_price":"25.99","price":"17.49","retail_price":"25.99","available":true,"url":"\/products\/bite-resistant-newspaper-dog-toys-funny-squeaky-sounder-sounding-paper-small-medium-chew-dog-toys-frenchbull-easy-clean-puppy?variant=5d8f880e-bd01-429f-9ef4-851903c3cb58","available_quantity":999999999,"options":[{"name":"Qty","value":"1pc"}],"off_ratio":33,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Qty:
1pc
${function(){
const optName = "Qty";
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
$17.49
${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":"5d8f880e-bd01-429f-9ef4-851903c3cb58","product_id":"1cea5a29-701b-43e3-86c9-7a69ceb82e1c","title":"1pc","weight_unit":"kg","inventory_quantity":1000,"sku":"BNDT-1pc","barcode":"","position":1,"option1":"1pc","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e48c85333d1c5cb448ab87346eea1d89.jpeg","path":"e48c85333d1c5cb448ab87346eea1d89.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.49,"min_quantity":1}],"weight":"0","compare_at_price":"25.99","price":"17.49","retail_price":"25.99","available":true,"url":"\/products\/bite-resistant-newspaper-dog-toys-funny-squeaky-sounder-sounding-paper-small-medium-chew-dog-toys-frenchbull-easy-clean-puppy?variant=5d8f880e-bd01-429f-9ef4-851903c3cb58","available_quantity":999999999,"options":[{"name":"Qty","value":"1pc"}],"off_ratio":33,"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.