$product = {"id":7922046238819,"title":"iPhone 14 Plus Mod NX TOCOROCOMUGI 不對勁招財貓","handle":"iphone-14-plus-mod-nx-toc09","description":null,"published_at":"2025-11-14T08:07:20+08:00","created_at":"2025-11-13T10:38:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Plus","merge","reseller-tocorocomugi"],"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":43835033190499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794463527011,"product_id":7922046238819,"position":4,"created_at":"2025-11-13T10:38:33+08:00","updated_at":"2025-11-13T10:38:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515","variant_ids":[43835033190499]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 不對勁招財貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TOC09","featured_media":{"alt":null,"id":26359882416227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f050be37335b23a5e487b840e3d9e5288b4d54b.webp?v=1763001513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1380e53c420ae7bbc6d9284fd25da1cfcab10a.webp?v=1763001513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9a54454ac75cc4838fcacef80513cf59d3154.webp?v=1763001514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2deba1649b5157cefc5a95a321aaaaf4c7987f.webp?v=1763001515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4b7e1df70df1a8fb66d4e68eb52c2dd2ff6f6b.webp?v=1763001516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c9cf2088f3ee5eaf17fdf971670a588511e26e.webp?v=1763001516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6b163d96901eb27a946102136a0c5ffdb49e6a.webp?v=1763001517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb21b8946fbe4bac360d9694b31a3c2566c9fc64.webp?v=1763001518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84f7226e7586afe3940a658d6c87cf9d2d63aed.webp?v=1763001519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35110d8a80efab684bf982dad9807848b4f4e756.webp?v=1763001520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e7a0d7b180e87894604ba9d9b8edd0859954c1.webp?v=1763001521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09df43feadd737d6db01b2506447aa140fba5e68.webp?v=1763001522"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f050be37335b23a5e487b840e3d9e5288b4d54b.webp?v=1763001513","options":["color"],"media":[{"alt":null,"id":26359881728099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f050be37335b23a5e487b840e3d9e5288b4d54b.webp?v=1763001513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f050be37335b23a5e487b840e3d9e5288b4d54b.webp?v=1763001513","width":2000},{"alt":null,"id":26359881891939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1380e53c420ae7bbc6d9284fd25da1cfcab10a.webp?v=1763001513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1380e53c420ae7bbc6d9284fd25da1cfcab10a.webp?v=1763001513","width":2000},{"alt":null,"id":26359882186851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9a54454ac75cc4838fcacef80513cf59d3154.webp?v=1763001514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9a54454ac75cc4838fcacef80513cf59d3154.webp?v=1763001514","width":2000},{"alt":null,"id":26359882416227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515","width":2000},{"alt":null,"id":26359882711139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2deba1649b5157cefc5a95a321aaaaf4c7987f.webp?v=1763001515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2deba1649b5157cefc5a95a321aaaaf4c7987f.webp?v=1763001515","width":2000},{"alt":null,"id":26359882842211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4b7e1df70df1a8fb66d4e68eb52c2dd2ff6f6b.webp?v=1763001516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4b7e1df70df1a8fb66d4e68eb52c2dd2ff6f6b.webp?v=1763001516","width":2000},{"alt":null,"id":26359883137123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c9cf2088f3ee5eaf17fdf971670a588511e26e.webp?v=1763001516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c9cf2088f3ee5eaf17fdf971670a588511e26e.webp?v=1763001516","width":2000},{"alt":null,"id":26359883497571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6b163d96901eb27a946102136a0c5ffdb49e6a.webp?v=1763001517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6b163d96901eb27a946102136a0c5ffdb49e6a.webp?v=1763001517","width":2000},{"alt":null,"id":26359883628643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb21b8946fbe4bac360d9694b31a3c2566c9fc64.webp?v=1763001518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb21b8946fbe4bac360d9694b31a3c2566c9fc64.webp?v=1763001518","width":2000},{"alt":null,"id":26359883858019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84f7226e7586afe3940a658d6c87cf9d2d63aed.webp?v=1763001519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84f7226e7586afe3940a658d6c87cf9d2d63aed.webp?v=1763001519","width":2000},{"alt":null,"id":26359884251235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35110d8a80efab684bf982dad9807848b4f4e756.webp?v=1763001520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35110d8a80efab684bf982dad9807848b4f4e756.webp?v=1763001520","width":2000},{"alt":null,"id":26359884513379,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e7a0d7b180e87894604ba9d9b8edd0859954c1.webp?v=1763001521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e7a0d7b180e87894604ba9d9b8edd0859954c1.webp?v=1763001521","width":2000},{"alt":null,"id":26359884677219,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09df43feadd737d6db01b2506447aa140fba5e68.webp?v=1763001522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09df43feadd737d6db01b2506447aa140fba5e68.webp?v=1763001522","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43835033190499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794463527011,"product_id":7922046238819,"position":4,"created_at":"2025-11-13T10:38:33+08:00","updated_at":"2025-11-13T10:38:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515","variant_ids":[43835033190499]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 不對勁招財貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TOC09","featured_media":{"alt":null,"id":26359882416227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43835033190499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794463527011,"product_id":7922046238819,"position":4,"created_at":"2025-11-13T10:38:33+08:00","updated_at":"2025-11-13T10:38:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515","variant_ids":[43835033190499]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 不對勁招財貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TOC09","featured_media":{"alt":null,"id":26359882416227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cbbf748f598732270d862b11e637ce4d6afcd9.webp?v=1763001515"}},"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: "停產" }