$product = {"id":7903447187555,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域","handle":"iphone-14-pro-mod-nx-magsafe-printable-it38","description":null,"published_at":"2025-10-20T09:39:59+08:00","created_at":"2025-10-20T09:31:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 14 Pro","merge","reseller-godgwawa"],"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":43786686300259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672990814307,"product_id":7903447187555,"position":12,"created_at":"2025-10-20T09:31:09+08:00","updated_at":"2025-10-20T09:31:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871","variant_ids":[43786686300259]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-IT38","featured_media":{"alt":null,"id":26242249752675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786686333027,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672988946531,"product_id":7903447187555,"position":5,"created_at":"2025-10-20T09:31:04+08:00","updated_at":"2025-10-20T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866","variant_ids":[43786686333027]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - 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":"MPB01262J5-IT38","featured_media":{"alt":null,"id":26242247983203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786686365795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672989306979,"product_id":7903447187555,"position":6,"created_at":"2025-10-20T09:31:05+08:00","updated_at":"2025-10-20T09:31:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867","variant_ids":[43786686365795]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-IT38","featured_media":{"alt":null,"id":26242248245347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1097fadfd8426e7daa901bd325bd81d39b9ef10.webp?v=1760923863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59188af7fa75f1e103c266fbfc0a372ecb52fc6d.webp?v=1760923864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec86e60cb8c1edc4e31444246ea4900aec7584.webp?v=1760923865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b968bc0e41530d80f24f0f9ea343968fbad8692.webp?v=1760923865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4321eeb9c4bb99515962b41bb31f06be68924076.webp?v=1760923867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c24b779b3a8a06691eb785873c416b422b3a31c.webp?v=1760923869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b33890738443629ae2a0243e6c165d4ca8b93.webp?v=1760923869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee652fb9d033afc4dfaedbc6e2811a9cec000164.webp?v=1760923870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5016f42becf94cf93b77395f9b4a343c221f5d3e.webp?v=1760923870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1097fadfd8426e7daa901bd325bd81d39b9ef10.webp?v=1760923863","options":["color"],"media":[{"alt":null,"id":26242246967395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1097fadfd8426e7daa901bd325bd81d39b9ef10.webp?v=1760923863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1097fadfd8426e7daa901bd325bd81d39b9ef10.webp?v=1760923863","width":2000},{"alt":null,"id":26242247164003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59188af7fa75f1e103c266fbfc0a372ecb52fc6d.webp?v=1760923864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59188af7fa75f1e103c266fbfc0a372ecb52fc6d.webp?v=1760923864","width":2000},{"alt":null,"id":26242247393379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec86e60cb8c1edc4e31444246ea4900aec7584.webp?v=1760923865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec86e60cb8c1edc4e31444246ea4900aec7584.webp?v=1760923865","width":2000},{"alt":null,"id":26242247655523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b968bc0e41530d80f24f0f9ea343968fbad8692.webp?v=1760923865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b968bc0e41530d80f24f0f9ea343968fbad8692.webp?v=1760923865","width":2000},{"alt":null,"id":26242247983203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866","width":2000},{"alt":null,"id":26242248245347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867","width":2000},{"alt":null,"id":26242248540259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4321eeb9c4bb99515962b41bb31f06be68924076.webp?v=1760923867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4321eeb9c4bb99515962b41bb31f06be68924076.webp?v=1760923867","width":2000},{"alt":null,"id":26242248835171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c24b779b3a8a06691eb785873c416b422b3a31c.webp?v=1760923869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c24b779b3a8a06691eb785873c416b422b3a31c.webp?v=1760923869","width":2000},{"alt":null,"id":26242249097315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b33890738443629ae2a0243e6c165d4ca8b93.webp?v=1760923869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b33890738443629ae2a0243e6c165d4ca8b93.webp?v=1760923869","width":2000},{"alt":null,"id":26242249359459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee652fb9d033afc4dfaedbc6e2811a9cec000164.webp?v=1760923870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee652fb9d033afc4dfaedbc6e2811a9cec000164.webp?v=1760923870","width":2000},{"alt":null,"id":26242249556067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5016f42becf94cf93b77395f9b4a343c221f5d3e.webp?v=1760923870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5016f42becf94cf93b77395f9b4a343c221f5d3e.webp?v=1760923870","width":2000},{"alt":null,"id":26242249752675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786686300259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672990814307,"product_id":7903447187555,"position":12,"created_at":"2025-10-20T09:31:09+08:00","updated_at":"2025-10-20T09:31:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871","variant_ids":[43786686300259]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-IT38","featured_media":{"alt":null,"id":26242249752675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786686333027,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672988946531,"product_id":7903447187555,"position":5,"created_at":"2025-10-20T09:31:04+08:00","updated_at":"2025-10-20T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866","variant_ids":[43786686333027]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - 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":"MPB01262J5-IT38","featured_media":{"alt":null,"id":26242247983203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/141b2e4e28a864ee34bb03c427e99b512533c861.webp?v=1760923866"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786686365795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672989306979,"product_id":7903447187555,"position":6,"created_at":"2025-10-20T09:31:05+08:00","updated_at":"2025-10-20T09:31:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867","variant_ids":[43786686365795]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-IT38","featured_media":{"alt":null,"id":26242248245347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a9cf7e02b209113a626626129ad17750f3d726.webp?v=1760923867"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786686300259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672990814307,"product_id":7903447187555,"position":12,"created_at":"2025-10-20T09:31:09+08:00","updated_at":"2025-10-20T09:31:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871","variant_ids":[43786686300259]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-IT38","featured_media":{"alt":null,"id":26242249752675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b6c8cbf818a8293efac5219c3afae00406b700.webp?v=1760923871"}},"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: "停產" }