Spark Truecolor Precise Tattoo Cartridge Needles Round Liner
${function() {
const variantData = data.variant || {"id":"eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","product_id":"d2f1161c-84f5-4faf-b230-3f70d0f1c47d","title":"14\/0.4mm-1RL","weight_unit":"kg","inventory_quantity":77,"sku":"-14\/0.4mm-1RL-A001537","barcode":"","position":17,"option1":"14\/0.4mm","option2":"1RL","option3":"","note":"","image":null,"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0.2","compare_at_price":"15","price":"12","retail_price":"15","available":true,"url":"\/products\/spark-truecolor-precise-tattoo-cartridge-needles-round-liner?variant=eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","available_quantity":77,"options":[{"name":"GAUGE","value":"14\/0.4mm"},{"name":"SIZE","value":"1RL"}],"off_ratio":20,"flashsale_info":[],"sales":1399};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Gauge:
14/0.4mm
${function(){
const optName = "GAUGE";
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:
1RL
${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
$12.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":"eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","product_id":"d2f1161c-84f5-4faf-b230-3f70d0f1c47d","title":"14\/0.4mm-1RL","weight_unit":"kg","inventory_quantity":77,"sku":"-14\/0.4mm-1RL-A001537","barcode":"","position":17,"option1":"14\/0.4mm","option2":"1RL","option3":"","note":"","image":null,"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0.2","compare_at_price":"15","price":"12","retail_price":"15","available":true,"url":"\/products\/spark-truecolor-precise-tattoo-cartridge-needles-round-liner?variant=eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","available_quantity":77,"options":[{"name":"GAUGE","value":"14\/0.4mm"},{"name":"SIZE","value":"1RL"}],"off_ratio":20,"flashsale_info":[],"sales":1399};
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":"eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","product_id":"d2f1161c-84f5-4faf-b230-3f70d0f1c47d","title":"14\/0.4mm-1RL","weight_unit":"kg","inventory_quantity":77,"sku":"-14\/0.4mm-1RL-A001537","barcode":"","position":17,"option1":"14\/0.4mm","option2":"1RL","option3":"","note":"","image":null,"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0.2","compare_at_price":"15","price":"12","retail_price":"15","available":true,"url":"\/products\/spark-truecolor-precise-tattoo-cartridge-needles-round-liner?variant=eb2d71ac-fc58-4c04-87ba-df7bb18eafc0","available_quantity":77,"options":[{"name":"GAUGE","value":"14\/0.4mm"},{"name":"SIZE","value":"1RL"}],"off_ratio":20,"flashsale_info":[],"sales":1399};
return `
Barcode : ${variantData && variantData.barcode}
`
}()}