$product = {"id":7942084788323,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 腳踏車悠遊","handle":"iphone-14-plus-mod-nx-magsafe-nya07","description":null,"published_at":"2025-12-23T10:00:53+08:00","created_at":"2025-12-22T12:10:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Plus","merge","reseller-nyangsongi"],"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":43903430492259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA07","requires_shipping":true,"taxable":true,"featured_image":{"id":34986084302947,"product_id":7942084788323,"position":1,"created_at":"2025-12-22T12:10:58+08:00","updated_at":"2025-12-22T12:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","variant_ids":[43903430492259]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 腳踏車悠遊 - 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-NYA07","featured_media":{"alt":null,"id":26547157893219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed4294e7acf12dff3374456a5cb4d6ecb2a10f7.webp?v=1766376660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8498d43735d1dcc0d8728ac30b6165ef598c09.webp?v=1766376661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f8698f101916195942723878e882b47c77d66c.webp?v=1766376662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8544b0c8f1a6eeea65ed3489d636d3b6f9fd010d.webp?v=1766376662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a19fc3e6104f412d2101a3b77cad87e1f1e270aa.webp?v=1766376663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e9f60cec25c42f81e5e8aa39b2ded32f503cf1.webp?v=1766376664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad35d9cf8232c2f398f72d29589b0f7b9d153ca.webp?v=1766376665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e065eb1bea116bf7700f1a04ba62217ed7d729.webp?v=1766376665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1645e8f63f6ab0883cdf723eb14038c7dc591013.webp?v=1766376666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb76fd3f4d62337fb5961b50cf6a11d4a1c67e1.webp?v=1766376666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c0060992145898c0ea32dfdd1c217db225a61d.webp?v=1766376667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ba3ff3bf6f52691c5e43e3fabc85e6c098edb7.webp?v=1766376668"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","options":["color"],"media":[{"alt":null,"id":26547157893219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","width":2000},{"alt":null,"id":26547158089827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed4294e7acf12dff3374456a5cb4d6ecb2a10f7.webp?v=1766376660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed4294e7acf12dff3374456a5cb4d6ecb2a10f7.webp?v=1766376660","width":2000},{"alt":null,"id":26547158515811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8498d43735d1dcc0d8728ac30b6165ef598c09.webp?v=1766376661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8498d43735d1dcc0d8728ac30b6165ef598c09.webp?v=1766376661","width":2000},{"alt":null,"id":26547158614115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f8698f101916195942723878e882b47c77d66c.webp?v=1766376662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f8698f101916195942723878e882b47c77d66c.webp?v=1766376662","width":2000},{"alt":null,"id":26547158876259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8544b0c8f1a6eeea65ed3489d636d3b6f9fd010d.webp?v=1766376662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8544b0c8f1a6eeea65ed3489d636d3b6f9fd010d.webp?v=1766376662","width":2000},{"alt":null,"id":26547159269475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a19fc3e6104f412d2101a3b77cad87e1f1e270aa.webp?v=1766376663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a19fc3e6104f412d2101a3b77cad87e1f1e270aa.webp?v=1766376663","width":2000},{"alt":null,"id":26547159400547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e9f60cec25c42f81e5e8aa39b2ded32f503cf1.webp?v=1766376664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e9f60cec25c42f81e5e8aa39b2ded32f503cf1.webp?v=1766376664","width":2000},{"alt":null,"id":26547159531619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad35d9cf8232c2f398f72d29589b0f7b9d153ca.webp?v=1766376665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad35d9cf8232c2f398f72d29589b0f7b9d153ca.webp?v=1766376665","width":2000},{"alt":null,"id":26547159629923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e065eb1bea116bf7700f1a04ba62217ed7d729.webp?v=1766376665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e065eb1bea116bf7700f1a04ba62217ed7d729.webp?v=1766376665","width":2000},{"alt":null,"id":26547159760995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1645e8f63f6ab0883cdf723eb14038c7dc591013.webp?v=1766376666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1645e8f63f6ab0883cdf723eb14038c7dc591013.webp?v=1766376666","width":2000},{"alt":null,"id":26547159826531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb76fd3f4d62337fb5961b50cf6a11d4a1c67e1.webp?v=1766376666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb76fd3f4d62337fb5961b50cf6a11d4a1c67e1.webp?v=1766376666","width":2000},{"alt":null,"id":26547159892067,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c0060992145898c0ea32dfdd1c217db225a61d.webp?v=1766376667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c0060992145898c0ea32dfdd1c217db225a61d.webp?v=1766376667","width":2000},{"alt":null,"id":26547159990371,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ba3ff3bf6f52691c5e43e3fabc85e6c098edb7.webp?v=1766376668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ba3ff3bf6f52691c5e43e3fabc85e6c098edb7.webp?v=1766376668","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43903430492259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA07","requires_shipping":true,"taxable":true,"featured_image":{"id":34986084302947,"product_id":7942084788323,"position":1,"created_at":"2025-12-22T12:10:58+08:00","updated_at":"2025-12-22T12:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","variant_ids":[43903430492259]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 腳踏車悠遊 - 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-NYA07","featured_media":{"alt":null,"id":26547157893219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43903430492259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA07","requires_shipping":true,"taxable":true,"featured_image":{"id":34986084302947,"product_id":7942084788323,"position":1,"created_at":"2025-12-22T12:10:58+08:00","updated_at":"2025-12-22T12:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660","variant_ids":[43903430492259]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 腳踏車悠遊 - 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-NYA07","featured_media":{"alt":null,"id":26547157893219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786a9cd69dfb64e4957b131ef81651ad915a153d.webp?v=1766376660"}},"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: "停產" }