$product = {"id":7921972445283,"title":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓","handle":"iphone-14-pro-mod-nx-toc09","description":null,"published_at":"2025-11-14T08:20:28+08:00","created_at":"2025-11-13T10:21:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Pro","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":43834747617379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794157047907,"product_id":7921972445283,"position":11,"created_at":"2025-11-13T10:21:31+08:00","updated_at":"2025-11-13T10:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493","variant_ids":[43834747617379]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC09","featured_media":{"alt":null,"id":26359576526947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834747682915,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794156851299,"product_id":7921972445283,"position":10,"created_at":"2025-11-13T10:21:31+08:00","updated_at":"2025-11-13T10:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493","variant_ids":[43834747682915]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-TOC09","featured_media":{"alt":null,"id":26359576330339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834747781219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794155442275,"product_id":7921972445283,"position":3,"created_at":"2025-11-13T10:21:26+08:00","updated_at":"2025-11-13T10:21:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488","variant_ids":[43834747781219]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-TOC09","featured_media":{"alt":null,"id":26359575019619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b842b80dd99ea2bc4c72f58b558d6ab14bb6cb.webp?v=1763000487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e4b0972eb48bdd9563ceba327090b88155a843.webp?v=1763000488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f69e6ed804788f429a6f22b1fa11d5dfd84fb567.webp?v=1763000489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f35a784d28c513d2d7a161ab234001e53929a1a.webp?v=1763000489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/792c1b97f027b7f2612d9aa5fb714930c111a5aa.webp?v=1763000490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b952f4366f7df0545cc8632dcf50f674cd0f8bb3.webp?v=1763000491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c427b8444504883d69143aa802801770f988e93.webp?v=1763000492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05789c2524faf53a72d1ba40fadbc4a5a8577904.webp?v=1763000492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c5dacc34e761e8408bff715f9376e42725db7c.webp?v=1763000494"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b842b80dd99ea2bc4c72f58b558d6ab14bb6cb.webp?v=1763000487","options":["color"],"media":[{"alt":null,"id":26359574265955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b842b80dd99ea2bc4c72f58b558d6ab14bb6cb.webp?v=1763000487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b842b80dd99ea2bc4c72f58b558d6ab14bb6cb.webp?v=1763000487","width":2000},{"alt":null,"id":26359574593635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e4b0972eb48bdd9563ceba327090b88155a843.webp?v=1763000488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e4b0972eb48bdd9563ceba327090b88155a843.webp?v=1763000488","width":2000},{"alt":null,"id":26359575019619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488","width":2000},{"alt":null,"id":26359575150691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f69e6ed804788f429a6f22b1fa11d5dfd84fb567.webp?v=1763000489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f69e6ed804788f429a6f22b1fa11d5dfd84fb567.webp?v=1763000489","width":2000},{"alt":null,"id":26359575314531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f35a784d28c513d2d7a161ab234001e53929a1a.webp?v=1763000489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f35a784d28c513d2d7a161ab234001e53929a1a.webp?v=1763000489","width":2000},{"alt":null,"id":26359575445603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/792c1b97f027b7f2612d9aa5fb714930c111a5aa.webp?v=1763000490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/792c1b97f027b7f2612d9aa5fb714930c111a5aa.webp?v=1763000490","width":2000},{"alt":null,"id":26359575674979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b952f4366f7df0545cc8632dcf50f674cd0f8bb3.webp?v=1763000491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b952f4366f7df0545cc8632dcf50f674cd0f8bb3.webp?v=1763000491","width":2000},{"alt":null,"id":26359575871587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c427b8444504883d69143aa802801770f988e93.webp?v=1763000492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c427b8444504883d69143aa802801770f988e93.webp?v=1763000492","width":2000},{"alt":null,"id":26359576133731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05789c2524faf53a72d1ba40fadbc4a5a8577904.webp?v=1763000492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05789c2524faf53a72d1ba40fadbc4a5a8577904.webp?v=1763000492","width":2000},{"alt":null,"id":26359576330339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493","width":2000},{"alt":null,"id":26359576526947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493","width":2000},{"alt":null,"id":26359576854627,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c5dacc34e761e8408bff715f9376e42725db7c.webp?v=1763000494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c5dacc34e761e8408bff715f9376e42725db7c.webp?v=1763000494","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834747617379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794157047907,"product_id":7921972445283,"position":11,"created_at":"2025-11-13T10:21:31+08:00","updated_at":"2025-11-13T10:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493","variant_ids":[43834747617379]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC09","featured_media":{"alt":null,"id":26359576526947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834747682915,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794156851299,"product_id":7921972445283,"position":10,"created_at":"2025-11-13T10:21:31+08:00","updated_at":"2025-11-13T10:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493","variant_ids":[43834747682915]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-TOC09","featured_media":{"alt":null,"id":26359576330339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6197806edd5a9eb7b6ed246323256fcb371214.webp?v=1763000493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834747781219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794155442275,"product_id":7921972445283,"position":3,"created_at":"2025-11-13T10:21:26+08:00","updated_at":"2025-11-13T10:21:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488","variant_ids":[43834747781219]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-TOC09","featured_media":{"alt":null,"id":26359575019619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace03f26280800309eea30f67b10c41ca5fb7fd.webp?v=1763000488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834747617379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34794157047907,"product_id":7921972445283,"position":11,"created_at":"2025-11-13T10:21:31+08:00","updated_at":"2025-11-13T10:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493","variant_ids":[43834747617379]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 不對勁招財貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC09","featured_media":{"alt":null,"id":26359576526947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7ec60309b45ad62ff6af60e4bde0e5015bafca.webp?v=1763000493"}},"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: "停產" }