$product = {"id":7946668507235,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 五星吉海底餐廳","handle":"iphone-12-pro-max-mod-nx-magsafe-it37","description":null,"published_at":"2025-12-29T15:14:26+08:00","created_at":"2025-12-29T15:08:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 12 Pro Max","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":43923607617635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":35037367566435,"product_id":7946668507235,"position":3,"created_at":"2025-12-29T15:09:17+08:00","updated_at":"2025-12-29T15:09:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160","variant_ids":[43923607617635]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-IT37","featured_media":{"alt":null,"id":26595954491491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d4025d087cfa192658977ac2f41ae6e197cd5b_86315270-8456-4961-bacb-4581a2e86872.webp?v=1766992159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0730aff90d6f937860e4d3c0deca9e2001e13d11_4c143ce2-ed8b-4348-8f77-678bf3a159ba.webp?v=1766992159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3f8ad2c6317cb49cf4957b90bd15d5e40ac8ac_014f1202-0662-4f36-a4fb-79d7d56784a2.webp?v=1766992160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185880e78d7e6884e57e27e30365c339130a5ad3_358925fd-78b8-4f82-b619-e2a702b568b5.webp?v=1766992161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51735b6840c5e4cff582107e60424f277595b7a_301491fa-26aa-4a4d-ba41-41168159ad45.webp?v=1766992161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c1fb1abff84e8b41adc1661af1edcc9f5a0b1_d2532618-62ed-4462-b92e-42e19ecb8c03.webp?v=1766992161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e164194c5533643dc68c91b43a806f66d4312cd_42c5bf93-0d07-45bc-89ff-ab64f9deffc0.webp?v=1766992162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7bef684a0343f27930b91b50793a262a9ea7c8_6e9f0644-7111-4442-adb2-307ac6f133ec.webp?v=1766992162"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d4025d087cfa192658977ac2f41ae6e197cd5b_86315270-8456-4961-bacb-4581a2e86872.webp?v=1766992159","options":["color"],"media":[{"alt":null,"id":26595954032739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d4025d087cfa192658977ac2f41ae6e197cd5b_86315270-8456-4961-bacb-4581a2e86872.webp?v=1766992159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d4025d087cfa192658977ac2f41ae6e197cd5b_86315270-8456-4961-bacb-4581a2e86872.webp?v=1766992159","width":2000},{"alt":null,"id":26595954229347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0730aff90d6f937860e4d3c0deca9e2001e13d11_4c143ce2-ed8b-4348-8f77-678bf3a159ba.webp?v=1766992159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0730aff90d6f937860e4d3c0deca9e2001e13d11_4c143ce2-ed8b-4348-8f77-678bf3a159ba.webp?v=1766992159","width":2000},{"alt":null,"id":26595954491491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160","width":2000},{"alt":null,"id":26595954884707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3f8ad2c6317cb49cf4957b90bd15d5e40ac8ac_014f1202-0662-4f36-a4fb-79d7d56784a2.webp?v=1766992160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3f8ad2c6317cb49cf4957b90bd15d5e40ac8ac_014f1202-0662-4f36-a4fb-79d7d56784a2.webp?v=1766992160","width":2000},{"alt":null,"id":26595955310691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185880e78d7e6884e57e27e30365c339130a5ad3_358925fd-78b8-4f82-b619-e2a702b568b5.webp?v=1766992161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185880e78d7e6884e57e27e30365c339130a5ad3_358925fd-78b8-4f82-b619-e2a702b568b5.webp?v=1766992161","width":2000},{"alt":null,"id":26595955703907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51735b6840c5e4cff582107e60424f277595b7a_301491fa-26aa-4a4d-ba41-41168159ad45.webp?v=1766992161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51735b6840c5e4cff582107e60424f277595b7a_301491fa-26aa-4a4d-ba41-41168159ad45.webp?v=1766992161","width":2000},{"alt":null,"id":26595956031587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c1fb1abff84e8b41adc1661af1edcc9f5a0b1_d2532618-62ed-4462-b92e-42e19ecb8c03.webp?v=1766992161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c1fb1abff84e8b41adc1661af1edcc9f5a0b1_d2532618-62ed-4462-b92e-42e19ecb8c03.webp?v=1766992161","width":2000},{"alt":null,"id":26595956523107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e164194c5533643dc68c91b43a806f66d4312cd_42c5bf93-0d07-45bc-89ff-ab64f9deffc0.webp?v=1766992162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e164194c5533643dc68c91b43a806f66d4312cd_42c5bf93-0d07-45bc-89ff-ab64f9deffc0.webp?v=1766992162","width":2000},{"alt":null,"id":26595956818019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7bef684a0343f27930b91b50793a262a9ea7c8_6e9f0644-7111-4442-adb2-307ac6f133ec.webp?v=1766992162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7bef684a0343f27930b91b50793a262a9ea7c8_6e9f0644-7111-4442-adb2-307ac6f133ec.webp?v=1766992162","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43923607617635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":35037367566435,"product_id":7946668507235,"position":3,"created_at":"2025-12-29T15:09:17+08:00","updated_at":"2025-12-29T15:09:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160","variant_ids":[43923607617635]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-IT37","featured_media":{"alt":null,"id":26595954491491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43923607617635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":35037367566435,"product_id":7946668507235,"position":3,"created_at":"2025-12-29T15:09:17+08:00","updated_at":"2025-12-29T15:09:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160","variant_ids":[43923607617635]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-IT37","featured_media":{"alt":null,"id":26595954491491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b86b67bc2b388c70bdd4b2c72e95c995edab99_33866009-b3da-4bc1-9985-faf4c805bf0d.webp?v=1766992160"}},"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: "停產" }