$product = {"id":7920652943459,"title":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合","handle":"iphone-17-pro-max-jellytint-magsafe-with-capture-button-ptt19","description":null,"published_at":"2025-11-10T16:16:15+08:00","created_at":"2025-11-10T16:05:04+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 17 Pro Max","merge","reseller-jujutsu-kaisen"],"price":148000,"price_min":148000,"price_max":148000,"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":43829317959779,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601169507,"product_id":7920652943459,"position":11,"created_at":"2026-06-29T16:08:05+08:00","updated_at":"2026-06-29T16:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487","variant_ids":[43829317959779]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT19","featured_media":{"alt":null,"id":27630843199587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829319270499,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601366115,"product_id":7920652943459,"position":12,"created_at":"2026-06-29T16:08:06+08:00","updated_at":"2026-06-29T16:08:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488","variant_ids":[43829319270499]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-PTT19","featured_media":{"alt":null,"id":27630843363427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829319303267,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013530G-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601005667,"product_id":7920652943459,"position":10,"created_at":"2026-06-29T16:08:04+08:00","updated_at":"2026-06-29T16:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487","variant_ids":[43829319303267]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013530G-PTT19","featured_media":{"alt":null,"id":27630842970211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142.webp?v=1762761910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def.webp?v=1762761911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947.webp?v=1762761912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_a1e97cb9-58ac-40ed-8459-ff510feb7ce9.webp?v=1782267510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_76e6b105-a778-43e6-ab7d-88a80e39958f.webp?v=1782267510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_09f1b76c-da44-4ee3-af41-82f3e44a68fc.webp?v=1782267511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_bb9265c3-c393-4aa5-84a0-f2611aec3d77.webp?v=1782292343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_0de3cda8-ea2b-46a0-b8ec-e8c3d08ac78c.webp?v=1782292343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_3de82913-3b02-4cb4-bdb2-7cedc1d8f0ad.webp?v=1782292344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142.webp?v=1762761910","options":["color"],"media":[{"alt":null,"id":26348305023075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142.webp?v=1762761910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142.webp?v=1762761910","width":2000},{"alt":null,"id":26348305252451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def.webp?v=1762761911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def.webp?v=1762761911","width":2000},{"alt":null,"id":26348305350755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947.webp?v=1762761912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947.webp?v=1762761912","width":2000},{"alt":null,"id":27588003201123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_a1e97cb9-58ac-40ed-8459-ff510feb7ce9.webp?v=1782267510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_a1e97cb9-58ac-40ed-8459-ff510feb7ce9.webp?v=1782267510","width":2000},{"alt":null,"id":27588003397731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_76e6b105-a778-43e6-ab7d-88a80e39958f.webp?v=1782267510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_76e6b105-a778-43e6-ab7d-88a80e39958f.webp?v=1782267510","width":2000},{"alt":null,"id":27588003561571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_09f1b76c-da44-4ee3-af41-82f3e44a68fc.webp?v=1782267511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_09f1b76c-da44-4ee3-af41-82f3e44a68fc.webp?v=1782267511","width":2000},{"alt":null,"id":27594879336547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_bb9265c3-c393-4aa5-84a0-f2611aec3d77.webp?v=1782292343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_bb9265c3-c393-4aa5-84a0-f2611aec3d77.webp?v=1782292343","width":2000},{"alt":null,"id":27594879500387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_0de3cda8-ea2b-46a0-b8ec-e8c3d08ac78c.webp?v=1782292343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_0de3cda8-ea2b-46a0-b8ec-e8c3d08ac78c.webp?v=1782292343","width":2000},{"alt":null,"id":27594879991907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_3de82913-3b02-4cb4-bdb2-7cedc1d8f0ad.webp?v=1782292344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_3de82913-3b02-4cb4-bdb2-7cedc1d8f0ad.webp?v=1782292344","width":2000},{"alt":null,"id":27630842970211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487","width":2000},{"alt":null,"id":27630843199587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487","width":2000},{"alt":null,"id":27630843363427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43829317959779,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601169507,"product_id":7920652943459,"position":11,"created_at":"2026-06-29T16:08:05+08:00","updated_at":"2026-06-29T16:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487","variant_ids":[43829317959779]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT19","featured_media":{"alt":null,"id":27630843199587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829319270499,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601366115,"product_id":7920652943459,"position":12,"created_at":"2026-06-29T16:08:06+08:00","updated_at":"2026-06-29T16:08:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488","variant_ids":[43829319270499]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-PTT19","featured_media":{"alt":null,"id":27630843363427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6196dd58d0856346f70274bea7bedef0c5d947_3b6c5a27-5360-45ae-8fb1-ce7f1bd6a48a.webp?v=1782720488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829319303267,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013530G-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601005667,"product_id":7920652943459,"position":10,"created_at":"2026-06-29T16:08:04+08:00","updated_at":"2026-06-29T16:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487","variant_ids":[43829319303267]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013530G-PTT19","featured_media":{"alt":null,"id":27630842970211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f80a5cd5fb8e1f3577bdf0f127245259993def_07b1272b-42cc-4b64-bfce-64117872e413.webp?v=1782720487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43829317959779,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125601169507,"product_id":7920652943459,"position":11,"created_at":"2026-06-29T16:08:05+08:00","updated_at":"2026-06-29T16:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487","variant_ids":[43829317959779]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變Q版系列-全員集合 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT19","featured_media":{"alt":null,"id":27630843199587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7e4e626c91e1d65b260a9b5dd592c614111142_f8b6bd0c-acd4-4699-aa97-9b7958113f54.webp?v=1782720487"}},"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: "停產" }