$product = {"id":7888426336355,"title":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊","handle":"iphone-14-pro-mod-nx-printable-es06","description":null,"published_at":"2025-09-23T09:19:19+08:00","created_at":"2025-09-22T15:41:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 14 Pro","merge","reseller-annnbrownie"],"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":43743071535203,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514372558947,"product_id":7888426336355,"position":12,"created_at":"2025-09-22T15:41:36+08:00","updated_at":"2025-09-22T15:41:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898","variant_ids":[43743071535203]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-ES06","featured_media":{"alt":null,"id":26084815077475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743071567971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514372165731,"product_id":7888426336355,"position":10,"created_at":"2025-09-22T15:41:34+08:00","updated_at":"2025-09-22T15:41:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896","variant_ids":[43743071567971]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-ES06","featured_media":{"alt":null,"id":26084814684259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743071699043,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514371149923,"product_id":7888426336355,"position":4,"created_at":"2025-09-22T15:41:31+08:00","updated_at":"2025-09-22T15:41:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893","variant_ids":[43743071699043]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-ES06","featured_media":{"alt":null,"id":26084813668451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66896dee4dc2b024d2e42a8d0c6998eb8cc79a45.webp?v=1758526892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be16d54ada01759b395ee65434c8b74d6de9d9a0.webp?v=1758526892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee81d9c7d1e4cc744f283f4d0700fb8df0d64ee1.webp?v=1758526893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8410b9b3aebd499a7f0b1d705480e49fa2c5b1d.webp?v=1758526893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7ca6e6fc885af5e3f530c1237e2857ea5141cd.webp?v=1758526894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1475dd36f4ad2f40f257650d2ce885b5a9a3b3.webp?v=1758526894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1fd795993a538d55b5ebfba75fb321f08ca8f0.webp?v=1758526895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd000f469adfc2cecce6525ec5407325aaa22d.webp?v=1758526896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c08288a214cb9ee36cd8efce64f5e0ec3c6d43a3.webp?v=1758526897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66896dee4dc2b024d2e42a8d0c6998eb8cc79a45.webp?v=1758526892","options":["color"],"media":[{"alt":null,"id":26084812980323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66896dee4dc2b024d2e42a8d0c6998eb8cc79a45.webp?v=1758526892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66896dee4dc2b024d2e42a8d0c6998eb8cc79a45.webp?v=1758526892","width":2000},{"alt":null,"id":26084813242467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be16d54ada01759b395ee65434c8b74d6de9d9a0.webp?v=1758526892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be16d54ada01759b395ee65434c8b74d6de9d9a0.webp?v=1758526892","width":2000},{"alt":null,"id":26084813504611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee81d9c7d1e4cc744f283f4d0700fb8df0d64ee1.webp?v=1758526893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee81d9c7d1e4cc744f283f4d0700fb8df0d64ee1.webp?v=1758526893","width":2000},{"alt":null,"id":26084813668451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893","width":2000},{"alt":null,"id":26084813832291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8410b9b3aebd499a7f0b1d705480e49fa2c5b1d.webp?v=1758526893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8410b9b3aebd499a7f0b1d705480e49fa2c5b1d.webp?v=1758526893","width":2000},{"alt":null,"id":26084814192739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7ca6e6fc885af5e3f530c1237e2857ea5141cd.webp?v=1758526894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7ca6e6fc885af5e3f530c1237e2857ea5141cd.webp?v=1758526894","width":2000},{"alt":null,"id":26084814323811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1475dd36f4ad2f40f257650d2ce885b5a9a3b3.webp?v=1758526894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1475dd36f4ad2f40f257650d2ce885b5a9a3b3.webp?v=1758526894","width":2000},{"alt":null,"id":26084814487651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1fd795993a538d55b5ebfba75fb321f08ca8f0.webp?v=1758526895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1fd795993a538d55b5ebfba75fb321f08ca8f0.webp?v=1758526895","width":2000},{"alt":null,"id":26084814585955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd000f469adfc2cecce6525ec5407325aaa22d.webp?v=1758526896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd000f469adfc2cecce6525ec5407325aaa22d.webp?v=1758526896","width":2000},{"alt":null,"id":26084814684259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896","width":2000},{"alt":null,"id":26084814848099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c08288a214cb9ee36cd8efce64f5e0ec3c6d43a3.webp?v=1758526897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c08288a214cb9ee36cd8efce64f5e0ec3c6d43a3.webp?v=1758526897","width":2000},{"alt":null,"id":26084815077475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743071535203,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514372558947,"product_id":7888426336355,"position":12,"created_at":"2025-09-22T15:41:36+08:00","updated_at":"2025-09-22T15:41:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898","variant_ids":[43743071535203]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-ES06","featured_media":{"alt":null,"id":26084815077475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743071567971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514372165731,"product_id":7888426336355,"position":10,"created_at":"2025-09-22T15:41:34+08:00","updated_at":"2025-09-22T15:41:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896","variant_ids":[43743071567971]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-ES06","featured_media":{"alt":null,"id":26084814684259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b2be041e6f6381a8897af865d741dffd4378d3.webp?v=1758526896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743071699043,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514371149923,"product_id":7888426336355,"position":4,"created_at":"2025-09-22T15:41:31+08:00","updated_at":"2025-09-22T15:41:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893","variant_ids":[43743071699043]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-ES06","featured_media":{"alt":null,"id":26084813668451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93704c5ff0462127428c7801ae8aed6107a60a1.webp?v=1758526893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743071535203,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514372558947,"product_id":7888426336355,"position":12,"created_at":"2025-09-22T15:41:36+08:00","updated_at":"2025-09-22T15:41:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898","variant_ids":[43743071535203]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 晚安熊熊 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-ES06","featured_media":{"alt":null,"id":26084815077475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd72877fdb360e4fd23630a0da619383f343fde.webp?v=1758526898"}},"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: "停產" }