Personalized Camera Film Roll Keychain with Photo,Custom Personal Roll Keyring,Customized Pictures Gifts for Men Women
${function() {
const variantData = data.variant || {"id":"9b356345-6808-4dac-8d0d-abc4ef50fc71","product_id":"84e2c2e3-ee50-4bde-a97c-efbf3a889244","title":"10 Photos","weight_unit":"kg","inventory_quantity":1000,"sku":"B08RRWRJCP","barcode":"","position":1,"option1":"10 Photos","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","path":"db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","width":1500,"height":1286,"alt":"","aspect_ratio":1.166407465007776},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"8.99","price":"8.99","retail_price":"8.99","available":true,"url":"\/products\/personalized-camera-film-roll-keychain-with-photo-custom-personal-roll-keyring-customized-pictures-gifts-for-men-women-b08rrwrjcp?variant=9b356345-6808-4dac-8d0d-abc4ef50fc71","available_quantity":1000,"options":[{"name":"Color","value":"10 Photos"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
10 Photos
${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
$8.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":"9b356345-6808-4dac-8d0d-abc4ef50fc71","product_id":"84e2c2e3-ee50-4bde-a97c-efbf3a889244","title":"10 Photos","weight_unit":"kg","inventory_quantity":1000,"sku":"B08RRWRJCP","barcode":"","position":1,"option1":"10 Photos","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","path":"db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","width":1500,"height":1286,"alt":"","aspect_ratio":1.166407465007776},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"8.99","price":"8.99","retail_price":"8.99","available":true,"url":"\/products\/personalized-camera-film-roll-keychain-with-photo-custom-personal-roll-keyring-customized-pictures-gifts-for-men-women-b08rrwrjcp?variant=9b356345-6808-4dac-8d0d-abc4ef50fc71","available_quantity":1000,"options":[{"name":"Color","value":"10 Photos"}],"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":"9b356345-6808-4dac-8d0d-abc4ef50fc71","product_id":"84e2c2e3-ee50-4bde-a97c-efbf3a889244","title":"10 Photos","weight_unit":"kg","inventory_quantity":1000,"sku":"B08RRWRJCP","barcode":"","position":1,"option1":"10 Photos","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","path":"db8067eb7ad65ff7742bc57b8bcca9e0.jpeg","width":1500,"height":1286,"alt":"","aspect_ratio":1.166407465007776},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"8.99","price":"8.99","retail_price":"8.99","available":true,"url":"\/products\/personalized-camera-film-roll-keychain-with-photo-custom-personal-roll-keyring-customized-pictures-gifts-for-men-women-b08rrwrjcp?variant=9b356345-6808-4dac-8d0d-abc4ef50fc71","available_quantity":1000,"options":[{"name":"Color","value":"10 Photos"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}