$product = {"id":7920646422627,"title":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑","handle":"iphone-15-jellytint-magsafe-ptt07","description":null,"published_at":"2025-11-10T16:17:21+08:00","created_at":"2025-11-10T16:03:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15","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":43829293940835,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125104472163,"product_id":7920646422627,"position":11,"created_at":"2026-06-29T15:40:02+08:00","updated_at":"2026-06-29T15:40:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804","variant_ids":[43829293940835]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT07","featured_media":{"alt":null,"id":27630347288675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829295546467,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012950G-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125105979491,"product_id":7920646422627,"position":13,"created_at":"2026-06-29T15:40:05+08:00","updated_at":"2026-06-29T15:40:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807","variant_ids":[43829295546467]},"available":true,"name":"iPhone 15 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":"MCN012950G-PTT07","featured_media":{"alt":null,"id":27630348796003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829295579235,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012950H-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125105586275,"product_id":7920646422627,"position":12,"created_at":"2026-06-29T15:40:04+08:00","updated_at":"2026-06-29T15:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806","variant_ids":[43829295579235]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950H-PTT07","featured_media":{"alt":null,"id":27630348402787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d.webp?v=1762761802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f18684460324041c2f934659fa59e7ccba2b5ff.webp?v=1762761803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad.webp?v=1762761804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215.webp?v=1762761804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_1def8cc3-071a-4ae6-9ddf-7aed8eab0a41.webp?v=1782266027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_cd2ba428-0f19-4759-9eaf-4fa1cd33759d.webp?v=1782266028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_1c58c014-304b-4d35-b670-5a752dbfa2fa.webp?v=1782266029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_57d13ce9-da10-4daf-82f5-6b2f5cebdcf3.webp?v=1782291663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_bef383a5-b856-451e-b08f-54ffcd8c62f5.webp?v=1782291664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_5e0c0669-8453-43a5-84e2-fef18d6bf81c.webp?v=1782291665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d.webp?v=1762761802","options":["color"],"media":[{"alt":null,"id":26348278612067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d.webp?v=1762761802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d.webp?v=1762761802","width":2000},{"alt":null,"id":26348278775907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f18684460324041c2f934659fa59e7ccba2b5ff.webp?v=1762761803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f18684460324041c2f934659fa59e7ccba2b5ff.webp?v=1762761803","width":2000},{"alt":null,"id":26348278906979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad.webp?v=1762761804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad.webp?v=1762761804","width":2000},{"alt":null,"id":26348279103587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215.webp?v=1762761804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215.webp?v=1762761804","width":2000},{"alt":null,"id":27587361505379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_1def8cc3-071a-4ae6-9ddf-7aed8eab0a41.webp?v=1782266027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_1def8cc3-071a-4ae6-9ddf-7aed8eab0a41.webp?v=1782266027","width":2000},{"alt":null,"id":27587361865827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_cd2ba428-0f19-4759-9eaf-4fa1cd33759d.webp?v=1782266028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_cd2ba428-0f19-4759-9eaf-4fa1cd33759d.webp?v=1782266028","width":2000},{"alt":null,"id":27587362029667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_1c58c014-304b-4d35-b670-5a752dbfa2fa.webp?v=1782266029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_1c58c014-304b-4d35-b670-5a752dbfa2fa.webp?v=1782266029","width":2000},{"alt":null,"id":27594694131811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_57d13ce9-da10-4daf-82f5-6b2f5cebdcf3.webp?v=1782291663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_57d13ce9-da10-4daf-82f5-6b2f5cebdcf3.webp?v=1782291663","width":2000},{"alt":null,"id":27594694361187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_bef383a5-b856-451e-b08f-54ffcd8c62f5.webp?v=1782291664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_bef383a5-b856-451e-b08f-54ffcd8c62f5.webp?v=1782291664","width":2000},{"alt":null,"id":27594694525027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_5e0c0669-8453-43a5-84e2-fef18d6bf81c.webp?v=1782291665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_5e0c0669-8453-43a5-84e2-fef18d6bf81c.webp?v=1782291665","width":2000},{"alt":null,"id":27630347288675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804","width":2000},{"alt":null,"id":27630348402787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806","width":2000},{"alt":null,"id":27630348796003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43829293940835,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125104472163,"product_id":7920646422627,"position":11,"created_at":"2026-06-29T15:40:02+08:00","updated_at":"2026-06-29T15:40:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804","variant_ids":[43829293940835]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT07","featured_media":{"alt":null,"id":27630347288675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829295546467,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012950G-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125105979491,"product_id":7920646422627,"position":13,"created_at":"2026-06-29T15:40:05+08:00","updated_at":"2026-06-29T15:40:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807","variant_ids":[43829295546467]},"available":true,"name":"iPhone 15 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":"MCN012950G-PTT07","featured_media":{"alt":null,"id":27630348796003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29a01742023f08104c5ad837cb2208eaee3724ad_ebb31f74-e1aa-46cf-9d34-445e17632eb6.webp?v=1782718807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829295579235,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012950H-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125105586275,"product_id":7920646422627,"position":12,"created_at":"2026-06-29T15:40:04+08:00","updated_at":"2026-06-29T15:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806","variant_ids":[43829295579235]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950H-PTT07","featured_media":{"alt":null,"id":27630348402787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db574ecc9fd9096979faff7b71e3773d1a2d215_e3f64b05-a120-4bca-a294-8c528fa5c282.webp?v=1782718806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43829293940835,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT07","requires_shipping":true,"taxable":true,"featured_image":{"id":36125104472163,"product_id":7920646422627,"position":11,"created_at":"2026-06-29T15:40:02+08:00","updated_at":"2026-06-29T15:40:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804","variant_ids":[43829293940835]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-夏油傑 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT07","featured_media":{"alt":null,"id":27630347288675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde4f969529ae244b456ddccb9b5d997f41432d_2d189812-dc1d-47d3-a27c-769a10348510.webp?v=1782718804"}},"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: "停產" }