$product = {"id":7903388729443,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉","handle":"iphone-14-pro-mod-nx-magsafe-printable-it32","description":null,"published_at":"2025-10-20T09:50:12+08:00","created_at":"2025-10-20T09:18:02+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":43786477928547,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672706748515,"product_id":7903388729443,"position":10,"created_at":"2025-10-20T09:18:18+08:00","updated_at":"2025-10-20T09:18:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101","variant_ids":[43786477928547]},"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-IT32","featured_media":{"alt":null,"id":26241965555811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786477961315,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672705372259,"product_id":7903388729443,"position":7,"created_at":"2025-10-20T09:18:16+08:00","updated_at":"2025-10-20T09:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098","variant_ids":[43786477961315]},"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-IT32","featured_media":{"alt":null,"id":26241964310627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786477994083,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672708452451,"product_id":7903388729443,"position":12,"created_at":"2025-10-20T09:18:20+08:00","updated_at":"2025-10-20T09:18:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101","variant_ids":[43786477994083]},"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-IT32","featured_media":{"alt":null,"id":26241967423587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49cea7dbdd01c8171e1eebb9ec7c23b0cc557310.webp?v=1760923094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d316c82786a560ba05691e0c84de2330c3a7eb3.webp?v=1760923095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775293fa82f2d51b089bdcef113d44c5a5c6d5ec.webp?v=1760923096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d5ed1d81b37dfe485b9daef45153fc42a41ee4.webp?v=1760923096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c814d9877b72ca04ac800bc5e434f1da2841a85.webp?v=1760923097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721e9cbba72af34bd48b932cdda317c64902e501.webp?v=1760923098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd3eda477f464d4a5b2b7534dd09bdea49388c.webp?v=1760923099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7469f6edc9ad97812749e77b59d48b75420723f9.webp?v=1760923100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270320cbc6b17f37e5d0724e12e7468532c31cfd.webp?v=1760923101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49cea7dbdd01c8171e1eebb9ec7c23b0cc557310.webp?v=1760923094","options":["color"],"media":[{"alt":null,"id":26241962344547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49cea7dbdd01c8171e1eebb9ec7c23b0cc557310.webp?v=1760923094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49cea7dbdd01c8171e1eebb9ec7c23b0cc557310.webp?v=1760923094","width":2000},{"alt":null,"id":26241962508387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d316c82786a560ba05691e0c84de2330c3a7eb3.webp?v=1760923095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d316c82786a560ba05691e0c84de2330c3a7eb3.webp?v=1760923095","width":2000},{"alt":null,"id":26241962606691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775293fa82f2d51b089bdcef113d44c5a5c6d5ec.webp?v=1760923096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775293fa82f2d51b089bdcef113d44c5a5c6d5ec.webp?v=1760923096","width":2000},{"alt":null,"id":26241963327587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d5ed1d81b37dfe485b9daef45153fc42a41ee4.webp?v=1760923096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d5ed1d81b37dfe485b9daef45153fc42a41ee4.webp?v=1760923096","width":2000},{"alt":null,"id":26241963720803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c814d9877b72ca04ac800bc5e434f1da2841a85.webp?v=1760923097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c814d9877b72ca04ac800bc5e434f1da2841a85.webp?v=1760923097","width":2000},{"alt":null,"id":26241963982947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721e9cbba72af34bd48b932cdda317c64902e501.webp?v=1760923098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/721e9cbba72af34bd48b932cdda317c64902e501.webp?v=1760923098","width":2000},{"alt":null,"id":26241964310627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098","width":2000},{"alt":null,"id":26241964736611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd3eda477f464d4a5b2b7534dd09bdea49388c.webp?v=1760923099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd3eda477f464d4a5b2b7534dd09bdea49388c.webp?v=1760923099","width":2000},{"alt":null,"id":26241965129827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7469f6edc9ad97812749e77b59d48b75420723f9.webp?v=1760923100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7469f6edc9ad97812749e77b59d48b75420723f9.webp?v=1760923100","width":2000},{"alt":null,"id":26241965555811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101","width":2000},{"alt":null,"id":26241966145635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270320cbc6b17f37e5d0724e12e7468532c31cfd.webp?v=1760923101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270320cbc6b17f37e5d0724e12e7468532c31cfd.webp?v=1760923101","width":2000},{"alt":null,"id":26241967423587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786477928547,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672706748515,"product_id":7903388729443,"position":10,"created_at":"2025-10-20T09:18:18+08:00","updated_at":"2025-10-20T09:18:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101","variant_ids":[43786477928547]},"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-IT32","featured_media":{"alt":null,"id":26241965555811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786477961315,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672705372259,"product_id":7903388729443,"position":7,"created_at":"2025-10-20T09:18:16+08:00","updated_at":"2025-10-20T09:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098","variant_ids":[43786477961315]},"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-IT32","featured_media":{"alt":null,"id":26241964310627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39729b92a7ea7c3fab859bb614964a09d8f4eeef.webp?v=1760923098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786477994083,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672708452451,"product_id":7903388729443,"position":12,"created_at":"2025-10-20T09:18:20+08:00","updated_at":"2025-10-20T09:18:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101","variant_ids":[43786477994083]},"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-IT32","featured_media":{"alt":null,"id":26241967423587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bfa2f3f76dd1db66fd7f6da681485bb0a27bda.webp?v=1760923101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786477928547,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672706748515,"product_id":7903388729443,"position":10,"created_at":"2025-10-20T09:18:18+08:00","updated_at":"2025-10-20T09:18:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101","variant_ids":[43786477928547]},"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-IT32","featured_media":{"alt":null,"id":26241965555811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5474183cfaefc238bc0d5fe7d70a214ed23eba.webp?v=1760923101"}},"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: "停產" }