ADULT BALL CAP | TOADSTOOL
${function() {
const variantData = data.variant || {"id":"b2c26a02-ea93-481d-884f-fe298ecb0dd3","product_id":"1021583e-ad01-4192-b957-108458cc54b7","title":"O\/S","weight_unit":"lb","inventory_quantity":0,"sku":"4014031C0000","barcode":"","position":1,"option1":"O\/S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ef52262e6e782a156a33dd054a3bb5c.jpeg","path":"0ef52262e6e782a156a33dd054a3bb5c.jpeg","width":2000,"height":3000,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/adult-ball-cap-toadstool?variant=b2c26a02-ea93-481d-884f-fe298ecb0dd3","available_quantity":999999999,"options":[{"name":"Size","value":"O\/S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
O/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
$22.00
${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":"b2c26a02-ea93-481d-884f-fe298ecb0dd3","product_id":"1021583e-ad01-4192-b957-108458cc54b7","title":"O\/S","weight_unit":"lb","inventory_quantity":0,"sku":"4014031C0000","barcode":"","position":1,"option1":"O\/S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ef52262e6e782a156a33dd054a3bb5c.jpeg","path":"0ef52262e6e782a156a33dd054a3bb5c.jpeg","width":2000,"height":3000,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/adult-ball-cap-toadstool?variant=b2c26a02-ea93-481d-884f-fe298ecb0dd3","available_quantity":999999999,"options":[{"name":"Size","value":"O\/S"}],"off_ratio":0,"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":"b2c26a02-ea93-481d-884f-fe298ecb0dd3","product_id":"1021583e-ad01-4192-b957-108458cc54b7","title":"O\/S","weight_unit":"lb","inventory_quantity":0,"sku":"4014031C0000","barcode":"","position":1,"option1":"O\/S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ef52262e6e782a156a33dd054a3bb5c.jpeg","path":"0ef52262e6e782a156a33dd054a3bb5c.jpeg","width":2000,"height":3000,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/adult-ball-cap-toadstool?variant=b2c26a02-ea93-481d-884f-fe298ecb0dd3","available_quantity":999999999,"options":[{"name":"Size","value":"O\/S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}