$product = {"id":7888456384611,"title":"iPhone 14 Plus Mod NX 布朗尼 annnbrownie 麵包派對(麵包熊款)","handle":"iphone-14-plus-mod-nx-printable-es10","description":null,"published_at":"2025-09-23T09:16:53+08:00","created_at":"2025-09-22T15:47:43+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":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":43743189336163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514493243491,"product_id":7888456384611,"position":2,"created_at":"2025-09-22T15:47:47+08:00","updated_at":"2025-09-22T15:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269","variant_ids":[43743189336163]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-ES10","featured_media":{"alt":null,"id":26084935762019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dbd9822bde750913638422640ad3508001d16f0.webp?v=1758527269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59431467a681b94ea8c01f4d4724b4c9f5a27662.webp?v=1758527270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ad5dab1015f513c6e2877d42878bf5ba4505.webp?v=1758527270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013c1c636f6e3a98796b23666599de678024823f.webp?v=1758527271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4eabd81e49f02ceca7215129a975ab282c19c6.webp?v=1758527271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e2002eea21a73d8f6be8d012cd2dd38049087.webp?v=1758527272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e508c241ac0bf7820d4f5fe22794decd92c399d.webp?v=1758527272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8218e78f2bcb2f92e99bc8cd32923b5edaca039b.webp?v=1758527273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc1ce6532d6f8b3fad4277325937f9b579608dd.webp?v=1758527273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3dd8df9cad41408c2649b1c39e43c777391e73f.webp?v=1758527274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ac28a89be47c5363194e774afd217f9434266.webp?v=1758527275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0707656813922b34afecf9fa89b5c9822ef1bf.webp?v=1758527275"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dbd9822bde750913638422640ad3508001d16f0.webp?v=1758527269","options":["color"],"media":[{"alt":null,"id":26084935499875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dbd9822bde750913638422640ad3508001d16f0.webp?v=1758527269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dbd9822bde750913638422640ad3508001d16f0.webp?v=1758527269","width":2000},{"alt":null,"id":26084935762019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269","width":2000},{"alt":null,"id":26084935860323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59431467a681b94ea8c01f4d4724b4c9f5a27662.webp?v=1758527270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59431467a681b94ea8c01f4d4724b4c9f5a27662.webp?v=1758527270","width":2000},{"alt":null,"id":26084936089699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ad5dab1015f513c6e2877d42878bf5ba4505.webp?v=1758527270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ad5dab1015f513c6e2877d42878bf5ba4505.webp?v=1758527270","width":2000},{"alt":null,"id":26084936286307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013c1c636f6e3a98796b23666599de678024823f.webp?v=1758527271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013c1c636f6e3a98796b23666599de678024823f.webp?v=1758527271","width":2000},{"alt":null,"id":26084936417379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4eabd81e49f02ceca7215129a975ab282c19c6.webp?v=1758527271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4eabd81e49f02ceca7215129a975ab282c19c6.webp?v=1758527271","width":2000},{"alt":null,"id":26084936613987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e2002eea21a73d8f6be8d012cd2dd38049087.webp?v=1758527272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e2002eea21a73d8f6be8d012cd2dd38049087.webp?v=1758527272","width":2000},{"alt":null,"id":26084936843363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e508c241ac0bf7820d4f5fe22794decd92c399d.webp?v=1758527272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e508c241ac0bf7820d4f5fe22794decd92c399d.webp?v=1758527272","width":2000},{"alt":null,"id":26084937072739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8218e78f2bcb2f92e99bc8cd32923b5edaca039b.webp?v=1758527273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8218e78f2bcb2f92e99bc8cd32923b5edaca039b.webp?v=1758527273","width":2000},{"alt":null,"id":26084937269347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc1ce6532d6f8b3fad4277325937f9b579608dd.webp?v=1758527273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc1ce6532d6f8b3fad4277325937f9b579608dd.webp?v=1758527273","width":2000},{"alt":null,"id":26084937498723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3dd8df9cad41408c2649b1c39e43c777391e73f.webp?v=1758527274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3dd8df9cad41408c2649b1c39e43c777391e73f.webp?v=1758527274","width":2000},{"alt":null,"id":26084937793635,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ac28a89be47c5363194e774afd217f9434266.webp?v=1758527275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ac28a89be47c5363194e774afd217f9434266.webp?v=1758527275","width":2000},{"alt":null,"id":26084937990243,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0707656813922b34afecf9fa89b5c9822ef1bf.webp?v=1758527275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0707656813922b34afecf9fa89b5c9822ef1bf.webp?v=1758527275","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743189336163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514493243491,"product_id":7888456384611,"position":2,"created_at":"2025-09-22T15:47:47+08:00","updated_at":"2025-09-22T15:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269","variant_ids":[43743189336163]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-ES10","featured_media":{"alt":null,"id":26084935762019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743189336163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514493243491,"product_id":7888456384611,"position":2,"created_at":"2025-09-22T15:47:47+08:00","updated_at":"2025-09-22T15:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269","variant_ids":[43743189336163]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-ES10","featured_media":{"alt":null,"id":26084935762019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd24dcf9ae48c63e00b8861adbb827e6508230.webp?v=1758527269"}},"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: "停產" }