$product = {"id":7944301674595,"title":"iPhone 14 Plus Mod NX 右手超人 企鵝朋友","handle":"iphone-14-plus-mod-nx-yoh05","description":null,"published_at":"2025-12-24T10:18:34+08:00","created_at":"2025-12-23T16:52:59+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":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":43907999432803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35002963853411,"product_id":7944301674595,"position":1,"created_at":"2025-12-23T16:53:34+08:00","updated_at":"2025-12-23T16:53:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","variant_ids":[43907999432803]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-YOH05","featured_media":{"alt":null,"id":26563254878307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f6f36c7c69a573e9d25566a55a0dad62202c.webp?v=1766480016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf8af1a77be8b9c5546e4b35a8cf94729110f74.webp?v=1766480017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af4847b0761abfcf057163ed647e4d254129800.webp?v=1766480017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4a5334c117a6bfef40e972f8ef9e3da08aa1e6.webp?v=1766480018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891efd66b74da211590c36f52de005e406f941a5.webp?v=1766480018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d3827273aeb1f496f595378ee3bbd7936dac28.webp?v=1766480019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5153232c4e94b18c9989a46e8cee469081d78c.webp?v=1766480020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3454babf457753b3520490fb240b275e69413e92.webp?v=1766480021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc210611ca626e9460759b3d3df5bc4f0456194.webp?v=1766480021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6921a7430be7e99f2c6e05bff974997f716d105e.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82969090f49b84531911c150a06146fbef33d934.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf020c91986db82541385bf8ae562a6e7b05c4.webp?v=1766480023"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","options":["color"],"media":[{"alt":null,"id":26563254878307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","width":2000},{"alt":null,"id":26563255140451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f6f36c7c69a573e9d25566a55a0dad62202c.webp?v=1766480016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f6f36c7c69a573e9d25566a55a0dad62202c.webp?v=1766480016","width":2000},{"alt":null,"id":26563255369827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf8af1a77be8b9c5546e4b35a8cf94729110f74.webp?v=1766480017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf8af1a77be8b9c5546e4b35a8cf94729110f74.webp?v=1766480017","width":2000},{"alt":null,"id":26563255795811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af4847b0761abfcf057163ed647e4d254129800.webp?v=1766480017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af4847b0761abfcf057163ed647e4d254129800.webp?v=1766480017","width":2000},{"alt":null,"id":26563256090723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4a5334c117a6bfef40e972f8ef9e3da08aa1e6.webp?v=1766480018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4a5334c117a6bfef40e972f8ef9e3da08aa1e6.webp?v=1766480018","width":2000},{"alt":null,"id":26563256451171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891efd66b74da211590c36f52de005e406f941a5.webp?v=1766480018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891efd66b74da211590c36f52de005e406f941a5.webp?v=1766480018","width":2000},{"alt":null,"id":26563256811619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d3827273aeb1f496f595378ee3bbd7936dac28.webp?v=1766480019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d3827273aeb1f496f595378ee3bbd7936dac28.webp?v=1766480019","width":2000},{"alt":null,"id":26563257172067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5153232c4e94b18c9989a46e8cee469081d78c.webp?v=1766480020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5153232c4e94b18c9989a46e8cee469081d78c.webp?v=1766480020","width":2000},{"alt":null,"id":26563257499747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3454babf457753b3520490fb240b275e69413e92.webp?v=1766480021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3454babf457753b3520490fb240b275e69413e92.webp?v=1766480021","width":2000},{"alt":null,"id":26563257991267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc210611ca626e9460759b3d3df5bc4f0456194.webp?v=1766480021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc210611ca626e9460759b3d3df5bc4f0456194.webp?v=1766480021","width":2000},{"alt":null,"id":26563258417251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6921a7430be7e99f2c6e05bff974997f716d105e.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6921a7430be7e99f2c6e05bff974997f716d105e.webp?v=1766480022","width":2000},{"alt":null,"id":26563259007075,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82969090f49b84531911c150a06146fbef33d934.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82969090f49b84531911c150a06146fbef33d934.webp?v=1766480022","width":2000},{"alt":null,"id":26563259367523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf020c91986db82541385bf8ae562a6e7b05c4.webp?v=1766480023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf020c91986db82541385bf8ae562a6e7b05c4.webp?v=1766480023","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43907999432803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35002963853411,"product_id":7944301674595,"position":1,"created_at":"2025-12-23T16:53:34+08:00","updated_at":"2025-12-23T16:53:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","variant_ids":[43907999432803]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-YOH05","featured_media":{"alt":null,"id":26563254878307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43907999432803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35002963853411,"product_id":7944301674595,"position":1,"created_at":"2025-12-23T16:53:34+08:00","updated_at":"2025-12-23T16:53:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016","variant_ids":[43907999432803]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-YOH05","featured_media":{"alt":null,"id":26563254878307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5662d2d2fb78e97c4a670595a4e29c40c79d17b.webp?v=1766480016"}},"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: "停產" }