Advanced Leather Repair Gel
${function() {
const variantData = data.variant || {"id":"d21253cb-37fd-4997-b6e0-8976c7e4bb53","product_id":"f83fdd86-4c86-49c1-af6b-43d026b6a075","title":"White","weight_unit":"g","inventory_quantity":0,"sku":"ST-leatherrepairgel-1pc-white","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/31afc0565d3ccf2c27fed81f0cf4910a.jpeg","path":"31afc0565d3ccf2c27fed81f0cf4910a.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.97,"min_quantity":1}],"weight":"1000","compare_at_price":"0","price":"15.97","retail_price":"0","available":true,"url":"\/products\/leather-repair-gel?variant=d21253cb-37fd-4997-b6e0-8976c7e4bb53","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
White
${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
$15.97
${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":"d21253cb-37fd-4997-b6e0-8976c7e4bb53","product_id":"f83fdd86-4c86-49c1-af6b-43d026b6a075","title":"White","weight_unit":"g","inventory_quantity":0,"sku":"ST-leatherrepairgel-1pc-white","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/31afc0565d3ccf2c27fed81f0cf4910a.jpeg","path":"31afc0565d3ccf2c27fed81f0cf4910a.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.97,"min_quantity":1}],"weight":"1000","compare_at_price":"0","price":"15.97","retail_price":"0","available":true,"url":"\/products\/leather-repair-gel?variant=d21253cb-37fd-4997-b6e0-8976c7e4bb53","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"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":"d21253cb-37fd-4997-b6e0-8976c7e4bb53","product_id":"f83fdd86-4c86-49c1-af6b-43d026b6a075","title":"White","weight_unit":"g","inventory_quantity":0,"sku":"ST-leatherrepairgel-1pc-white","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/31afc0565d3ccf2c27fed81f0cf4910a.jpeg","path":"31afc0565d3ccf2c27fed81f0cf4910a.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.97,"min_quantity":1}],"weight":"1000","compare_at_price":"0","price":"15.97","retail_price":"0","available":true,"url":"\/products\/leather-repair-gel?variant=d21253cb-37fd-4997-b6e0-8976c7e4bb53","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}