Dragonhawk AMOR Adjustable Stroke Coreless Motor Wireless Tattoo Pen Cartridge Tattoo Needle and Ink Tattoo Machine Kit Complete
${function() {
const variantData = data.variant || {"id":"12ebac08-ad90-4185-84fa-ae792830f164","product_id":"5285ad05-ab69-47bd-ae3e-1e16ce29cbd3","title":"Green","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fafedef9abe51246f03194d9b4b4494d.jpeg","path":"fafedef9abe51246f03194d9b4b4494d.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":82.17,"min_quantity":1}],"weight":"0","compare_at_price":"182.59","price":"82.17","retail_price":"182.59","available":true,"url":"\/products\/dragonhawk-amor-adjustable-stroke-coreless-motor-wireless-tattoo-pen-cartridge-tattoo-needle-and-ink-tattoo-machine-kit-complete?variant=12ebac08-ad90-4185-84fa-ae792830f164","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":55,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Green
${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}
`
}()}
Add to cart
$82.17
${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":"12ebac08-ad90-4185-84fa-ae792830f164","product_id":"5285ad05-ab69-47bd-ae3e-1e16ce29cbd3","title":"Green","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fafedef9abe51246f03194d9b4b4494d.jpeg","path":"fafedef9abe51246f03194d9b4b4494d.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":82.17,"min_quantity":1}],"weight":"0","compare_at_price":"182.59","price":"82.17","retail_price":"182.59","available":true,"url":"\/products\/dragonhawk-amor-adjustable-stroke-coreless-motor-wireless-tattoo-pen-cartridge-tattoo-needle-and-ink-tattoo-machine-kit-complete?variant=12ebac08-ad90-4185-84fa-ae792830f164","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":55,"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":"12ebac08-ad90-4185-84fa-ae792830f164","product_id":"5285ad05-ab69-47bd-ae3e-1e16ce29cbd3","title":"Green","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fafedef9abe51246f03194d9b4b4494d.jpeg","path":"fafedef9abe51246f03194d9b4b4494d.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":82.17,"min_quantity":1}],"weight":"0","compare_at_price":"182.59","price":"82.17","retail_price":"182.59","available":true,"url":"\/products\/dragonhawk-amor-adjustable-stroke-coreless-motor-wireless-tattoo-pen-cartridge-tattoo-needle-and-ink-tattoo-machine-kit-complete?variant=12ebac08-ad90-4185-84fa-ae792830f164","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":55,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('15');
const maxDays = parseInt('30');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
${tipText}
`;
}()}