$product = {"id":7920526753891,"title":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁","handle":"iphone-air-jellytint-magsafe-with-capture-button-ptt11","description":null,"published_at":"2025-11-10T16:36:05+08:00","created_at":"2025-11-10T15:02:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone Air","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":43828862320739,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013514M-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125813047395,"product_id":7920526753891,"position":11,"created_at":"2026-06-29T16:18:26+08:00","updated_at":"2026-06-29T16:18:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108","variant_ids":[43828862320739]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013514M-PTT11","featured_media":{"alt":null,"id":27631054848099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828864221283,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013510G-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125813473379,"product_id":7920526753891,"position":12,"created_at":"2026-06-29T16:18:28+08:00","updated_at":"2026-06-29T16:18:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110","variant_ids":[43828864221283]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013510G-PTT11","featured_media":{"alt":null,"id":27631055274083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828864254051,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013514L-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125812621411,"product_id":7920526753891,"position":10,"created_at":"2026-06-29T16:18:25+08:00","updated_at":"2026-06-29T16:18:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107","variant_ids":[43828864254051]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013514L-PTT11","featured_media":{"alt":null,"id":27631054454883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41.webp?v=1762758171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970.webp?v=1762758172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234.webp?v=1762758173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_5930c51a-9882-4a18-8555-baa9b33f290d.webp?v=1782268137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_eca13b34-0cf3-4ca8-9c93-b6ace87e15b7.webp?v=1782268138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_179b7b1c-6879-47f0-ba39-1a72e582a02f.webp?v=1782268139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_c15f9247-f082-467e-b5ff-d27b5f91b4e1.webp?v=1782292585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_f168c5ed-e960-4dc7-962d-97b4671a4c30.webp?v=1782292585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_2b20a8a1-282d-435d-aeef-d1d9bc48adcb.webp?v=1782292585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41.webp?v=1762758171","options":["color"],"media":[{"alt":null,"id":26347771232355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41.webp?v=1762758171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41.webp?v=1762758171","width":2000},{"alt":null,"id":26347771396195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970.webp?v=1762758172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970.webp?v=1762758172","width":2000},{"alt":null,"id":26347771756643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234.webp?v=1762758173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234.webp?v=1762758173","width":2000},{"alt":null,"id":27588291231843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_5930c51a-9882-4a18-8555-baa9b33f290d.webp?v=1782268137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_5930c51a-9882-4a18-8555-baa9b33f290d.webp?v=1782268137","width":2000},{"alt":null,"id":27588291788899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_eca13b34-0cf3-4ca8-9c93-b6ace87e15b7.webp?v=1782268138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_eca13b34-0cf3-4ca8-9c93-b6ace87e15b7.webp?v=1782268138","width":2000},{"alt":null,"id":27588292509795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_179b7b1c-6879-47f0-ba39-1a72e582a02f.webp?v=1782268139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_179b7b1c-6879-47f0-ba39-1a72e582a02f.webp?v=1782268139","width":2000},{"alt":null,"id":27594959224931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_c15f9247-f082-467e-b5ff-d27b5f91b4e1.webp?v=1782292585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_c15f9247-f082-467e-b5ff-d27b5f91b4e1.webp?v=1782292585","width":2000},{"alt":null,"id":27594960011363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_f168c5ed-e960-4dc7-962d-97b4671a4c30.webp?v=1782292585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_f168c5ed-e960-4dc7-962d-97b4671a4c30.webp?v=1782292585","width":2000},{"alt":null,"id":27594960863331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_2b20a8a1-282d-435d-aeef-d1d9bc48adcb.webp?v=1782292585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_2b20a8a1-282d-435d-aeef-d1d9bc48adcb.webp?v=1782292585","width":2000},{"alt":null,"id":27631054454883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107","width":2000},{"alt":null,"id":27631054848099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108","width":2000},{"alt":null,"id":27631055274083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828862320739,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013514M-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125813047395,"product_id":7920526753891,"position":11,"created_at":"2026-06-29T16:18:26+08:00","updated_at":"2026-06-29T16:18:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108","variant_ids":[43828862320739]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013514M-PTT11","featured_media":{"alt":null,"id":27631054848099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828864221283,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013510G-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125813473379,"product_id":7920526753891,"position":12,"created_at":"2026-06-29T16:18:28+08:00","updated_at":"2026-06-29T16:18:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110","variant_ids":[43828864221283]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013510G-PTT11","featured_media":{"alt":null,"id":27631055274083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3f510aa55a92f57c7809d74991217c4cab6970_9997d5b3-c4ab-47af-8222-a3d5cbaec1d5.webp?v=1782721110"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828864254051,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013514L-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125812621411,"product_id":7920526753891,"position":10,"created_at":"2026-06-29T16:18:25+08:00","updated_at":"2026-06-29T16:18:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107","variant_ids":[43828864254051]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013514L-PTT11","featured_media":{"alt":null,"id":27631054454883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1ec38a2f81b7c935555ac676a84b648fb1cd41_81ecb3b7-cc83-4af3-ac2d-64b03369c051.webp?v=1782721107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828862320739,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013514M-PTT11","requires_shipping":true,"taxable":true,"featured_image":{"id":36125813047395,"product_id":7920526753891,"position":11,"created_at":"2026-06-29T16:18:26+08:00","updated_at":"2026-06-29T16:18:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108","variant_ids":[43828862320739]},"available":true,"name":"iPhone Air Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-虎杖悠仁 - 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":"MJB013514M-PTT11","featured_media":{"alt":null,"id":27631054848099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2522f635072b72442de7c41aba2f780de7eb9234_b829dac8-a493-44fa-b8dd-d56003e1055f.webp?v=1782721108"}},"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: "停產" }