$product = {"id":7848105672803,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Hey You","handle":"iphone-14-plus-mod-nx-magsafe-bumper-crossover-design-fv67","description":null,"published_at":"2025-08-07T08:59:31+08:00","created_at":"2025-08-05T09:50:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Plus","merge","reseller-hijohnnn"],"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":43563064033379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288125509731,"product_id":7848105672803,"position":2,"created_at":"2025-08-05T09:50:25+08:00","updated_at":"2025-08-05T09:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627","variant_ids":[43563064033379]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889012875363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8d1d07103c00ebb464de1f7dcdf6d6bcf1fe05.webp?v=1754358627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e2197ac05ecdf398a8fb32a8a10873e738d7bf.webp?v=1754358628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc824001c7b7b3bdb70e1dc9aae3d708750de9f5.webp?v=1754358629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba799b49dd5c4f7ba0d42461bd4cc164ebe5b26.webp?v=1754358629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c0d9f7e868abbad3f248244e5e4e7307da6891.webp?v=1754358630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44cbf621a31f950f0a02ecbf338d66f782823bd9.webp?v=1754358630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/457d00d996559f89d37d4690b24bcd866b22c591.webp?v=1754358631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b45c205ff1b2b2704ead279775eefeb3a393b7.webp?v=1754358631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596872eb6035686a31afdd3cf9a3fcfd971c957b.webp?v=1754358632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62a5c8d93a6a33639eb87365540778d39fa513.webp?v=1754358633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82a37da7624fe4dca22fe5e675f0006e089b482d.webp?v=1754358634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740a08515facb66db22ce4c6b3b1bfe92b1c2411.webp?v=1754358634"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8d1d07103c00ebb464de1f7dcdf6d6bcf1fe05.webp?v=1754358627","options":["color"],"media":[{"alt":null,"id":25889012678755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8d1d07103c00ebb464de1f7dcdf6d6bcf1fe05.webp?v=1754358627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8d1d07103c00ebb464de1f7dcdf6d6bcf1fe05.webp?v=1754358627","width":2000},{"alt":null,"id":25889012875363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627","width":2000},{"alt":null,"id":25889013006435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e2197ac05ecdf398a8fb32a8a10873e738d7bf.webp?v=1754358628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e2197ac05ecdf398a8fb32a8a10873e738d7bf.webp?v=1754358628","width":2000},{"alt":null,"id":25889013170275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc824001c7b7b3bdb70e1dc9aae3d708750de9f5.webp?v=1754358629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc824001c7b7b3bdb70e1dc9aae3d708750de9f5.webp?v=1754358629","width":2000},{"alt":null,"id":25889013334115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba799b49dd5c4f7ba0d42461bd4cc164ebe5b26.webp?v=1754358629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba799b49dd5c4f7ba0d42461bd4cc164ebe5b26.webp?v=1754358629","width":2000},{"alt":null,"id":25889013497955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c0d9f7e868abbad3f248244e5e4e7307da6891.webp?v=1754358630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c0d9f7e868abbad3f248244e5e4e7307da6891.webp?v=1754358630","width":2000},{"alt":null,"id":25889013629027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44cbf621a31f950f0a02ecbf338d66f782823bd9.webp?v=1754358630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44cbf621a31f950f0a02ecbf338d66f782823bd9.webp?v=1754358630","width":2000},{"alt":null,"id":25889013858403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/457d00d996559f89d37d4690b24bcd866b22c591.webp?v=1754358631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/457d00d996559f89d37d4690b24bcd866b22c591.webp?v=1754358631","width":2000},{"alt":null,"id":25889013989475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b45c205ff1b2b2704ead279775eefeb3a393b7.webp?v=1754358631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b45c205ff1b2b2704ead279775eefeb3a393b7.webp?v=1754358631","width":2000},{"alt":null,"id":25889014251619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596872eb6035686a31afdd3cf9a3fcfd971c957b.webp?v=1754358632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596872eb6035686a31afdd3cf9a3fcfd971c957b.webp?v=1754358632","width":2000},{"alt":null,"id":25889014513763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62a5c8d93a6a33639eb87365540778d39fa513.webp?v=1754358633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62a5c8d93a6a33639eb87365540778d39fa513.webp?v=1754358633","width":2000},{"alt":null,"id":25889014808675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82a37da7624fe4dca22fe5e675f0006e089b482d.webp?v=1754358634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82a37da7624fe4dca22fe5e675f0006e089b482d.webp?v=1754358634","width":2000},{"alt":null,"id":25889015038051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740a08515facb66db22ce4c6b3b1bfe92b1c2411.webp?v=1754358634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740a08515facb66db22ce4c6b3b1bfe92b1c2411.webp?v=1754358634","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43563064033379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288125509731,"product_id":7848105672803,"position":2,"created_at":"2025-08-05T09:50:25+08:00","updated_at":"2025-08-05T09:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627","variant_ids":[43563064033379]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889012875363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43563064033379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288125509731,"product_id":7848105672803,"position":2,"created_at":"2025-08-05T09:50:25+08:00","updated_at":"2025-08-05T09:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627","variant_ids":[43563064033379]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889012875363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fff9988a938b51095ee0cb9df7940eea3fce20.webp?v=1754358627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }