$product = {"id":7888450420835,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 麵包派對(麵包熊款)","handle":"iphone-14-plus-mod-nx-magsafe-printable-es10","description":null,"published_at":"2025-09-23T09:17:22+08:00","created_at":"2025-09-22T15:46:29+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":43743166038115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514470404195,"product_id":7888450420835,"position":13,"created_at":"2025-09-22T15:46:38+08:00","updated_at":"2025-09-22T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200","variant_ids":[43743166038115]},"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-ES10","featured_media":{"alt":null,"id":26084912922723,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2004b3c2bfd25a5b4ef7628ff644ab103411abb.webp?v=1758527194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b735cab04dac4ec352038bb512c86c1fa167243.webp?v=1758527194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f0d533b64d9c09c96cb51e6d8de07a3e85c010.webp?v=1758527195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21198974683c324b2931184f246979a7179d1eef.webp?v=1758527196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fa3765edb38367d36ac1e5fede2b754572a700.webp?v=1758527196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/915cb274d1df014b27204f4d1e22a5ed935e8d1a.webp?v=1758527196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33da5af16d40e41bd43f8b9fbdc6357eb8cd4e6c.webp?v=1758527197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8cde0350691bd57e36326bf098f6c1a9fb7a4a.webp?v=1758527197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962ee36cba23bb2695eb54ddc50aa3bb301289a5.webp?v=1758527198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44386316636f39595fd493b40f1e6303608509a4.webp?v=1758527198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d876ddeab3c7c9189ccff9324d2ffb6da1fe92.webp?v=1758527199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f0e9edffae3ee3c6e1c03470801b204c52d112.webp?v=1758527199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2004b3c2bfd25a5b4ef7628ff644ab103411abb.webp?v=1758527194","options":["color"],"media":[{"alt":null,"id":26084910891107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2004b3c2bfd25a5b4ef7628ff644ab103411abb.webp?v=1758527194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2004b3c2bfd25a5b4ef7628ff644ab103411abb.webp?v=1758527194","width":2000},{"alt":null,"id":26084911022179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b735cab04dac4ec352038bb512c86c1fa167243.webp?v=1758527194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b735cab04dac4ec352038bb512c86c1fa167243.webp?v=1758527194","width":2000},{"alt":null,"id":26084911153251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f0d533b64d9c09c96cb51e6d8de07a3e85c010.webp?v=1758527195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f0d533b64d9c09c96cb51e6d8de07a3e85c010.webp?v=1758527195","width":2000},{"alt":null,"id":26084911317091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21198974683c324b2931184f246979a7179d1eef.webp?v=1758527196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21198974683c324b2931184f246979a7179d1eef.webp?v=1758527196","width":2000},{"alt":null,"id":26084911480931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fa3765edb38367d36ac1e5fede2b754572a700.webp?v=1758527196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fa3765edb38367d36ac1e5fede2b754572a700.webp?v=1758527196","width":2000},{"alt":null,"id":26084911579235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/915cb274d1df014b27204f4d1e22a5ed935e8d1a.webp?v=1758527196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/915cb274d1df014b27204f4d1e22a5ed935e8d1a.webp?v=1758527196","width":2000},{"alt":null,"id":26084911808611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33da5af16d40e41bd43f8b9fbdc6357eb8cd4e6c.webp?v=1758527197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33da5af16d40e41bd43f8b9fbdc6357eb8cd4e6c.webp?v=1758527197","width":2000},{"alt":null,"id":26084912037987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8cde0350691bd57e36326bf098f6c1a9fb7a4a.webp?v=1758527197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8cde0350691bd57e36326bf098f6c1a9fb7a4a.webp?v=1758527197","width":2000},{"alt":null,"id":26084912201827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962ee36cba23bb2695eb54ddc50aa3bb301289a5.webp?v=1758527198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962ee36cba23bb2695eb54ddc50aa3bb301289a5.webp?v=1758527198","width":2000},{"alt":null,"id":26084912431203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44386316636f39595fd493b40f1e6303608509a4.webp?v=1758527198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44386316636f39595fd493b40f1e6303608509a4.webp?v=1758527198","width":2000},{"alt":null,"id":26084912627811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d876ddeab3c7c9189ccff9324d2ffb6da1fe92.webp?v=1758527199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d876ddeab3c7c9189ccff9324d2ffb6da1fe92.webp?v=1758527199","width":2000},{"alt":null,"id":26084912758883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f0e9edffae3ee3c6e1c03470801b204c52d112.webp?v=1758527199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f0e9edffae3ee3c6e1c03470801b204c52d112.webp?v=1758527199","width":2000},{"alt":null,"id":26084912922723,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743166038115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514470404195,"product_id":7888450420835,"position":13,"created_at":"2025-09-22T15:46:38+08:00","updated_at":"2025-09-22T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200","variant_ids":[43743166038115]},"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-ES10","featured_media":{"alt":null,"id":26084912922723,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743166038115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES10","requires_shipping":true,"taxable":true,"featured_image":{"id":34514470404195,"product_id":7888450420835,"position":13,"created_at":"2025-09-22T15:46:38+08:00","updated_at":"2025-09-22T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200","variant_ids":[43743166038115]},"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-ES10","featured_media":{"alt":null,"id":26084912922723,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd7b49a0e5312aae71ab2157542e6360539a13.webp?v=1758527200"}},"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: "停產" }