$product = {"id":7942084952163,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 下雨天","handle":"iphone-14-plus-mod-nx-magsafe-nya11","description":null,"published_at":"2025-12-23T10:00:51+08:00","created_at":"2025-12-22T12:11:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Plus","merge","reseller-nyangsongi"],"price":110000,"price_min":110000,"price_max":110000,"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":43903433146467,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA11","requires_shipping":true,"taxable":true,"featured_image":{"id":34986087645283,"product_id":7942084952163,"position":2,"created_at":"2025-12-22T12:11:41+08:00","updated_at":"2025-12-22T12:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703","variant_ids":[43903433146467]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 下雨天 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-NYA11","featured_media":{"alt":null,"id":26547161202787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b313aa9a3f4b62481ab5d3b15dde76e33ba572.webp?v=1766376703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bda46cf3561df53a97332a0ef592c936d48bcf62.webp?v=1766376704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94725bc6bf482903870eccb0b22508560888925.webp?v=1766376704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f388e1a80badb1622cebd7e6dd4e7a056fa773e.webp?v=1766376705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0f120e5ae968391fb73511b2cc31508b457796.webp?v=1766376705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26205fdfce1591249442c3a3a0cda1c2b7a0f7ba.webp?v=1766376706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9fac3efc18648b9861164c606ba1d40234e74d.webp?v=1766376710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ffe2d7827edb49cc4ded0181cdfdf62deb006.webp?v=1766376707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2689dfd0f408d06e792b3e8ff64a1255e712da.webp?v=1766376708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11cf24d37120530d8b1b320a34df0f2cbf6b739.webp?v=1766376709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554276d208ba4bc5330cb2af7d1c7a94aace1f76.webp?v=1766376709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/590358034a3c80aed8db997900339e285b26134d.webp?v=1766376710"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b313aa9a3f4b62481ab5d3b15dde76e33ba572.webp?v=1766376703","options":["color"],"media":[{"alt":null,"id":26547161170019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b313aa9a3f4b62481ab5d3b15dde76e33ba572.webp?v=1766376703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b313aa9a3f4b62481ab5d3b15dde76e33ba572.webp?v=1766376703","width":2000},{"alt":null,"id":26547161202787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703","width":2000},{"alt":null,"id":26547161235555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bda46cf3561df53a97332a0ef592c936d48bcf62.webp?v=1766376704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bda46cf3561df53a97332a0ef592c936d48bcf62.webp?v=1766376704","width":2000},{"alt":null,"id":26547161268323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94725bc6bf482903870eccb0b22508560888925.webp?v=1766376704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94725bc6bf482903870eccb0b22508560888925.webp?v=1766376704","width":2000},{"alt":null,"id":26547161399395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f388e1a80badb1622cebd7e6dd4e7a056fa773e.webp?v=1766376705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f388e1a80badb1622cebd7e6dd4e7a056fa773e.webp?v=1766376705","width":2000},{"alt":null,"id":26547161432163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0f120e5ae968391fb73511b2cc31508b457796.webp?v=1766376705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0f120e5ae968391fb73511b2cc31508b457796.webp?v=1766376705","width":2000},{"alt":null,"id":26547161464931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26205fdfce1591249442c3a3a0cda1c2b7a0f7ba.webp?v=1766376706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26205fdfce1591249442c3a3a0cda1c2b7a0f7ba.webp?v=1766376706","width":2000},{"alt":null,"id":26547161497699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9fac3efc18648b9861164c606ba1d40234e74d.webp?v=1766376710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9fac3efc18648b9861164c606ba1d40234e74d.webp?v=1766376710","width":2000},{"alt":null,"id":26547161530467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ffe2d7827edb49cc4ded0181cdfdf62deb006.webp?v=1766376707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ffe2d7827edb49cc4ded0181cdfdf62deb006.webp?v=1766376707","width":2000},{"alt":null,"id":26547161563235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2689dfd0f408d06e792b3e8ff64a1255e712da.webp?v=1766376708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2689dfd0f408d06e792b3e8ff64a1255e712da.webp?v=1766376708","width":2000},{"alt":null,"id":26547161596003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11cf24d37120530d8b1b320a34df0f2cbf6b739.webp?v=1766376709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11cf24d37120530d8b1b320a34df0f2cbf6b739.webp?v=1766376709","width":2000},{"alt":null,"id":26547161628771,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554276d208ba4bc5330cb2af7d1c7a94aace1f76.webp?v=1766376709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554276d208ba4bc5330cb2af7d1c7a94aace1f76.webp?v=1766376709","width":2000},{"alt":null,"id":26547161694307,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/590358034a3c80aed8db997900339e285b26134d.webp?v=1766376710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/590358034a3c80aed8db997900339e285b26134d.webp?v=1766376710","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43903433146467,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA11","requires_shipping":true,"taxable":true,"featured_image":{"id":34986087645283,"product_id":7942084952163,"position":2,"created_at":"2025-12-22T12:11:41+08:00","updated_at":"2025-12-22T12:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703","variant_ids":[43903433146467]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 下雨天 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-NYA11","featured_media":{"alt":null,"id":26547161202787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43903433146467,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-NYA11","requires_shipping":true,"taxable":true,"featured_image":{"id":34986087645283,"product_id":7942084952163,"position":2,"created_at":"2025-12-22T12:11:41+08:00","updated_at":"2025-12-22T12:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703","variant_ids":[43903433146467]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Nyangsongi 下雨天 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-NYA11","featured_media":{"alt":null,"id":26547161202787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615f3e40f61b5b202598aa03c3eaf59a33f2fbbd.webp?v=1766376703"}},"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: "停產" }