$product = {"id":7931219640419,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 白白日記 By Darylhochi Um...","handle":"iphone-8-mod-nx-ei82","description":null,"published_at":"2025-11-28T11:12:47+08:00","created_at":"2025-11-28T09:21:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 8","merge","reseller-darylhochi"],"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":43860641513571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861449838691,"product_id":7931219640419,"position":11,"created_at":"2025-11-28T10:02:36+08:00","updated_at":"2025-11-28T10:02:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358","variant_ids":[43860641513571]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425869467747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3.webp?v=1764292910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112.webp?v=1764292911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41.webp?v=1764292912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4.webp?v=1764292912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe.webp?v=1764292913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b.webp?v=1764292914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f.webp?v=1764292914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57.webp?v=1764292915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b_7f22e77b-bb4d-4864-8e0f-6ba592d0faf2.webp?v=1764295357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112_4fd1a016-a9e7-4c0f-93f6-fb0c3ac59d4a.webp?v=1764295358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3_7460b9ee-07c1-4b30-b590-28cb502bfee2.webp?v=1764295359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f_9767391d-b447-43dc-869a-6df825e664de.webp?v=1764295359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41_69d79f3f-1cbe-4f0c-a15d-12bc7c3940fc.webp?v=1764295360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe_7a678388-2f38-48fb-8837-584786843a74.webp?v=1764295360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57_99828c1b-e787-4a13-9342-71d8507628f7.webp?v=1764295360"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3.webp?v=1764292910","options":["color"],"media":[{"alt":null,"id":26425570394211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3.webp?v=1764292910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3.webp?v=1764292910","width":2000},{"alt":null,"id":26425570590819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112.webp?v=1764292911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112.webp?v=1764292911","width":2000},{"alt":null,"id":26425570754659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41.webp?v=1764292912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41.webp?v=1764292912","width":2000},{"alt":null,"id":26425570951267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4.webp?v=1764292912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4.webp?v=1764292912","width":2000},{"alt":null,"id":26425571147875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe.webp?v=1764292913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe.webp?v=1764292913","width":2000},{"alt":null,"id":26425571246179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b.webp?v=1764292914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b.webp?v=1764292914","width":2000},{"alt":null,"id":26425571344483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f.webp?v=1764292914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f.webp?v=1764292914","width":2000},{"alt":null,"id":26425571541091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57.webp?v=1764292915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57.webp?v=1764292915","width":2000},{"alt":null,"id":26425869172835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b_7f22e77b-bb4d-4864-8e0f-6ba592d0faf2.webp?v=1764295357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cdcb5b32f6929003f6dc904ca588c598641043b_7f22e77b-bb4d-4864-8e0f-6ba592d0faf2.webp?v=1764295357","width":2000},{"alt":null,"id":26425869336675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112_4fd1a016-a9e7-4c0f-93f6-fb0c3ac59d4a.webp?v=1764295358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282dc4d97f459c57b1665ec6dd6bdb8149910112_4fd1a016-a9e7-4c0f-93f6-fb0c3ac59d4a.webp?v=1764295358","width":2000},{"alt":null,"id":26425869467747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358","width":2000},{"alt":null,"id":26425869533283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3_7460b9ee-07c1-4b30-b590-28cb502bfee2.webp?v=1764295359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed44cd63bdf0fdfd6e71d1c1f01a53cc21f85fc3_7460b9ee-07c1-4b30-b590-28cb502bfee2.webp?v=1764295359","width":2000},{"alt":null,"id":26425869598819,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f_9767391d-b447-43dc-869a-6df825e664de.webp?v=1764295359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521ac9794e0bb252d5a9f6b919b322e6ecf0370f_9767391d-b447-43dc-869a-6df825e664de.webp?v=1764295359","width":2000},{"alt":null,"id":26425869697123,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41_69d79f3f-1cbe-4f0c-a15d-12bc7c3940fc.webp?v=1764295360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80add10ae60a01bd485a025c9f5f4ea2552bb41_69d79f3f-1cbe-4f0c-a15d-12bc7c3940fc.webp?v=1764295360","width":2000},{"alt":null,"id":26425869893731,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe_7a678388-2f38-48fb-8837-584786843a74.webp?v=1764295360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05fc4a9d01306a78e51262850fb7989be3612ffe_7a678388-2f38-48fb-8837-584786843a74.webp?v=1764295360","width":2000},{"alt":null,"id":26425870057571,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57_99828c1b-e787-4a13-9342-71d8507628f7.webp?v=1764295360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52c742fefff7bcbc7b9cd97cbf6b3f0fc601e57_99828c1b-e787-4a13-9342-71d8507628f7.webp?v=1764295360","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43860641513571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861449838691,"product_id":7931219640419,"position":11,"created_at":"2025-11-28T10:02:36+08:00","updated_at":"2025-11-28T10:02:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358","variant_ids":[43860641513571]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425869467747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860641513571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861449838691,"product_id":7931219640419,"position":11,"created_at":"2025-11-28T10:02:36+08:00","updated_at":"2025-11-28T10:02:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358","variant_ids":[43860641513571]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425869467747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6038892335d84a612f9866926f53fa9fec61c1e4_121b745f-55a6-4946-bcfc-6d72bb109b24.webp?v=1764295358"}},"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: "停產" }