$product = {"id":7944356429923,"title":"iPhone XR Mod NX 右手超人 輕飄飄","handle":"iphone-xr-mod-nx-yoh03","description":null,"published_at":"2025-12-24T10:08:54+08:00","created_at":"2025-12-23T17:03:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone XR","merge","reseller-yohand"],"price":90000,"price_min":90000,"price_max":90000,"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":43908704927843,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003251163235,"product_id":7944356429923,"position":8,"created_at":"2025-12-23T17:04:24+08:00","updated_at":"2025-12-23T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666","variant_ids":[43908704927843]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-YOH03","featured_media":{"alt":null,"id":26563541172323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908705255523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003249983587,"product_id":7944356429923,"position":4,"created_at":"2025-12-23T17:04:22+08:00","updated_at":"2025-12-23T17:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664","variant_ids":[43908705255523]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-YOH03","featured_media":{"alt":null,"id":26563539730531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908705878115,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003251687523,"product_id":7944356429923,"position":10,"created_at":"2025-12-23T17:04:26+08:00","updated_at":"2025-12-23T17:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667","variant_ids":[43908705878115]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-YOH03","featured_media":{"alt":null,"id":26563541696611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908707024995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003250573411,"product_id":7944356429923,"position":6,"created_at":"2025-12-23T17:04:23+08:00","updated_at":"2025-12-23T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665","variant_ids":[43908707024995]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-YOH03","featured_media":{"alt":null,"id":26563540549731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5f067c769baeda44adfbc93b026ee56da7bcd.webp?v=1766480663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/383aa0fcadf6263281e44e4bd33b3425144f4a91.webp?v=1766480663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78b799039b1055b158fc0d2cf2ecdfea46d84f4d.webp?v=1766480664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7888b46037c9602ea218689ba8c6c80f2e00cee.webp?v=1766480665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790100606b16db489ec2e0f184bd688aed8d9cc2.webp?v=1766480665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4795a2caf074456ad6a371e986b885add2b38.webp?v=1766480667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5f067c769baeda44adfbc93b026ee56da7bcd.webp?v=1766480663","options":["color"],"media":[{"alt":null,"id":26563539140707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5f067c769baeda44adfbc93b026ee56da7bcd.webp?v=1766480663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5f067c769baeda44adfbc93b026ee56da7bcd.webp?v=1766480663","width":2000},{"alt":null,"id":26563539304547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/383aa0fcadf6263281e44e4bd33b3425144f4a91.webp?v=1766480663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/383aa0fcadf6263281e44e4bd33b3425144f4a91.webp?v=1766480663","width":2000},{"alt":null,"id":26563539501155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78b799039b1055b158fc0d2cf2ecdfea46d84f4d.webp?v=1766480664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78b799039b1055b158fc0d2cf2ecdfea46d84f4d.webp?v=1766480664","width":2000},{"alt":null,"id":26563539730531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664","width":2000},{"alt":null,"id":26563540287587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7888b46037c9602ea218689ba8c6c80f2e00cee.webp?v=1766480665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7888b46037c9602ea218689ba8c6c80f2e00cee.webp?v=1766480665","width":2000},{"alt":null,"id":26563540549731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665","width":2000},{"alt":null,"id":26563540877411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790100606b16db489ec2e0f184bd688aed8d9cc2.webp?v=1766480665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790100606b16db489ec2e0f184bd688aed8d9cc2.webp?v=1766480665","width":2000},{"alt":null,"id":26563541172323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666","width":2000},{"alt":null,"id":26563541434467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4795a2caf074456ad6a371e986b885add2b38.webp?v=1766480667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4795a2caf074456ad6a371e986b885add2b38.webp?v=1766480667","width":2000},{"alt":null,"id":26563541696611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43908704927843,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003251163235,"product_id":7944356429923,"position":8,"created_at":"2025-12-23T17:04:24+08:00","updated_at":"2025-12-23T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666","variant_ids":[43908704927843]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-YOH03","featured_media":{"alt":null,"id":26563541172323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908705255523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003249983587,"product_id":7944356429923,"position":4,"created_at":"2025-12-23T17:04:22+08:00","updated_at":"2025-12-23T17:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664","variant_ids":[43908705255523]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-YOH03","featured_media":{"alt":null,"id":26563539730531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14466f58fcb784b1b337f0803fd29258944ea248.webp?v=1766480664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908705878115,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003251687523,"product_id":7944356429923,"position":10,"created_at":"2025-12-23T17:04:26+08:00","updated_at":"2025-12-23T17:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667","variant_ids":[43908705878115]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-YOH03","featured_media":{"alt":null,"id":26563541696611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49da381a007fd5e641a450bc0dd81252b0bb60a0.webp?v=1766480667"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908707024995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003250573411,"product_id":7944356429923,"position":6,"created_at":"2025-12-23T17:04:23+08:00","updated_at":"2025-12-23T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665","variant_ids":[43908707024995]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-YOH03","featured_media":{"alt":null,"id":26563540549731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bbe26ed7af441fa415144ac2832e72eebde8dd.webp?v=1766480665"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43908704927843,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35003251163235,"product_id":7944356429923,"position":8,"created_at":"2025-12-23T17:04:24+08:00","updated_at":"2025-12-23T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666","variant_ids":[43908704927843]},"available":true,"name":"iPhone XR Mod NX 右手超人 輕飄飄 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-YOH03","featured_media":{"alt":null,"id":26563541172323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52c6426e2f856bdfabf31826eeb35696527ff01.webp?v=1766480666"}},"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: "停產" }