$product = {"id":7956540719203,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 懶散兔與啾先生 海洋","handle":"iphone-8-mod-nx-ec55","description":null,"published_at":"2026-01-27T10:35:42+08:00","created_at":"2026-01-27T10:27:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 8","merge","reseller-bylobster"],"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":43969322516579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":36056467767395,"product_id":7956540719203,"position":8,"created_at":"2026-06-23T11:01:26+08:00","updated_at":"2026-06-23T11:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688","variant_ids":[43969322516579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 懶散兔與啾先生 海洋 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-EC55","featured_media":{"alt":null,"id":27569317871715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fdd3f1eac1f7282ec4bc4e6cb32792982789d.webp?v=1769480846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46172376076690c8e3d2cf41489acace5e3ceb03.webp?v=1769480846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20504a7ed1acf37bd70811a7e27620fb2c55a3a5.webp?v=1769480847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc3d9949adf76bb1b15d532df21aaff643a2a84.webp?v=1769480847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2.webp?v=1769480848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad0dfb20fbc42d38351c7a14ed272f832b2c44b.webp?v=1769480848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba06cb2a52adaaa347c436e96e6e3b8bf07b7874.webp?v=1769480849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fdd3f1eac1f7282ec4bc4e6cb32792982789d.webp?v=1769480846","options":["color"],"media":[{"alt":null,"id":26707438960739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fdd3f1eac1f7282ec4bc4e6cb32792982789d.webp?v=1769480846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fdd3f1eac1f7282ec4bc4e6cb32792982789d.webp?v=1769480846","width":2000},{"alt":null,"id":26707439157347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46172376076690c8e3d2cf41489acace5e3ceb03.webp?v=1769480846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46172376076690c8e3d2cf41489acace5e3ceb03.webp?v=1769480846","width":2000},{"alt":null,"id":26707439353955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20504a7ed1acf37bd70811a7e27620fb2c55a3a5.webp?v=1769480847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20504a7ed1acf37bd70811a7e27620fb2c55a3a5.webp?v=1769480847","width":2000},{"alt":null,"id":26707439550563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc3d9949adf76bb1b15d532df21aaff643a2a84.webp?v=1769480847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc3d9949adf76bb1b15d532df21aaff643a2a84.webp?v=1769480847","width":2000},{"alt":null,"id":26707439648867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2.webp?v=1769480848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2.webp?v=1769480848","width":2000},{"alt":null,"id":26707439812707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad0dfb20fbc42d38351c7a14ed272f832b2c44b.webp?v=1769480848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad0dfb20fbc42d38351c7a14ed272f832b2c44b.webp?v=1769480848","width":2000},{"alt":null,"id":26707439976547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba06cb2a52adaaa347c436e96e6e3b8bf07b7874.webp?v=1769480849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba06cb2a52adaaa347c436e96e6e3b8bf07b7874.webp?v=1769480849","width":2000},{"alt":null,"id":27569317871715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43969322516579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":36056467767395,"product_id":7956540719203,"position":8,"created_at":"2026-06-23T11:01:26+08:00","updated_at":"2026-06-23T11:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688","variant_ids":[43969322516579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 懶散兔與啾先生 海洋 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-EC55","featured_media":{"alt":null,"id":27569317871715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43969322516579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":36056467767395,"product_id":7956540719203,"position":8,"created_at":"2026-06-23T11:01:26+08:00","updated_at":"2026-06-23T11:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688","variant_ids":[43969322516579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 懶散兔與啾先生 海洋 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-EC55","featured_media":{"alt":null,"id":27569317871715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7822b40a232c3df1184c70f8bc99b3fa510dd2_0a574a3a-7d25-480f-9570-923756127034.webp?v=1782183688"}},"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: "停產" }