$product = {"id":7815636123747,"title":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服","handle":"iphone-14-pro-max-jellytint-magsafe-bumper-crossover-design-eg08","description":null,"published_at":"2025-06-11T15:22:07+08:00","created_at":"2025-06-11T14:28:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 14 Pro Max","merge","reseller-littlepopcorn"],"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":43444894564451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012040429667,"product_id":7815636123747,"position":14,"created_at":"2025-06-12T10:05:36+08:00","updated_at":"2025-06-12T10:05:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938","variant_ids":[43444894564451]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服 - 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":"MCN012630G-EG08","featured_media":{"alt":null,"id":25692740092003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444896563299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012041936995,"product_id":7815636123747,"position":16,"created_at":"2025-06-12T10:05:37+08:00","updated_at":"2025-06-12T10:05:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939","variant_ids":[43444896563299]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-EG08","featured_media":{"alt":null,"id":25692740780131,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756.webp?v=1749623301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af.webp?v=1749623302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a.webp?v=1749623302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6.webp?v=1749623303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_7d0b35d7-d484-4fd7-81b5-38a0e0257ace.webp?v=1749624567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_dbc0f4e8-b173-4cb0-bbe2-f5197ebf503d.webp?v=1749624568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_35ac59c2-18bf-4fac-9faf-ef1353f2442e.webp?v=1749624568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_f49419a8-1b28-4964-9417-5bac18ed7726.webp?v=1749624569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_36f2a780-0315-4ae9-a578-aaeb9f6e7f6c.webp?v=1749625205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_d8179249-9254-4636-9b65-dc66b1dad78d.webp?v=1749625206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_2486d76c-b2fa-4a7e-8ab5-34844d9b0e15.webp?v=1749625206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_15af3e4c-58aa-4d33-bc9d-d3e9982266bd.webp?v=1749625207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_082995c5-e7b2-41ce-8228-fd3f67213404.webp?v=1749693937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_c73ab344-0198-40a4-950e-cb6ed52da1c4.webp?v=1749693938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756.webp?v=1749623301","options":["color"],"media":[{"alt":null,"id":25689558483043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756.webp?v=1749623301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756.webp?v=1749623301","width":2000},{"alt":null,"id":25689558679651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af.webp?v=1749623302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af.webp?v=1749623302","width":2000},{"alt":null,"id":25689558909027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a.webp?v=1749623302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a.webp?v=1749623302","width":2000},{"alt":null,"id":25689559105635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6.webp?v=1749623303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6.webp?v=1749623303","width":2000},{"alt":null,"id":25689769574499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_7d0b35d7-d484-4fd7-81b5-38a0e0257ace.webp?v=1749624567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_7d0b35d7-d484-4fd7-81b5-38a0e0257ace.webp?v=1749624567","width":2000},{"alt":null,"id":25689769836643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_dbc0f4e8-b173-4cb0-bbe2-f5197ebf503d.webp?v=1749624568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_dbc0f4e8-b173-4cb0-bbe2-f5197ebf503d.webp?v=1749624568","width":2000},{"alt":null,"id":25689769967715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_35ac59c2-18bf-4fac-9faf-ef1353f2442e.webp?v=1749624568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_35ac59c2-18bf-4fac-9faf-ef1353f2442e.webp?v=1749624568","width":2000},{"alt":null,"id":25689770066019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_f49419a8-1b28-4964-9417-5bac18ed7726.webp?v=1749624569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_f49419a8-1b28-4964-9417-5bac18ed7726.webp?v=1749624569","width":2000},{"alt":null,"id":25689894060131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_36f2a780-0315-4ae9-a578-aaeb9f6e7f6c.webp?v=1749625205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_36f2a780-0315-4ae9-a578-aaeb9f6e7f6c.webp?v=1749625205","width":2000},{"alt":null,"id":25689894256739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_d8179249-9254-4636-9b65-dc66b1dad78d.webp?v=1749625206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_d8179249-9254-4636-9b65-dc66b1dad78d.webp?v=1749625206","width":2000},{"alt":null,"id":25689894551651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_2486d76c-b2fa-4a7e-8ab5-34844d9b0e15.webp?v=1749625206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_2486d76c-b2fa-4a7e-8ab5-34844d9b0e15.webp?v=1749625206","width":2000},{"alt":null,"id":25689894813795,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_15af3e4c-58aa-4d33-bc9d-d3e9982266bd.webp?v=1749625207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_15af3e4c-58aa-4d33-bc9d-d3e9982266bd.webp?v=1749625207","width":2000},{"alt":null,"id":25692739764323,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_082995c5-e7b2-41ce-8228-fd3f67213404.webp?v=1749693937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aefb47889f71e44a59965935fa4b822984561756_082995c5-e7b2-41ce-8228-fd3f67213404.webp?v=1749693937","width":2000},{"alt":null,"id":25692740092003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938","width":2000},{"alt":null,"id":25692740419683,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_c73ab344-0198-40a4-950e-cb6ed52da1c4.webp?v=1749693938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c37af6b1f6c4340057247be75cb2bc6f2f7de6_c73ab344-0198-40a4-950e-cb6ed52da1c4.webp?v=1749693938","width":2000},{"alt":null,"id":25692740780131,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444894564451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012040429667,"product_id":7815636123747,"position":14,"created_at":"2025-06-12T10:05:36+08:00","updated_at":"2025-06-12T10:05:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938","variant_ids":[43444894564451]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服 - 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":"MCN012630G-EG08","featured_media":{"alt":null,"id":25692740092003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444896563299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012041936995,"product_id":7815636123747,"position":16,"created_at":"2025-06-12T10:05:37+08:00","updated_at":"2025-06-12T10:05:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939","variant_ids":[43444896563299]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-EG08","featured_media":{"alt":null,"id":25692740780131,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fde8c65d78b2310a1cd95e23e804f7793bb6af_76fbca2a-cd01-41ca-9e7e-14f35b63c5d3.webp?v=1749693939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444894564451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012040429667,"product_id":7815636123747,"position":14,"created_at":"2025-06-12T10:05:36+08:00","updated_at":"2025-06-12T10:05:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938","variant_ids":[43444894564451]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 花花禮服 - 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":"MCN012630G-EG08","featured_media":{"alt":null,"id":25692740092003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b484098db792ea7a4b0c1bc6272d8b8c9549a7a_429d21f0-79b1-4c70-8397-4c401f60c7cd.webp?v=1749693938"}},"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: "停產" }