$product = {"id":7920495263843,"title":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變戰鬥系列-釘崎野薔薇","handle":"iphone-15-pro-max-jellytint-ptt14","description":null,"published_at":"2025-11-10T16:39:34+08:00","created_at":"2025-11-10T14:56:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Pro Max","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":43828776042595,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181116515,"product_id":7920495263843,"position":11,"created_at":"2026-06-29T15:44:25+08:00","updated_at":"2026-06-29T15:44:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067","variant_ids":[43828776042595]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變戰鬥系列-釘崎野薔薇 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT14","featured_media":{"alt":null,"id":27630423900259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828777680995,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181542499,"product_id":7920495263843,"position":12,"created_at":"2026-06-29T15:44:26+08:00","updated_at":"2026-06-29T15:44:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068","variant_ids":[43828777680995]},"available":true,"name":"iPhone 15 Pro Max 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":"CCN012980I-PTT14","featured_media":{"alt":null,"id":27630424326243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828777713763,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181968483,"product_id":7920495263843,"position":13,"created_at":"2026-06-29T15:44:26+08:00","updated_at":"2026-06-29T15:44:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069","variant_ids":[43828777713763]},"available":true,"name":"iPhone 15 Pro Max 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":"CCN012980G-PTT14","featured_media":{"alt":null,"id":27630424752227,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308.webp?v=1762757816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7.webp?v=1762757817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c32a46bfd42dacbad44bcac72e78640fcc848.webp?v=1762757818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6.webp?v=1762757818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_8dff18c6-1503-448e-9ac4-5eac6af64a65.webp?v=1782266240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_ffb91e5f-1041-47fe-98e3-47b0ba983498.webp?v=1782266241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a02fed02-9234-41d4-b627-abe371ab6328.webp?v=1782266242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_5563f2af-b7c7-43d4-9d3b-6d126c7872ff.webp?v=1782291783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_d8984679-d2e3-4d9d-8a85-8625f7973bfd.webp?v=1782291784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a866562d-a8af-41d0-8f95-41d2efcc1dcb.webp?v=1782291784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308.webp?v=1762757816","options":["color"],"media":[{"alt":null,"id":26347692130403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308.webp?v=1762757816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308.webp?v=1762757816","width":2000},{"alt":null,"id":26347692359779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7.webp?v=1762757817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7.webp?v=1762757817","width":2000},{"alt":null,"id":26347692621923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c32a46bfd42dacbad44bcac72e78640fcc848.webp?v=1762757818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c32a46bfd42dacbad44bcac72e78640fcc848.webp?v=1762757818","width":2000},{"alt":null,"id":26347692785763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6.webp?v=1762757818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6.webp?v=1762757818","width":2000},{"alt":null,"id":27587452567651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_8dff18c6-1503-448e-9ac4-5eac6af64a65.webp?v=1782266240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_8dff18c6-1503-448e-9ac4-5eac6af64a65.webp?v=1782266240","width":2000},{"alt":null,"id":27587452960867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_ffb91e5f-1041-47fe-98e3-47b0ba983498.webp?v=1782266241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_ffb91e5f-1041-47fe-98e3-47b0ba983498.webp?v=1782266241","width":2000},{"alt":null,"id":27587453157475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a02fed02-9234-41d4-b627-abe371ab6328.webp?v=1782266242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a02fed02-9234-41d4-b627-abe371ab6328.webp?v=1782266242","width":2000},{"alt":null,"id":27594729128035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_5563f2af-b7c7-43d4-9d3b-6d126c7872ff.webp?v=1782291783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_5563f2af-b7c7-43d4-9d3b-6d126c7872ff.webp?v=1782291783","width":2000},{"alt":null,"id":27594729422947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_d8984679-d2e3-4d9d-8a85-8625f7973bfd.webp?v=1782291784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_d8984679-d2e3-4d9d-8a85-8625f7973bfd.webp?v=1782291784","width":2000},{"alt":null,"id":27594729881699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a866562d-a8af-41d0-8f95-41d2efcc1dcb.webp?v=1782291784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_a866562d-a8af-41d0-8f95-41d2efcc1dcb.webp?v=1782291784","width":2000},{"alt":null,"id":27630423900259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067","width":2000},{"alt":null,"id":27630424326243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068","width":2000},{"alt":null,"id":27630424752227,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828776042595,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181116515,"product_id":7920495263843,"position":11,"created_at":"2026-06-29T15:44:25+08:00","updated_at":"2026-06-29T15:44:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067","variant_ids":[43828776042595]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變戰鬥系列-釘崎野薔薇 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT14","featured_media":{"alt":null,"id":27630423900259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828777680995,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181542499,"product_id":7920495263843,"position":12,"created_at":"2026-06-29T15:44:26+08:00","updated_at":"2026-06-29T15:44:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068","variant_ids":[43828777680995]},"available":true,"name":"iPhone 15 Pro Max 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":"CCN012980I-PTT14","featured_media":{"alt":null,"id":27630424326243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a65e160a45dd637625f8b7f9d0261a981da308_d3084257-089b-4795-89c0-f52d0606b812.webp?v=1782719068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828777713763,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181968483,"product_id":7920495263843,"position":13,"created_at":"2026-06-29T15:44:26+08:00","updated_at":"2026-06-29T15:44:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069","variant_ids":[43828777713763]},"available":true,"name":"iPhone 15 Pro Max 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":"CCN012980G-PTT14","featured_media":{"alt":null,"id":27630424752227,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f3b1dfff771b47221de4df8903d89d4230b8e7_4705c34e-a574-42db-a6c6-d11f2d9c5e1a.webp?v=1782719069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828776042595,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT14","requires_shipping":true,"taxable":true,"featured_image":{"id":36125181116515,"product_id":7920495263843,"position":11,"created_at":"2026-06-29T15:44:25+08:00","updated_at":"2026-06-29T15:44:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067","variant_ids":[43828776042595]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變戰鬥系列-釘崎野薔薇 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT14","featured_media":{"alt":null,"id":27630423900259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7d728c656bc004d52047de11b0bd5dcfe376f6_4ba582f4-2580-4f10-90de-b75cd3aefa86.webp?v=1782719067"}},"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: "停產" }