$product = {"id":7942282182755,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Seungyoun Kim 紅綠狗狗朋友 Chamo \u0026 Mile","handle":"iphone-14-plus-mod-nx-magsafe-seu05","description":null,"published_at":"2025-12-23T09:30:51+08:00","created_at":"2025-12-22T17:50:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-seungyounkim","device-iPhone 14 Plus","merge","reseller-seungyounkim"],"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":43904516391011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-SEU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34987812683875,"product_id":7942282182755,"position":11,"created_at":"2025-12-22T17:51:03+08:00","updated_at":"2025-12-22T17:51:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065","variant_ids":[43904516391011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Seungyoun Kim 紅綠狗狗朋友 Chamo \u0026 Mile - 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-SEU05","featured_media":{"alt":null,"id":26548828897379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cded5dd27f854815d8dbad759ea8482d13f5c22.webp?v=1766397061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aaf5809189d15ecc8d073af68ca4d5528483032.webp?v=1766397061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5148333316f0dc6d4d1cb1183b6b37696b37edea.webp?v=1766397062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f3ec014e5a3b8e82fe7bcd453a853f82490d33.webp?v=1766397062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721869ee9572ddbc8dfe8736242052b299ab8ab3.webp?v=1766397062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7cb5bc2d9ab6b8d6e79bae72a0c745b196dc253.webp?v=1766397063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfea7782cbe860860e9e137bae862a1fec8bf1b.webp?v=1766397063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5232971ac5e1f72cf407c2f4776cce64f1bc72.webp?v=1766397063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6c1d5910e1d2280afbafa32c34a32173855286.webp?v=1766397064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23f69211dad31ac3decafd41f5f9290c3e17cea4.webp?v=1766397064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7de76dec94aa5add6d5323e82f1f6bdae4dbbb0.webp?v=1766397065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7460815614949aa7a2a97efea6b9f6e8d363d368.webp?v=1766397066"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cded5dd27f854815d8dbad759ea8482d13f5c22.webp?v=1766397061","options":["color"],"media":[{"alt":null,"id":26548826898531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cded5dd27f854815d8dbad759ea8482d13f5c22.webp?v=1766397061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cded5dd27f854815d8dbad759ea8482d13f5c22.webp?v=1766397061","width":2000},{"alt":null,"id":26548827062371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aaf5809189d15ecc8d073af68ca4d5528483032.webp?v=1766397061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aaf5809189d15ecc8d073af68ca4d5528483032.webp?v=1766397061","width":2000},{"alt":null,"id":26548827258979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5148333316f0dc6d4d1cb1183b6b37696b37edea.webp?v=1766397062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5148333316f0dc6d4d1cb1183b6b37696b37edea.webp?v=1766397062","width":2000},{"alt":null,"id":26548827357283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f3ec014e5a3b8e82fe7bcd453a853f82490d33.webp?v=1766397062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f3ec014e5a3b8e82fe7bcd453a853f82490d33.webp?v=1766397062","width":2000},{"alt":null,"id":26548827488355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721869ee9572ddbc8dfe8736242052b299ab8ab3.webp?v=1766397062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721869ee9572ddbc8dfe8736242052b299ab8ab3.webp?v=1766397062","width":2000},{"alt":null,"id":26548827717731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7cb5bc2d9ab6b8d6e79bae72a0c745b196dc253.webp?v=1766397063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7cb5bc2d9ab6b8d6e79bae72a0c745b196dc253.webp?v=1766397063","width":2000},{"alt":null,"id":26548827881571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfea7782cbe860860e9e137bae862a1fec8bf1b.webp?v=1766397063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfea7782cbe860860e9e137bae862a1fec8bf1b.webp?v=1766397063","width":2000},{"alt":null,"id":26548828143715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5232971ac5e1f72cf407c2f4776cce64f1bc72.webp?v=1766397063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5232971ac5e1f72cf407c2f4776cce64f1bc72.webp?v=1766397063","width":2000},{"alt":null,"id":26548828405859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6c1d5910e1d2280afbafa32c34a32173855286.webp?v=1766397064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6c1d5910e1d2280afbafa32c34a32173855286.webp?v=1766397064","width":2000},{"alt":null,"id":26548828668003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23f69211dad31ac3decafd41f5f9290c3e17cea4.webp?v=1766397064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23f69211dad31ac3decafd41f5f9290c3e17cea4.webp?v=1766397064","width":2000},{"alt":null,"id":26548828897379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065","width":2000},{"alt":null,"id":26548829159523,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7de76dec94aa5add6d5323e82f1f6bdae4dbbb0.webp?v=1766397065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7de76dec94aa5add6d5323e82f1f6bdae4dbbb0.webp?v=1766397065","width":2000},{"alt":null,"id":26548829388899,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7460815614949aa7a2a97efea6b9f6e8d363d368.webp?v=1766397066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7460815614949aa7a2a97efea6b9f6e8d363d368.webp?v=1766397066","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43904516391011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-SEU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34987812683875,"product_id":7942282182755,"position":11,"created_at":"2025-12-22T17:51:03+08:00","updated_at":"2025-12-22T17:51:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065","variant_ids":[43904516391011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Seungyoun Kim 紅綠狗狗朋友 Chamo \u0026 Mile - 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-SEU05","featured_media":{"alt":null,"id":26548828897379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43904516391011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-SEU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34987812683875,"product_id":7942282182755,"position":11,"created_at":"2025-12-22T17:51:03+08:00","updated_at":"2025-12-22T17:51:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065","variant_ids":[43904516391011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Seungyoun Kim 紅綠狗狗朋友 Chamo \u0026 Mile - 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-SEU05","featured_media":{"alt":null,"id":26548828897379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a7ec11cc7052c020105c54dbe8ca91b2e55ab.webp?v=1766397065"}},"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: "停產" }