$product = {"id":7769851560035,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-14-plus-mod-nx-magsafe-printable-xf52","description":null,"published_at":"2025-04-16T14:02:26+08:00","created_at":"2025-04-15T21:14:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 14 Plus","merge","reseller-ilovedoodle"],"price":110000,"price_min":110000,"price_max":110000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43304234451043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197762179171,"product_id":7769851560035,"position":12,"created_at":"2025-07-16T15:22:13+08:00","updated_at":"2025-07-16T15:22:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535","variant_ids":[43304234451043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XF52","featured_media":{"alt":null,"id":25830089130083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6395262b5bbdde5b9583cc103d76375a677112ae_5297d0e4-d843-471e-8c27-a2c823502482.webp?v=1744722862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c594f527ca163339e2dce655a517f6d0fb19539_8e2d4863-9d28-419a-a338-016dd08e0555.webp?v=1752650528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43338bbf398edc8bb5fd7f739be5112b8a7a652d_6ba1c28b-aef1-419c-9cd5-7fe4aa01edba.webp?v=1752650529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7771e1fb9f059319c94db3c4031205c66b25db77_5d70dc6c-0d96-456b-ac5e-7aab9d1ec808.webp?v=1752650529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f6338621f27b5a71d7821ab861d8755739fb6d_dc609c82-aabc-42a5-875e-78ffcf99e7cf.webp?v=1752650530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb3a56692d409f92a5a07323d890b6fd6f89b_ffd5bd13-3205-4896-b596-aadffc59fc41.webp?v=1752650530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9957d8ba3b1b7078e33352080d433b98a364e9_666f38f6-201d-48be-9c9f-5e87c9abf1af.webp?v=1752650531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a125fa6e6fd4f8bd25fcd8aa45ac1458fa192ec_ef1b47ed-6dd6-4527-a0a9-a7775a25a625.webp?v=1752650532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8929e6c9e9e979687b54340410730ee068b3168_f83f72ae-53ed-4728-8d6b-88b926f572f8.webp?v=1752650533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11447d6598bc08ae73a675e77c2ead2b3e1db9ca_328d9cf6-4057-4a11-8a77-13836436db65.webp?v=1752650533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef11118ef8ecb4b3deae185a9c72f0142a99274b_88d849e8-6bb7-41cd-ac9f-7416d6f3a495.webp?v=1752650534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b6f0e1c1a4906c6ca5165e3029cc17c7aef37b_d1b5688c-572d-42d9-b0b7-8072501fac66.webp?v=1752650536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58b9784cdc3830d4264851ea07f7bd5b8cdfc60e_7ae1f343-d282-4178-b1ee-9540bc510b69.webp?v=1752650536"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6395262b5bbdde5b9583cc103d76375a677112ae_5297d0e4-d843-471e-8c27-a2c823502482.webp?v=1744722862","options":["color"],"media":[{"alt":null,"id":25496363139171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6395262b5bbdde5b9583cc103d76375a677112ae_5297d0e4-d843-471e-8c27-a2c823502482.webp?v=1744722862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6395262b5bbdde5b9583cc103d76375a677112ae_5297d0e4-d843-471e-8c27-a2c823502482.webp?v=1744722862","width":2000},{"alt":null,"id":25830085754979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c594f527ca163339e2dce655a517f6d0fb19539_8e2d4863-9d28-419a-a338-016dd08e0555.webp?v=1752650528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c594f527ca163339e2dce655a517f6d0fb19539_8e2d4863-9d28-419a-a338-016dd08e0555.webp?v=1752650528","width":2000},{"alt":null,"id":25830086017123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43338bbf398edc8bb5fd7f739be5112b8a7a652d_6ba1c28b-aef1-419c-9cd5-7fe4aa01edba.webp?v=1752650529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43338bbf398edc8bb5fd7f739be5112b8a7a652d_6ba1c28b-aef1-419c-9cd5-7fe4aa01edba.webp?v=1752650529","width":2000},{"alt":null,"id":25830086279267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7771e1fb9f059319c94db3c4031205c66b25db77_5d70dc6c-0d96-456b-ac5e-7aab9d1ec808.webp?v=1752650529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7771e1fb9f059319c94db3c4031205c66b25db77_5d70dc6c-0d96-456b-ac5e-7aab9d1ec808.webp?v=1752650529","width":2000},{"alt":null,"id":25830086606947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f6338621f27b5a71d7821ab861d8755739fb6d_dc609c82-aabc-42a5-875e-78ffcf99e7cf.webp?v=1752650530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f6338621f27b5a71d7821ab861d8755739fb6d_dc609c82-aabc-42a5-875e-78ffcf99e7cf.webp?v=1752650530","width":2000},{"alt":null,"id":25830086869091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb3a56692d409f92a5a07323d890b6fd6f89b_ffd5bd13-3205-4896-b596-aadffc59fc41.webp?v=1752650530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb3a56692d409f92a5a07323d890b6fd6f89b_ffd5bd13-3205-4896-b596-aadffc59fc41.webp?v=1752650530","width":2000},{"alt":null,"id":25830087229539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9957d8ba3b1b7078e33352080d433b98a364e9_666f38f6-201d-48be-9c9f-5e87c9abf1af.webp?v=1752650531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9957d8ba3b1b7078e33352080d433b98a364e9_666f38f6-201d-48be-9c9f-5e87c9abf1af.webp?v=1752650531","width":2000},{"alt":null,"id":25830087688291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a125fa6e6fd4f8bd25fcd8aa45ac1458fa192ec_ef1b47ed-6dd6-4527-a0a9-a7775a25a625.webp?v=1752650532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a125fa6e6fd4f8bd25fcd8aa45ac1458fa192ec_ef1b47ed-6dd6-4527-a0a9-a7775a25a625.webp?v=1752650532","width":2000},{"alt":null,"id":25830088048739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8929e6c9e9e979687b54340410730ee068b3168_f83f72ae-53ed-4728-8d6b-88b926f572f8.webp?v=1752650533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8929e6c9e9e979687b54340410730ee068b3168_f83f72ae-53ed-4728-8d6b-88b926f572f8.webp?v=1752650533","width":2000},{"alt":null,"id":25830088409187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11447d6598bc08ae73a675e77c2ead2b3e1db9ca_328d9cf6-4057-4a11-8a77-13836436db65.webp?v=1752650533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11447d6598bc08ae73a675e77c2ead2b3e1db9ca_328d9cf6-4057-4a11-8a77-13836436db65.webp?v=1752650533","width":2000},{"alt":null,"id":25830088704099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef11118ef8ecb4b3deae185a9c72f0142a99274b_88d849e8-6bb7-41cd-ac9f-7416d6f3a495.webp?v=1752650534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef11118ef8ecb4b3deae185a9c72f0142a99274b_88d849e8-6bb7-41cd-ac9f-7416d6f3a495.webp?v=1752650534","width":2000},{"alt":null,"id":25830089130083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535","width":2000},{"alt":null,"id":25830089523299,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b6f0e1c1a4906c6ca5165e3029cc17c7aef37b_d1b5688c-572d-42d9-b0b7-8072501fac66.webp?v=1752650536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b6f0e1c1a4906c6ca5165e3029cc17c7aef37b_d1b5688c-572d-42d9-b0b7-8072501fac66.webp?v=1752650536","width":2000},{"alt":null,"id":25830089818211,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58b9784cdc3830d4264851ea07f7bd5b8cdfc60e_7ae1f343-d282-4178-b1ee-9540bc510b69.webp?v=1752650536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58b9784cdc3830d4264851ea07f7bd5b8cdfc60e_7ae1f343-d282-4178-b1ee-9540bc510b69.webp?v=1752650536","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43304234451043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197762179171,"product_id":7769851560035,"position":12,"created_at":"2025-07-16T15:22:13+08:00","updated_at":"2025-07-16T15:22:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535","variant_ids":[43304234451043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XF52","featured_media":{"alt":null,"id":25830089130083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304234451043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197762179171,"product_id":7769851560035,"position":12,"created_at":"2025-07-16T15:22:13+08:00","updated_at":"2025-07-16T15:22:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535","variant_ids":[43304234451043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XF52","featured_media":{"alt":null,"id":25830089130083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf0f4dbf5b39f707f0ea0218165a0164324f029e_8a8b95d2-2dfb-4261-9610-e663798cda79.webp?v=1752650535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus 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); }); } }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// 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: "停產" }