Spark Tiffany Tattoo Cartridges Round Shader
${function() {
const variantData = data.variant || {"id":"c3a8ce05-f73f-43bd-9539-64ece9d4f171","product_id":"af9d2f8d-f3da-4672-99ae-124d4e4741fb","title":"10\/0.3mm-3RS","weight_unit":"kg","inventory_quantity":1,"sku":"-10\/0.3mm-3RS-A001809","barcode":"","position":1,"option1":"10\/0.3mm","option2":"3RS","option3":"","note":"","image":null,"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/spark-tiffany-tattoo-cartridges-round-shader?variant=c3a8ce05-f73f-43bd-9539-64ece9d4f171","available_quantity":1,"options":[{"name":"Gauge","value":"10\/0.3mm"},{"name":"Size","value":"3RS"}],"off_ratio":0,"flashsale_info":[],"sales":162};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Gauge:
10/0.3mm
${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:
3RS
${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
$15.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":"c3a8ce05-f73f-43bd-9539-64ece9d4f171","product_id":"af9d2f8d-f3da-4672-99ae-124d4e4741fb","title":"10\/0.3mm-3RS","weight_unit":"kg","inventory_quantity":1,"sku":"-10\/0.3mm-3RS-A001809","barcode":"","position":1,"option1":"10\/0.3mm","option2":"3RS","option3":"","note":"","image":null,"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/spark-tiffany-tattoo-cartridges-round-shader?variant=c3a8ce05-f73f-43bd-9539-64ece9d4f171","available_quantity":1,"options":[{"name":"Gauge","value":"10\/0.3mm"},{"name":"Size","value":"3RS"}],"off_ratio":0,"flashsale_info":[],"sales":162};
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":"c3a8ce05-f73f-43bd-9539-64ece9d4f171","product_id":"af9d2f8d-f3da-4672-99ae-124d4e4741fb","title":"10\/0.3mm-3RS","weight_unit":"kg","inventory_quantity":1,"sku":"-10\/0.3mm-3RS-A001809","barcode":"","position":1,"option1":"10\/0.3mm","option2":"3RS","option3":"","note":"","image":null,"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/spark-tiffany-tattoo-cartridges-round-shader?variant=c3a8ce05-f73f-43bd-9539-64ece9d4f171","available_quantity":1,"options":[{"name":"Gauge","value":"10\/0.3mm"},{"name":"Size","value":"3RS"}],"off_ratio":0,"flashsale_info":[],"sales":162};
return `
Barcode : ${variantData && variantData.barcode}
`
}()}