$product = {"id":7931218329699,"title":"iPhone XS Max Mod NX 白白日記 By Darylhochi 眾裏尋他 (黑白)","handle":"iphone-xs-max-mod-nx-ei77","description":null,"published_at":"2025-11-28T11:13:02+08:00","created_at":"2025-11-28T09:21:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone XS Max","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":43860635320419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108624-EI77","requires_shipping":true,"taxable":true,"featured_image":{"id":34861493715043,"product_id":7931218329699,"position":14,"created_at":"2025-11-28T10:09:32+08:00","updated_at":"2025-11-28T10:09:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774","variant_ids":[43860635320419]},"available":true,"name":"iPhone XS Max Mod NX 白白日記 By Darylhochi 眾裏尋他 (黑白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-EI77","featured_media":{"alt":null,"id":26425913245795,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8.webp?v=1764292897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465.webp?v=1764292897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1.webp?v=1764292897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c.webp?v=1764292898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b.webp?v=1764292898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d.webp?v=1764292899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4.webp?v=1764292899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4_fd462081-32f7-4551-a3a1-c890a936fc1d.webp?v=1764295763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d_f95b9c16-026a-4f7e-a9e7-0d37f2b22110.webp?v=1764295764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8_abc32428-fb0b-42ed-9abd-96659784acf6.webp?v=1764295765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1_decfcefc-8e95-4d10-92d4-2ffc7a3d9895.webp?v=1764295767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c_b3ef2b7d-ba45-495f-86a2-b0ce8539a2f1.webp?v=1764295768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b_28ab64b1-d2df-4e3b-a9f0-4e13a2031aca.webp?v=1764295770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8.webp?v=1764292897","options":["color"],"media":[{"alt":null,"id":26425564168291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8.webp?v=1764292897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8.webp?v=1764292897","width":2000},{"alt":null,"id":26425564528739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465.webp?v=1764292897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465.webp?v=1764292897","width":2000},{"alt":null,"id":26425564758115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1.webp?v=1764292897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1.webp?v=1764292897","width":2000},{"alt":null,"id":26425564987491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c.webp?v=1764292898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c.webp?v=1764292898","width":2000},{"alt":null,"id":26425565282403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b.webp?v=1764292898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b.webp?v=1764292898","width":2000},{"alt":null,"id":26425565544547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d.webp?v=1764292899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d.webp?v=1764292899","width":2000},{"alt":null,"id":26425565806691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4.webp?v=1764292899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4.webp?v=1764292899","width":2000},{"alt":null,"id":26425912557667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4_fd462081-32f7-4551-a3a1-c890a936fc1d.webp?v=1764295763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2be22dc9e3c68bbe340d57378f462f630c57f4_fd462081-32f7-4551-a3a1-c890a936fc1d.webp?v=1764295763","width":2000},{"alt":null,"id":26425912655971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d_f95b9c16-026a-4f7e-a9e7-0d37f2b22110.webp?v=1764295764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785dc354b0a185e8efa25ef512ef94b61686d32d_f95b9c16-026a-4f7e-a9e7-0d37f2b22110.webp?v=1764295764","width":2000},{"alt":null,"id":26425912721507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8_abc32428-fb0b-42ed-9abd-96659784acf6.webp?v=1764295765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829e30b92981841bf0135a8d124d706ff5cae3e8_abc32428-fb0b-42ed-9abd-96659784acf6.webp?v=1764295765","width":2000},{"alt":null,"id":26425912950883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1_decfcefc-8e95-4d10-92d4-2ffc7a3d9895.webp?v=1764295767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5714ad775e6fcd3c75f7415f76cbf275f4588a1_decfcefc-8e95-4d10-92d4-2ffc7a3d9895.webp?v=1764295767","width":2000},{"alt":null,"id":26425913081955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c_b3ef2b7d-ba45-495f-86a2-b0ce8539a2f1.webp?v=1764295768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231e0beb6de5097dae0db8c81f47d3ba4af6c25c_b3ef2b7d-ba45-495f-86a2-b0ce8539a2f1.webp?v=1764295768","width":2000},{"alt":null,"id":26425913180259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b_28ab64b1-d2df-4e3b-a9f0-4e13a2031aca.webp?v=1764295770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7982e9873f02ff584d21d1de39c80831cb002b_28ab64b1-d2df-4e3b-a9f0-4e13a2031aca.webp?v=1764295770","width":2000},{"alt":null,"id":26425913245795,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43860635320419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108624-EI77","requires_shipping":true,"taxable":true,"featured_image":{"id":34861493715043,"product_id":7931218329699,"position":14,"created_at":"2025-11-28T10:09:32+08:00","updated_at":"2025-11-28T10:09:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774","variant_ids":[43860635320419]},"available":true,"name":"iPhone XS Max Mod NX 白白日記 By Darylhochi 眾裏尋他 (黑白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-EI77","featured_media":{"alt":null,"id":26425913245795,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860635320419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108624-EI77","requires_shipping":true,"taxable":true,"featured_image":{"id":34861493715043,"product_id":7931218329699,"position":14,"created_at":"2025-11-28T10:09:32+08:00","updated_at":"2025-11-28T10:09:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774","variant_ids":[43860635320419]},"available":true,"name":"iPhone XS Max Mod NX 白白日記 By Darylhochi 眾裏尋他 (黑白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-EI77","featured_media":{"alt":null,"id":26425913245795,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4394a3b3b20f1f5414c17535e0fb4fe2abe465_d3a027e0-2749-4bc2-a751-382e70d51968.webp?v=1764295774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }