Custom Keychain with Picture, Personalized Keychain with Engraving Photo/Text for Dad, Mom
${function() {
const variantData = data.variant || {"id":"b7fe0a4f-467e-483b-8c25-d013382e803d","product_id":"6f118027-16a9-4838-b947-5e5d117fb5e8","title":"Black Oval","weight_unit":"kg","inventory_quantity":1000,"sku":"B0DCY883G4","barcode":"","position":1,"option1":"Black Oval","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/500414039fd47da842a99564f36db13d.jpeg","path":"500414039fd47da842a99564f36db13d.jpeg","width":1140,"height":1456,"alt":"","aspect_ratio":0.782967032967033},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"6.99","price":"6.99","retail_price":"6.99","available":true,"url":"\/products\/custom-keychain-with-picture-personalized-keychain-with-engraving-photo-text-for-dad-mom-b0d79635v3?variant=b7fe0a4f-467e-483b-8c25-d013382e803d","available_quantity":1000,"options":[{"name":"Color","value":"Black Oval"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black Oval
${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
$6.99
${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":"b7fe0a4f-467e-483b-8c25-d013382e803d","product_id":"6f118027-16a9-4838-b947-5e5d117fb5e8","title":"Black Oval","weight_unit":"kg","inventory_quantity":1000,"sku":"B0DCY883G4","barcode":"","position":1,"option1":"Black Oval","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/500414039fd47da842a99564f36db13d.jpeg","path":"500414039fd47da842a99564f36db13d.jpeg","width":1140,"height":1456,"alt":"","aspect_ratio":0.782967032967033},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"6.99","price":"6.99","retail_price":"6.99","available":true,"url":"\/products\/custom-keychain-with-picture-personalized-keychain-with-engraving-photo-text-for-dad-mom-b0d79635v3?variant=b7fe0a4f-467e-483b-8c25-d013382e803d","available_quantity":1000,"options":[{"name":"Color","value":"Black Oval"}],"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":"b7fe0a4f-467e-483b-8c25-d013382e803d","product_id":"6f118027-16a9-4838-b947-5e5d117fb5e8","title":"Black Oval","weight_unit":"kg","inventory_quantity":1000,"sku":"B0DCY883G4","barcode":"","position":1,"option1":"Black Oval","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/500414039fd47da842a99564f36db13d.jpeg","path":"500414039fd47da842a99564f36db13d.jpeg","width":1140,"height":1456,"alt":"","aspect_ratio":0.782967032967033},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"6.99","price":"6.99","retail_price":"6.99","available":true,"url":"\/products\/custom-keychain-with-picture-personalized-keychain-with-engraving-photo-text-for-dad-mom-b0d79635v3?variant=b7fe0a4f-467e-483b-8c25-d013382e803d","available_quantity":1000,"options":[{"name":"Color","value":"Black Oval"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}