$product = {"id":7764443988067,"title":"iPhone 16 Pro CircularNext(MagSafe 兼容 \u0026 相機按鈕)","handle":"iphone-16-pro-circularnext-magsafe-bumper-with-capture-button-featured-product","description":null,"published_at":"2025-04-09T09:40:36+08:00","created_at":"2025-04-02T09:41:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"CircularNext MagSafe With Capture Button","tags":["20%","25%","30%","35%","40%","45%","50%","all-phone-case-fp","brand-Apple","device-iPhone 16 Pro","discountable","discountable-item","dropdownDevice-Apple iPhone 16 Pro","featured-product","member","quickbuy","refresh-kelly-2025","reseller","reseller-circularnext-magsafe-bumper-with-capture-button","type-circularnext-magsafe-with-capture-button-featured-product","viewable"],"price":125000,"price_min":125000,"price_max":125000,"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":43282373804131,"title":"海豚粉","option1":"海豚粉","option2":null,"option3":null,"sku":"MNB013273X","requires_shipping":true,"taxable":true,"featured_image":{"id":33681082318947,"product_id":7764443988067,"position":8,"created_at":"2025-04-07T16:56:25+08:00","updated_at":"2025-04-07T16:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187","variant_ids":[43282373804131]},"available":true,"name":"iPhone 16 Pro CircularNext(MagSafe 兼容 \u0026 相機按鈕) - 海豚粉","public_title":"海豚粉","options":["海豚粉"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":-10,"inventory_management":null,"inventory_policy":"deny","barcode":"4711563109609","featured_media":{"alt":null,"id":25469973364835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_8d217343-be7f-4f1d-8892-c53a92defa7b.webp?v=1743558099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_bc135b19-ef42-4745-a301-ae41cbf99ea0.webp?v=1743558101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_3ca9ca96-5eae-4d51-be05-4fcf26349511.webp?v=1743558102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_0d69dfcb-d435-4867-848b-6280be28f0b8.webp?v=1743558104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_c0b2a5eb-5c69-4a29-9392-f6b5c12597da.webp?v=1743558105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_01bd4a8f-df6b-4f2b-a800-1bb8c60659cb.webp?v=1744016186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_8ba74ea8-0a78-43bf-8a1b-aa9348fbdd37.webp?v=1744016186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_4c6a7609-0830-4a78-9a23-daed8072868c.webp?v=1744016187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_5dee306e-659a-4dfb-875d-234fe5502267.webp?v=1744016188"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_8d217343-be7f-4f1d-8892-c53a92defa7b.webp?v=1743558099","options":["color"],"media":[{"alt":null,"id":25457460215907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_8d217343-be7f-4f1d-8892-c53a92defa7b.webp?v=1743558099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_8d217343-be7f-4f1d-8892-c53a92defa7b.webp?v=1743558099","width":2000},{"alt":null,"id":25457460478051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_bc135b19-ef42-4745-a301-ae41cbf99ea0.webp?v=1743558101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_bc135b19-ef42-4745-a301-ae41cbf99ea0.webp?v=1743558101","width":2000},{"alt":null,"id":25457460871267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_3ca9ca96-5eae-4d51-be05-4fcf26349511.webp?v=1743558102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_3ca9ca96-5eae-4d51-be05-4fcf26349511.webp?v=1743558102","width":2000},{"alt":null,"id":25457461198947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_0d69dfcb-d435-4867-848b-6280be28f0b8.webp?v=1743558104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_0d69dfcb-d435-4867-848b-6280be28f0b8.webp?v=1743558104","width":2000},{"alt":null,"id":25457461362787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_c0b2a5eb-5c69-4a29-9392-f6b5c12597da.webp?v=1743558105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_c0b2a5eb-5c69-4a29-9392-f6b5c12597da.webp?v=1743558105","width":2000},{"alt":null,"id":25469972971619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_01bd4a8f-df6b-4f2b-a800-1bb8c60659cb.webp?v=1744016186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0b03c15256184c5a424e1c0bf0b7db965e9580_01bd4a8f-df6b-4f2b-a800-1bb8c60659cb.webp?v=1744016186","width":2000},{"alt":null,"id":25469973266531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_8ba74ea8-0a78-43bf-8a1b-aa9348fbdd37.webp?v=1744016186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e68b90e28fcb5886d7b3cc466f7d4fe31bd49_8ba74ea8-0a78-43bf-8a1b-aa9348fbdd37.webp?v=1744016186","width":2000},{"alt":null,"id":25469973364835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187","width":2000},{"alt":null,"id":25469973626979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_4c6a7609-0830-4a78-9a23-daed8072868c.webp?v=1744016187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053623f54b5ee22cbaa82eadfa3d26c36bfc9da8_4c6a7609-0830-4a78-9a23-daed8072868c.webp?v=1744016187","width":2000},{"alt":null,"id":25469974052963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_5dee306e-659a-4dfb-875d-234fe5502267.webp?v=1744016188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7f6839a315a193a592343730eb04951233a02_5dee306e-659a-4dfb-875d-234fe5502267.webp?v=1744016188","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43282373804131,"title":"海豚粉","option1":"海豚粉","option2":null,"option3":null,"sku":"MNB013273X","requires_shipping":true,"taxable":true,"featured_image":{"id":33681082318947,"product_id":7764443988067,"position":8,"created_at":"2025-04-07T16:56:25+08:00","updated_at":"2025-04-07T16:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187","variant_ids":[43282373804131]},"available":true,"name":"iPhone 16 Pro CircularNext(MagSafe 兼容 \u0026 相機按鈕) - 海豚粉","public_title":"海豚粉","options":["海豚粉"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":-10,"inventory_management":null,"inventory_policy":"deny","barcode":"4711563109609","featured_media":{"alt":null,"id":25469973364835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43282373804131,"title":"海豚粉","option1":"海豚粉","option2":null,"option3":null,"sku":"MNB013273X","requires_shipping":true,"taxable":true,"featured_image":{"id":33681082318947,"product_id":7764443988067,"position":8,"created_at":"2025-04-07T16:56:25+08:00","updated_at":"2025-04-07T16:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187","variant_ids":[43282373804131]},"available":true,"name":"iPhone 16 Pro CircularNext(MagSafe 兼容 \u0026 相機按鈕) - 海豚粉","public_title":"海豚粉","options":["海豚粉"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":-10,"inventory_management":null,"inventory_policy":"deny","barcode":"4711563109609","featured_media":{"alt":null,"id":25469973364835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943e9d54dc8e65dc833889208f1bf749de8c2130_58c34f30-2364-428c-bc45-6de4fa7e99d3.webp?v=1744016187"}},"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: "停產" }