$product = {"id":7827151716451,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻","handle":"iphone-13-pro-max-mod-nx-magsafe-bumper-original-design-c134","description":null,"published_at":"2025-06-26T14:44:49+08:00","created_at":"2025-06-26T14:41:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-blob","device-iPhone 13 Pro Max","discountable-item","merge","original-design","reseller"],"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":43496942207075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-C134","requires_shipping":true,"taxable":true,"featured_image":{"id":34081053442147,"product_id":7827151716451,"position":1,"created_at":"2025-06-26T14:42:01+08:00","updated_at":"2025-06-26T14:42:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","variant_ids":[43496942207075]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-C134","featured_media":{"alt":null,"id":25742246051939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43496942239843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-C134","requires_shipping":true,"taxable":true,"featured_image":{"id":34081057276003,"product_id":7827151716451,"position":8,"created_at":"2025-06-26T14:42:05+08:00","updated_at":"2025-06-26T14:42:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127","variant_ids":[43496942239843]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-C134","featured_media":{"alt":null,"id":25742248149091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05ec3139d185e8cd6ce9f20010a207b257dcc39.webp?v=1750920123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a7b4c829fb63cc55c9d50f9cc86bb720c04f72.webp?v=1750920124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925af8359ea73cdd082c7348abbd4505acdfc264.webp?v=1750920124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97eca1e61f09659b1f99d71d6777da26d69d265.webp?v=1750920125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0307682274bcd24b20c7b26a9e054eda73a9f1ad.webp?v=1750920126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89076663cbbfc863df4cdd142ae82c38ce75a089.webp?v=1750920126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f3d844018147294e0ce72758e45efa21274ae3.webp?v=1750920127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b28c8d78ccc465b4e0205fc33a4eca2d3bbe917.webp?v=1750920128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b8a4bf69a628e7f7087c7ecd05e977c53f2ed7.webp?v=1750920128"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","options":["color"],"media":[{"alt":null,"id":25742246051939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","width":2000},{"alt":null,"id":25742246346851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05ec3139d185e8cd6ce9f20010a207b257dcc39.webp?v=1750920123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05ec3139d185e8cd6ce9f20010a207b257dcc39.webp?v=1750920123","width":2000},{"alt":null,"id":25742246608995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a7b4c829fb63cc55c9d50f9cc86bb720c04f72.webp?v=1750920124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a7b4c829fb63cc55c9d50f9cc86bb720c04f72.webp?v=1750920124","width":2000},{"alt":null,"id":25742247034979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925af8359ea73cdd082c7348abbd4505acdfc264.webp?v=1750920124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925af8359ea73cdd082c7348abbd4505acdfc264.webp?v=1750920124","width":2000},{"alt":null,"id":25742247166051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97eca1e61f09659b1f99d71d6777da26d69d265.webp?v=1750920125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97eca1e61f09659b1f99d71d6777da26d69d265.webp?v=1750920125","width":2000},{"alt":null,"id":25742247559267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0307682274bcd24b20c7b26a9e054eda73a9f1ad.webp?v=1750920126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0307682274bcd24b20c7b26a9e054eda73a9f1ad.webp?v=1750920126","width":2000},{"alt":null,"id":25742247821411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89076663cbbfc863df4cdd142ae82c38ce75a089.webp?v=1750920126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89076663cbbfc863df4cdd142ae82c38ce75a089.webp?v=1750920126","width":2000},{"alt":null,"id":25742248149091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127","width":2000},{"alt":null,"id":25742248509539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f3d844018147294e0ce72758e45efa21274ae3.webp?v=1750920127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f3d844018147294e0ce72758e45efa21274ae3.webp?v=1750920127","width":2000},{"alt":null,"id":25742248706147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b28c8d78ccc465b4e0205fc33a4eca2d3bbe917.webp?v=1750920128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b28c8d78ccc465b4e0205fc33a4eca2d3bbe917.webp?v=1750920128","width":2000},{"alt":null,"id":25742248837219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b8a4bf69a628e7f7087c7ecd05e977c53f2ed7.webp?v=1750920128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b8a4bf69a628e7f7087c7ecd05e977c53f2ed7.webp?v=1750920128","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43496942207075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-C134","requires_shipping":true,"taxable":true,"featured_image":{"id":34081053442147,"product_id":7827151716451,"position":1,"created_at":"2025-06-26T14:42:01+08:00","updated_at":"2025-06-26T14:42:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","variant_ids":[43496942207075]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-C134","featured_media":{"alt":null,"id":25742246051939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43496942239843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-C134","requires_shipping":true,"taxable":true,"featured_image":{"id":34081057276003,"product_id":7827151716451,"position":8,"created_at":"2025-06-26T14:42:05+08:00","updated_at":"2025-06-26T14:42:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127","variant_ids":[43496942239843]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-C134","featured_media":{"alt":null,"id":25742248149091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3eaf4138ecfc0c9fa89179e1ed3ff266938c55.webp?v=1750920127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43496942207075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-C134","requires_shipping":true,"taxable":true,"featured_image":{"id":34081053442147,"product_id":7827151716451,"position":1,"created_at":"2025-06-26T14:42:01+08:00","updated_at":"2025-06-26T14:42:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123","variant_ids":[43496942207075]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 一團一團 溫柔紅韻 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-C134","featured_media":{"alt":null,"id":25742246051939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcdf323f2bd59cac707496bfa22bcf5dd970683.webp?v=1750920123"}},"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: "停產" }