$product = {"id":1457035313251,"title":"iPhone XS 防摔客製化手機殼-犀牛盾Mod NX - JJ08","handle":"iphone-xs-mod-nx-backplate-jj08","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-12-23T11:05:26+08:00","created_at":"2018-11-19T19:58:52+08:00","vendor":"RhinoshieldTaiwan","type":"Mod 設計師","tags":["2023-tagsAdd-reseller-PL","addition","batch","brand-Apple","customized-backprint","device-iphone-xs","discountable","featured-nx","reseller-modnx_backplate","type-mod-nx-backplate","viewable"],"price":24000,"price_min":24000,"price_max":36000,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":12736111738979,"title":"Clear \/ yes","option1":"Clear","option2":"yes","option3":null,"sku":"NPB0108426L-JJ08","requires_shipping":true,"taxable":true,"featured_image":{"id":4131174842467,"product_id":1457035313251,"position":1,"created_at":"2018-11-19T20:04:49+08:00","updated_at":"2019-10-17T09:10:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639","variant_ids":[12736111738979,12736111771747]},"available":true,"name":"iPhone XS 防摔客製化手機殼-犀牛盾Mod NX - JJ08 - Clear \/ yes","public_title":"Clear \/ yes","options":["Clear","yes"],"price":24000,"weight":100,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1004888064099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639"}},"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":12736111771747,"title":"Clear \/ no","option1":"Clear","option2":"no","option3":null,"sku":"NX0108426L-JJ08","requires_shipping":true,"taxable":true,"featured_image":{"id":4131174842467,"product_id":1457035313251,"position":1,"created_at":"2018-11-19T20:04:49+08:00","updated_at":"2019-10-17T09:10:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639","variant_ids":[12736111738979,12736111771747]},"available":true,"name":"iPhone XS 防摔客製化手機殼-犀牛盾Mod NX - JJ08 - Clear \/ no","public_title":"Clear \/ no","options":["Clear","no"],"price":36000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1004888064099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639"}},"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639","options":["color","bundleNumber"],"media":[{"alt":null,"id":1004888064099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/JJ08_8cf0b9eb-67b5-4135-a977-fcabd5ed9dd4.png?v=1571274639","width":2000}],"content":"\u003cp\u003e\u003c\/p\u003e"}; $bumper = null; if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }