$product = {"id":7920533700707,"title":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠","handle":"iphone-15-pro-jellytint-ptt13","description":null,"published_at":"2025-11-10T16:35:15+08:00","created_at":"2025-11-10T15:04:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Pro","merge","reseller-jujutsu-kaisen"],"price":128000,"price_min":128000,"price_max":128000,"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":43828884045923,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168500835,"product_id":7920533700707,"position":13,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023","variant_ids":[43828884045923]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT13","featured_media":{"alt":null,"id":27630411284579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828884078691,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168042083,"product_id":7920533700707,"position":12,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021","variant_ids":[43828884078691]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PTT13","featured_media":{"alt":null,"id":27630410825827,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828884111459,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125167485027,"product_id":7920533700707,"position":11,"created_at":"2026-06-29T15:43:38+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021","variant_ids":[43828884111459]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PTT13","featured_media":{"alt":null,"id":27630410268771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2a37fe659e4a7d8280bce1eb10ce486e4a30c0.webp?v=1762758248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47.webp?v=1762758249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7.webp?v=1762758250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787.webp?v=1762758250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_9f35a5bf-df03-4ec4-ba58-60c51d386637.webp?v=1782266192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_aa005ff0-c59e-48be-bb45-dc3add0e7f28.webp?v=1782266192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_8f07e59e-59b1-43be-95f0-a68e229e6b56.webp?v=1782266194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_fe1bfd5f-29e1-420c-ab28-79c03ff23c14.webp?v=1782291765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_a7d157c6-ad0f-45d6-9295-2bf4a240d669.webp?v=1782291767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_76d2af87-75a3-4772-bc1f-b31d4f137113.webp?v=1782291767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2a37fe659e4a7d8280bce1eb10ce486e4a30c0.webp?v=1762758248","options":["color"],"media":[{"alt":null,"id":26347790139491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2a37fe659e4a7d8280bce1eb10ce486e4a30c0.webp?v=1762758248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2a37fe659e4a7d8280bce1eb10ce486e4a30c0.webp?v=1762758248","width":2000},{"alt":null,"id":26347790270563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47.webp?v=1762758249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47.webp?v=1762758249","width":2000},{"alt":null,"id":26347790467171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7.webp?v=1762758250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7.webp?v=1762758250","width":2000},{"alt":null,"id":26347790696547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787.webp?v=1762758250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787.webp?v=1762758250","width":2000},{"alt":null,"id":27587431596131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_9f35a5bf-df03-4ec4-ba58-60c51d386637.webp?v=1782266192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_9f35a5bf-df03-4ec4-ba58-60c51d386637.webp?v=1782266192","width":2000},{"alt":null,"id":27587432022115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_aa005ff0-c59e-48be-bb45-dc3add0e7f28.webp?v=1782266192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_aa005ff0-c59e-48be-bb45-dc3add0e7f28.webp?v=1782266192","width":2000},{"alt":null,"id":27587432743011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_8f07e59e-59b1-43be-95f0-a68e229e6b56.webp?v=1782266194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_8f07e59e-59b1-43be-95f0-a68e229e6b56.webp?v=1782266194","width":2000},{"alt":null,"id":27594725064803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_fe1bfd5f-29e1-420c-ab28-79c03ff23c14.webp?v=1782291765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_fe1bfd5f-29e1-420c-ab28-79c03ff23c14.webp?v=1782291765","width":2000},{"alt":null,"id":27594725654627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_a7d157c6-ad0f-45d6-9295-2bf4a240d669.webp?v=1782291767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_a7d157c6-ad0f-45d6-9295-2bf4a240d669.webp?v=1782291767","width":2000},{"alt":null,"id":27594726146147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_76d2af87-75a3-4772-bc1f-b31d4f137113.webp?v=1782291767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_76d2af87-75a3-4772-bc1f-b31d4f137113.webp?v=1782291767","width":2000},{"alt":null,"id":27630410268771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021","width":2000},{"alt":null,"id":27630410825827,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021","width":2000},{"alt":null,"id":27630411284579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828884045923,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168500835,"product_id":7920533700707,"position":13,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023","variant_ids":[43828884045923]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT13","featured_media":{"alt":null,"id":27630411284579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828884078691,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168042083,"product_id":7920533700707,"position":12,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021","variant_ids":[43828884078691]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PTT13","featured_media":{"alt":null,"id":27630410825827,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b22f63765d8d799ba6490276b7a1616b09d3787_4cb301fe-c16e-4005-bf07-5809dfde9ca3.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828884111459,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125167485027,"product_id":7920533700707,"position":11,"created_at":"2026-06-29T15:43:38+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021","variant_ids":[43828884111459]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PTT13","featured_media":{"alt":null,"id":27630410268771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70aac84e0f43607a3fbcf3bec5f2c22aacb4cd47_b2074b18-4f44-417b-b7a5-792c5ad6996f.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828884045923,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168500835,"product_id":7920533700707,"position":13,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023","variant_ids":[43828884045923]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT13","featured_media":{"alt":null,"id":27630411284579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0396d7e2264108570d87236d658fdd294f9f36e7_936c14d8-2265-4e14-938c-e5da418b4bba.webp?v=1782719023"}},"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: "停產" }