$product = {"id":7892717404259,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Posters Rogbys","handle":"iphone-14-plus-mod-nx-magsafe-printable-aar10","description":null,"published_at":"2025-10-03T09:34:54+08:00","created_at":"2025-10-02T10:19:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"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":43756888522851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR10","requires_shipping":true,"taxable":true,"featured_image":{"id":34543941255267,"product_id":7892717404259,"position":9,"created_at":"2025-10-02T10:19:18+08:00","updated_at":"2025-10-02T10:19:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560","variant_ids":[43756888522851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Posters Rogbys - 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-AAR10","featured_media":{"alt":null,"id":26113696137315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f5e5363444a6c3086bf1b39622e622d8f66b6a.webp?v=1759371554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16eb049ca7e84bfe1e4627c630f08cc0b79afd3e.webp?v=1759371555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d23f04b24e0ce82d81ec50c16d1b99827c195cb.webp?v=1759371556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce3f3083c05bbe329fe95216292c2ebd2fddc26.webp?v=1759371556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14537559ab39525e6e375565efdce53fcdedb749.webp?v=1759371557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/241b4c665b8085c46e1097eca5d1dd2fc5876bac.webp?v=1759371558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a69fa43e2227039042959a57633b2fa546ed3.webp?v=1759371558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b65c76fffd77509159ccb522af25b9f38a63816.webp?v=1759371559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6689d944685376d08004b41a914c0348acc4bfaa.webp?v=1759371561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4596732bf619b12e128aa619d61c282ed2f44a.webp?v=1759371561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68cde4f6e429692ff343aaa81e3585da40e2745.webp?v=1759371562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab87823d68bbdbe72b364c642e498cb39f51e1.webp?v=1759371563"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f5e5363444a6c3086bf1b39622e622d8f66b6a.webp?v=1759371554","options":["color"],"media":[{"alt":null,"id":26113694728291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f5e5363444a6c3086bf1b39622e622d8f66b6a.webp?v=1759371554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f5e5363444a6c3086bf1b39622e622d8f66b6a.webp?v=1759371554","width":2000},{"alt":null,"id":26113695055971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16eb049ca7e84bfe1e4627c630f08cc0b79afd3e.webp?v=1759371555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16eb049ca7e84bfe1e4627c630f08cc0b79afd3e.webp?v=1759371555","width":2000},{"alt":null,"id":26113695219811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d23f04b24e0ce82d81ec50c16d1b99827c195cb.webp?v=1759371556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d23f04b24e0ce82d81ec50c16d1b99827c195cb.webp?v=1759371556","width":2000},{"alt":null,"id":26113695449187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce3f3083c05bbe329fe95216292c2ebd2fddc26.webp?v=1759371556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce3f3083c05bbe329fe95216292c2ebd2fddc26.webp?v=1759371556","width":2000},{"alt":null,"id":26113695645795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14537559ab39525e6e375565efdce53fcdedb749.webp?v=1759371557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14537559ab39525e6e375565efdce53fcdedb749.webp?v=1759371557","width":2000},{"alt":null,"id":26113695744099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/241b4c665b8085c46e1097eca5d1dd2fc5876bac.webp?v=1759371558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/241b4c665b8085c46e1097eca5d1dd2fc5876bac.webp?v=1759371558","width":2000},{"alt":null,"id":26113695875171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a69fa43e2227039042959a57633b2fa546ed3.webp?v=1759371558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a69fa43e2227039042959a57633b2fa546ed3.webp?v=1759371558","width":2000},{"alt":null,"id":26113696006243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b65c76fffd77509159ccb522af25b9f38a63816.webp?v=1759371559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b65c76fffd77509159ccb522af25b9f38a63816.webp?v=1759371559","width":2000},{"alt":null,"id":26113696137315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560","width":2000},{"alt":null,"id":26113696399459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6689d944685376d08004b41a914c0348acc4bfaa.webp?v=1759371561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6689d944685376d08004b41a914c0348acc4bfaa.webp?v=1759371561","width":2000},{"alt":null,"id":26113696596067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4596732bf619b12e128aa619d61c282ed2f44a.webp?v=1759371561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4596732bf619b12e128aa619d61c282ed2f44a.webp?v=1759371561","width":2000},{"alt":null,"id":26113696792675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68cde4f6e429692ff343aaa81e3585da40e2745.webp?v=1759371562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68cde4f6e429692ff343aaa81e3585da40e2745.webp?v=1759371562","width":2000},{"alt":null,"id":26113696956515,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab87823d68bbdbe72b364c642e498cb39f51e1.webp?v=1759371563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab87823d68bbdbe72b364c642e498cb39f51e1.webp?v=1759371563","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43756888522851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR10","requires_shipping":true,"taxable":true,"featured_image":{"id":34543941255267,"product_id":7892717404259,"position":9,"created_at":"2025-10-02T10:19:18+08:00","updated_at":"2025-10-02T10:19:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560","variant_ids":[43756888522851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Posters Rogbys - 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-AAR10","featured_media":{"alt":null,"id":26113696137315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756888522851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR10","requires_shipping":true,"taxable":true,"featured_image":{"id":34543941255267,"product_id":7892717404259,"position":9,"created_at":"2025-10-02T10:19:18+08:00","updated_at":"2025-10-02T10:19:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560","variant_ids":[43756888522851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Posters Rogbys - 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-AAR10","featured_media":{"alt":null,"id":26113696137315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68b2ceb5a1128209912b2fe37a35b6419daff17.webp?v=1759371560"}},"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: "停產" }