$product = {"id":7944301477987,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 柔軟的時間","handle":"iphone-14-plus-mod-nx-magsafe-yoh07","description":null,"published_at":"2025-12-24T10:18:37+08:00","created_at":"2025-12-23T16:52:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 14 Plus","merge","reseller-yohand"],"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":43908003364963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH07","requires_shipping":true,"taxable":true,"featured_image":{"id":35002971914339,"product_id":7944301477987,"position":12,"created_at":"2025-12-23T16:53:47+08:00","updated_at":"2025-12-23T16:53:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029","variant_ids":[43908003364963]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 柔軟的時間 - 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-YOH07","featured_media":{"alt":null,"id":26563262808163,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45bfbd5de6752da63c69e7806337253015353e27.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e8be3c2a67517fc95fd2d0db97218acb2cd2c.webp?v=1766480023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6352118522c99ec164851b00eb97af7a6c9d951.webp?v=1766480024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2456f544d2392823dd25ab6680df29cd9872f9bd.webp?v=1766480024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c315df841eea57dce1a8b9af07f76282ce910b2e.webp?v=1766480025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b405a5906d11c96cc1857771ea5390daad23b55f.webp?v=1766480025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b136249f123316c09f9f29c919cb2944e5a23cef.webp?v=1766480026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a160d857560484cfb68687c8d1fa1b68392cda.webp?v=1766480026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d907b73b41b85082eed9334565a51568a730e733.webp?v=1766480027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745bf3ed1324b06c3b3e5e3f05a79c316337abe3.webp?v=1766480027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc61d8a9710830f3d69b0b015c5459604a6ef84.webp?v=1766480028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a1e721bca1a8c8c39f855ea3a0674c9c54ac2c.webp?v=1766480030"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45bfbd5de6752da63c69e7806337253015353e27.webp?v=1766480022","options":["color"],"media":[{"alt":null,"id":26563258679395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45bfbd5de6752da63c69e7806337253015353e27.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45bfbd5de6752da63c69e7806337253015353e27.webp?v=1766480022","width":2000},{"alt":null,"id":26563259236451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e8be3c2a67517fc95fd2d0db97218acb2cd2c.webp?v=1766480023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e8be3c2a67517fc95fd2d0db97218acb2cd2c.webp?v=1766480023","width":2000},{"alt":null,"id":26563259629667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6352118522c99ec164851b00eb97af7a6c9d951.webp?v=1766480024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6352118522c99ec164851b00eb97af7a6c9d951.webp?v=1766480024","width":2000},{"alt":null,"id":26563259957347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2456f544d2392823dd25ab6680df29cd9872f9bd.webp?v=1766480024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2456f544d2392823dd25ab6680df29cd9872f9bd.webp?v=1766480024","width":2000},{"alt":null,"id":26563260219491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c315df841eea57dce1a8b9af07f76282ce910b2e.webp?v=1766480025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c315df841eea57dce1a8b9af07f76282ce910b2e.webp?v=1766480025","width":2000},{"alt":null,"id":26563260514403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b405a5906d11c96cc1857771ea5390daad23b55f.webp?v=1766480025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b405a5906d11c96cc1857771ea5390daad23b55f.webp?v=1766480025","width":2000},{"alt":null,"id":26563260940387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b136249f123316c09f9f29c919cb2944e5a23cef.webp?v=1766480026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b136249f123316c09f9f29c919cb2944e5a23cef.webp?v=1766480026","width":2000},{"alt":null,"id":26563261464675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a160d857560484cfb68687c8d1fa1b68392cda.webp?v=1766480026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a160d857560484cfb68687c8d1fa1b68392cda.webp?v=1766480026","width":2000},{"alt":null,"id":26563261825123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d907b73b41b85082eed9334565a51568a730e733.webp?v=1766480027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d907b73b41b85082eed9334565a51568a730e733.webp?v=1766480027","width":2000},{"alt":null,"id":26563262152803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745bf3ed1324b06c3b3e5e3f05a79c316337abe3.webp?v=1766480027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745bf3ed1324b06c3b3e5e3f05a79c316337abe3.webp?v=1766480027","width":2000},{"alt":null,"id":26563262611555,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc61d8a9710830f3d69b0b015c5459604a6ef84.webp?v=1766480028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc61d8a9710830f3d69b0b015c5459604a6ef84.webp?v=1766480028","width":2000},{"alt":null,"id":26563262808163,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029","width":2000},{"alt":null,"id":26563263266915,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a1e721bca1a8c8c39f855ea3a0674c9c54ac2c.webp?v=1766480030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a1e721bca1a8c8c39f855ea3a0674c9c54ac2c.webp?v=1766480030","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43908003364963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH07","requires_shipping":true,"taxable":true,"featured_image":{"id":35002971914339,"product_id":7944301477987,"position":12,"created_at":"2025-12-23T16:53:47+08:00","updated_at":"2025-12-23T16:53:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029","variant_ids":[43908003364963]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 柔軟的時間 - 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-YOH07","featured_media":{"alt":null,"id":26563262808163,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43908003364963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH07","requires_shipping":true,"taxable":true,"featured_image":{"id":35002971914339,"product_id":7944301477987,"position":12,"created_at":"2025-12-23T16:53:47+08:00","updated_at":"2025-12-23T16:53:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029","variant_ids":[43908003364963]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 柔軟的時間 - 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-YOH07","featured_media":{"alt":null,"id":26563262808163,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926922d459ed32b214d05241ca0e56502d8b974f.webp?v=1766480029"}},"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: "停產" }