$product = {"id":7922030084195,"title":"iPhone 14 Plus Mod NX TOCOROCOMUGI 旋轉可頌貓","handle":"iphone-14-plus-mod-nx-toc05","description":null,"published_at":"2025-11-14T08:10:13+08:00","created_at":"2025-11-13T10:34:57+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":43834970341475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794398548067,"product_id":7922030084195,"position":9,"created_at":"2025-11-13T10:35:04+08:00","updated_at":"2025-11-13T10:35:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306","variant_ids":[43834970341475]},"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-TOC05","featured_media":{"alt":null,"id":26359817371747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c9569b7b7b161019ebb506eb90c04a9e9b1cc8.webp?v=1763001301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb9c630ace4d99d238aa7bba54d998a44cc848.webp?v=1763001301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06d5d348dba50ee59dc269885cc0e2ccf2d9dfd.webp?v=1763001302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caba5ee255d3b11f09efc0d6badb96a25af57053.webp?v=1763001302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1c7fdb3cad62442fca025c862d7466521e695.webp?v=1763001304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3845014de23e32de44a0369a34931612e5d3717.webp?v=1763001304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57fd332014c3420aeff5a9862a41bf96832eb38.webp?v=1763001305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574e01a44af78c665406d49ec79c8057cdd8564f.webp?v=1763001305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb744f5e0ac0fc344959627225d1489c1f8e1d59.webp?v=1763001306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ce6b2b71ef6409a37a053a87db651032264bcd.webp?v=1763001307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c1409dd116a53404ceaeca1ef1604cedff1500.webp?v=1763001308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78b0aefa5a3179854f2a5b119f6e2f38a9b0002.webp?v=1763001308"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c9569b7b7b161019ebb506eb90c04a9e9b1cc8.webp?v=1763001301","options":["color"],"media":[{"alt":null,"id":26359814586467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c9569b7b7b161019ebb506eb90c04a9e9b1cc8.webp?v=1763001301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c9569b7b7b161019ebb506eb90c04a9e9b1cc8.webp?v=1763001301","width":2000},{"alt":null,"id":26359814815843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb9c630ace4d99d238aa7bba54d998a44cc848.webp?v=1763001301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb9c630ace4d99d238aa7bba54d998a44cc848.webp?v=1763001301","width":2000},{"alt":null,"id":26359815143523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06d5d348dba50ee59dc269885cc0e2ccf2d9dfd.webp?v=1763001302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06d5d348dba50ee59dc269885cc0e2ccf2d9dfd.webp?v=1763001302","width":2000},{"alt":null,"id":26359815602275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caba5ee255d3b11f09efc0d6badb96a25af57053.webp?v=1763001302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caba5ee255d3b11f09efc0d6badb96a25af57053.webp?v=1763001302","width":2000},{"alt":null,"id":26359815962723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1c7fdb3cad62442fca025c862d7466521e695.webp?v=1763001304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1c7fdb3cad62442fca025c862d7466521e695.webp?v=1763001304","width":2000},{"alt":null,"id":26359816388707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3845014de23e32de44a0369a34931612e5d3717.webp?v=1763001304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3845014de23e32de44a0369a34931612e5d3717.webp?v=1763001304","width":2000},{"alt":null,"id":26359816650851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57fd332014c3420aeff5a9862a41bf96832eb38.webp?v=1763001305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57fd332014c3420aeff5a9862a41bf96832eb38.webp?v=1763001305","width":2000},{"alt":null,"id":26359816978531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574e01a44af78c665406d49ec79c8057cdd8564f.webp?v=1763001305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574e01a44af78c665406d49ec79c8057cdd8564f.webp?v=1763001305","width":2000},{"alt":null,"id":26359817371747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306","width":2000},{"alt":null,"id":26359817666659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb744f5e0ac0fc344959627225d1489c1f8e1d59.webp?v=1763001306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb744f5e0ac0fc344959627225d1489c1f8e1d59.webp?v=1763001306","width":2000},{"alt":null,"id":26359817994339,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ce6b2b71ef6409a37a053a87db651032264bcd.webp?v=1763001307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ce6b2b71ef6409a37a053a87db651032264bcd.webp?v=1763001307","width":2000},{"alt":null,"id":26359818256483,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c1409dd116a53404ceaeca1ef1604cedff1500.webp?v=1763001308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c1409dd116a53404ceaeca1ef1604cedff1500.webp?v=1763001308","width":2000},{"alt":null,"id":26359818354787,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78b0aefa5a3179854f2a5b119f6e2f38a9b0002.webp?v=1763001308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78b0aefa5a3179854f2a5b119f6e2f38a9b0002.webp?v=1763001308","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834970341475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794398548067,"product_id":7922030084195,"position":9,"created_at":"2025-11-13T10:35:04+08:00","updated_at":"2025-11-13T10:35:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306","variant_ids":[43834970341475]},"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-TOC05","featured_media":{"alt":null,"id":26359817371747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834970341475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794398548067,"product_id":7922030084195,"position":9,"created_at":"2025-11-13T10:35:04+08:00","updated_at":"2025-11-13T10:35:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306","variant_ids":[43834970341475]},"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-TOC05","featured_media":{"alt":null,"id":26359817371747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b9606f45243c64c60c39ebb5b25a7d3b7b5664.webp?v=1763001306"}},"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: "停產" }