$product = {"id":7892596916323,"title":"iPhone 14 Plus Mod NX Aaron Chang NYB","handle":"iphone-14-plus-mod-nx-printable-aar06","description":null,"published_at":"2025-10-03T09:54:52+08:00","created_at":"2025-10-02T09:42:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"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":43756428001379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR06","requires_shipping":true,"taxable":true,"featured_image":{"id":34543473328227,"product_id":7892596916323,"position":6,"created_at":"2025-10-02T09:43:08+08:00","updated_at":"2025-10-02T09:43:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390","variant_ids":[43756428001379]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang NYB - 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-AAR06","featured_media":{"alt":null,"id":26113228210275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9731841c37d8dcfeae5691716cccebc2cf0719f9.webp?v=1759369385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dada3a59e9609e2ab75031db9c7037a29ae43b70.webp?v=1759369386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629d8ed4e2afdf5fcf681c6b9e5f4d12080d6de5.webp?v=1759369387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea579dc40021a1be32780d71f5f541be5c646d6.webp?v=1759369387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8877361a462da2d1ef77478411eb68f566a0ba.webp?v=1759369388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/278b573aac576c88deb2f4cd18b27e2f300f6c88.webp?v=1759369391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c657f8e4fed4425b9f5aca9b64c4d66b570ccc6.webp?v=1759369392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03bf63cfb97f287a9ed118848c279385df8bf21.webp?v=1759369393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fabab0c2443bff00478c2abbe9cb24a4603be3.webp?v=1759369394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e42a48a74716fa5ed73f6acc4121c273975bc20.webp?v=1759369395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95334dd24f22abef78981d00f2926b32ce75e8d9.webp?v=1759369396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed423f886d17c47ea643c75b07b44e04a1a29a7.webp?v=1759369397"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9731841c37d8dcfeae5691716cccebc2cf0719f9.webp?v=1759369385","options":["color"],"media":[{"alt":null,"id":26113227620451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9731841c37d8dcfeae5691716cccebc2cf0719f9.webp?v=1759369385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9731841c37d8dcfeae5691716cccebc2cf0719f9.webp?v=1759369385","width":2000},{"alt":null,"id":26113227718755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dada3a59e9609e2ab75031db9c7037a29ae43b70.webp?v=1759369386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dada3a59e9609e2ab75031db9c7037a29ae43b70.webp?v=1759369386","width":2000},{"alt":null,"id":26113227817059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629d8ed4e2afdf5fcf681c6b9e5f4d12080d6de5.webp?v=1759369387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629d8ed4e2afdf5fcf681c6b9e5f4d12080d6de5.webp?v=1759369387","width":2000},{"alt":null,"id":26113227915363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea579dc40021a1be32780d71f5f541be5c646d6.webp?v=1759369387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea579dc40021a1be32780d71f5f541be5c646d6.webp?v=1759369387","width":2000},{"alt":null,"id":26113228046435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8877361a462da2d1ef77478411eb68f566a0ba.webp?v=1759369388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8877361a462da2d1ef77478411eb68f566a0ba.webp?v=1759369388","width":2000},{"alt":null,"id":26113228210275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390","width":2000},{"alt":null,"id":26113228341347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/278b573aac576c88deb2f4cd18b27e2f300f6c88.webp?v=1759369391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/278b573aac576c88deb2f4cd18b27e2f300f6c88.webp?v=1759369391","width":2000},{"alt":null,"id":26113228472419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c657f8e4fed4425b9f5aca9b64c4d66b570ccc6.webp?v=1759369392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c657f8e4fed4425b9f5aca9b64c4d66b570ccc6.webp?v=1759369392","width":2000},{"alt":null,"id":26113228701795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03bf63cfb97f287a9ed118848c279385df8bf21.webp?v=1759369393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03bf63cfb97f287a9ed118848c279385df8bf21.webp?v=1759369393","width":2000},{"alt":null,"id":26113228898403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fabab0c2443bff00478c2abbe9cb24a4603be3.webp?v=1759369394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fabab0c2443bff00478c2abbe9cb24a4603be3.webp?v=1759369394","width":2000},{"alt":null,"id":26113229160547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e42a48a74716fa5ed73f6acc4121c273975bc20.webp?v=1759369395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e42a48a74716fa5ed73f6acc4121c273975bc20.webp?v=1759369395","width":2000},{"alt":null,"id":26113229291619,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95334dd24f22abef78981d00f2926b32ce75e8d9.webp?v=1759369396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95334dd24f22abef78981d00f2926b32ce75e8d9.webp?v=1759369396","width":2000},{"alt":null,"id":26113229422691,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed423f886d17c47ea643c75b07b44e04a1a29a7.webp?v=1759369397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed423f886d17c47ea643c75b07b44e04a1a29a7.webp?v=1759369397","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756428001379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR06","requires_shipping":true,"taxable":true,"featured_image":{"id":34543473328227,"product_id":7892596916323,"position":6,"created_at":"2025-10-02T09:43:08+08:00","updated_at":"2025-10-02T09:43:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390","variant_ids":[43756428001379]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang NYB - 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-AAR06","featured_media":{"alt":null,"id":26113228210275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756428001379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR06","requires_shipping":true,"taxable":true,"featured_image":{"id":34543473328227,"product_id":7892596916323,"position":6,"created_at":"2025-10-02T09:43:08+08:00","updated_at":"2025-10-02T09:43:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390","variant_ids":[43756428001379]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang NYB - 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-AAR06","featured_media":{"alt":null,"id":26113228210275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ec1135c351f68bfe5f6c0a4b28942d30a66cbe.webp?v=1759369390"}},"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: "停產" }