$product = {"id":7888487186531,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 冷笑話熊","handle":"iphone-14-plus-mod-nx-magsafe-printable-es04","description":null,"published_at":"2025-09-23T09:14:25+08:00","created_at":"2025-09-22T15:54:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 14 Plus","merge","reseller-annnbrownie"],"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":43743309168739,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514617598051,"product_id":7888487186531,"position":7,"created_at":"2025-09-22T15:54:55+08:00","updated_at":"2025-09-22T15:54:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697","variant_ids":[43743309168739]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 冷笑話熊 - 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-ES04","featured_media":{"alt":null,"id":26085060083811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8406aa4d08975a0597ce184cc8e642e07e15d992.webp?v=1758527694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e46f19bf2a123b27013d5022ed517ef157c82.webp?v=1758527695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d23b5eb96dafa1600120a1e24e0f700caf2756e.webp?v=1758527695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813b24ba9200b48c6d05d3acde966007e6537c0.webp?v=1758527696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f82a14ba8894273432e74ba43e1fe22be5085ee1.webp?v=1758527696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb9e0b490ce0e3be28ef2fc3c2b399d201cb7b9.webp?v=1758527697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d823553f4b2490ecf67c343e7ea320cd7f4867f.webp?v=1758527697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c7f45dc767fa4961e3a9b77cc23db1d47d228b.webp?v=1758527698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620580e67e140386f46484dd328ee8c2a6068dbf.webp?v=1758527699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070784c4d8f80b9d09ccf3813c8f594f3d52c114.webp?v=1758527699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ef5be1a86e415f6c9b91b9e88a7a715631ceb0.webp?v=1758527700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00456e460dab69c12be8abb3179967c20b1de79.webp?v=1758527700"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8406aa4d08975a0597ce184cc8e642e07e15d992.webp?v=1758527694","options":["color"],"media":[{"alt":null,"id":26085058445411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8406aa4d08975a0597ce184cc8e642e07e15d992.webp?v=1758527694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8406aa4d08975a0597ce184cc8e642e07e15d992.webp?v=1758527694","width":2000},{"alt":null,"id":26085058707555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e46f19bf2a123b27013d5022ed517ef157c82.webp?v=1758527695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e46f19bf2a123b27013d5022ed517ef157c82.webp?v=1758527695","width":2000},{"alt":null,"id":26085058969699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d23b5eb96dafa1600120a1e24e0f700caf2756e.webp?v=1758527695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d23b5eb96dafa1600120a1e24e0f700caf2756e.webp?v=1758527695","width":2000},{"alt":null,"id":26085059264611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813b24ba9200b48c6d05d3acde966007e6537c0.webp?v=1758527696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813b24ba9200b48c6d05d3acde966007e6537c0.webp?v=1758527696","width":2000},{"alt":null,"id":26085059592291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f82a14ba8894273432e74ba43e1fe22be5085ee1.webp?v=1758527696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f82a14ba8894273432e74ba43e1fe22be5085ee1.webp?v=1758527696","width":2000},{"alt":null,"id":26085059854435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb9e0b490ce0e3be28ef2fc3c2b399d201cb7b9.webp?v=1758527697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb9e0b490ce0e3be28ef2fc3c2b399d201cb7b9.webp?v=1758527697","width":2000},{"alt":null,"id":26085060083811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697","width":2000},{"alt":null,"id":26085060247651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d823553f4b2490ecf67c343e7ea320cd7f4867f.webp?v=1758527697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d823553f4b2490ecf67c343e7ea320cd7f4867f.webp?v=1758527697","width":2000},{"alt":null,"id":26085060444259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c7f45dc767fa4961e3a9b77cc23db1d47d228b.webp?v=1758527698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c7f45dc767fa4961e3a9b77cc23db1d47d228b.webp?v=1758527698","width":2000},{"alt":null,"id":26085060608099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620580e67e140386f46484dd328ee8c2a6068dbf.webp?v=1758527699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620580e67e140386f46484dd328ee8c2a6068dbf.webp?v=1758527699","width":2000},{"alt":null,"id":26085060706403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070784c4d8f80b9d09ccf3813c8f594f3d52c114.webp?v=1758527699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070784c4d8f80b9d09ccf3813c8f594f3d52c114.webp?v=1758527699","width":2000},{"alt":null,"id":26085060870243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ef5be1a86e415f6c9b91b9e88a7a715631ceb0.webp?v=1758527700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ef5be1a86e415f6c9b91b9e88a7a715631ceb0.webp?v=1758527700","width":2000},{"alt":null,"id":26085061034083,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00456e460dab69c12be8abb3179967c20b1de79.webp?v=1758527700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00456e460dab69c12be8abb3179967c20b1de79.webp?v=1758527700","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743309168739,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514617598051,"product_id":7888487186531,"position":7,"created_at":"2025-09-22T15:54:55+08:00","updated_at":"2025-09-22T15:54:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697","variant_ids":[43743309168739]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 冷笑話熊 - 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-ES04","featured_media":{"alt":null,"id":26085060083811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743309168739,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514617598051,"product_id":7888487186531,"position":7,"created_at":"2025-09-22T15:54:55+08:00","updated_at":"2025-09-22T15:54:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697","variant_ids":[43743309168739]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 冷笑話熊 - 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-ES04","featured_media":{"alt":null,"id":26085060083811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b04595b5ea37ae643629ae9d76b08dc0e6acd.webp?v=1758527697"}},"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: "停產" }