$product = {"id":7888965959779,"title":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20","handle":"iphone-12-pro-max-solidsuit-classic-magsafe-tb35","description":null,"published_at":"2025-09-24T11:14:31+08:00","created_at":"2025-09-23T12:08:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-oracle-redbull-racing","device-iPhone 12 Pro Max","merge","reseller-oracle-redbull-racing"],"price":125000,"price_min":125000,"price_max":125000,"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":43744892354659,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428508771,"product_id":7888965959779,"position":10,"created_at":"2026-07-02T14:40:48+08:00","updated_at":"2026-07-02T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450","variant_ids":[43744892354659]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-TB35","featured_media":{"alt":null,"id":27658301571171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744894877795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428344931,"product_id":7888965959779,"position":9,"created_at":"2026-07-02T14:40:48+08:00","updated_at":"2026-07-02T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450","variant_ids":[43744894877795]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-TB35","featured_media":{"alt":null,"id":27658301407331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744894976099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153427984483,"product_id":7888965959779,"position":7,"created_at":"2026-07-02T14:40:47+08:00","updated_at":"2026-07-02T14:40:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449","variant_ids":[43744894976099]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-TB35","featured_media":{"alt":null,"id":27658301046883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744895008867,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428181091,"product_id":7888965959779,"position":8,"created_at":"2026-07-02T14:40:47+08:00","updated_at":"2026-07-02T14:40:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449","variant_ids":[43744895008867]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-TB35","featured_media":{"alt":null,"id":27658301243491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75c19ce382f807e52648756dc9644c1df7b1d3.webp?v=1758600520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3.webp?v=1758600520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb.webp?v=1758600521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6.webp?v=1758600523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7220f7e42a2eab7c5f2c6e26ac87d9b04e031a82.webp?v=1758600522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4.webp?v=1758600522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75c19ce382f807e52648756dc9644c1df7b1d3.webp?v=1758600520","options":["color"],"media":[{"alt":null,"id":26088826437731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75c19ce382f807e52648756dc9644c1df7b1d3.webp?v=1758600520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75c19ce382f807e52648756dc9644c1df7b1d3.webp?v=1758600520","width":2000},{"alt":null,"id":26088826568803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3.webp?v=1758600520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3.webp?v=1758600520","width":2000},{"alt":null,"id":26088826699875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb.webp?v=1758600521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb.webp?v=1758600521","width":2000},{"alt":null,"id":26088826863715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6.webp?v=1758600523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6.webp?v=1758600523","width":2000},{"alt":null,"id":26088826994787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7220f7e42a2eab7c5f2c6e26ac87d9b04e031a82.webp?v=1758600522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7220f7e42a2eab7c5f2c6e26ac87d9b04e031a82.webp?v=1758600522","width":2000},{"alt":null,"id":26088827158627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4.webp?v=1758600522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4.webp?v=1758600522","width":2000},{"alt":null,"id":27658301046883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449","width":2000},{"alt":null,"id":27658301243491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449","width":2000},{"alt":null,"id":27658301407331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450","width":2000},{"alt":null,"id":27658301571171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43744892354659,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428508771,"product_id":7888965959779,"position":10,"created_at":"2026-07-02T14:40:48+08:00","updated_at":"2026-07-02T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450","variant_ids":[43744892354659]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-TB35","featured_media":{"alt":null,"id":27658301571171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744894877795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428344931,"product_id":7888965959779,"position":9,"created_at":"2026-07-02T14:40:48+08:00","updated_at":"2026-07-02T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450","variant_ids":[43744894877795]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-TB35","featured_media":{"alt":null,"id":27658301407331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f01103ee5720f426c6b29f27fb1dcc9a89dacb_d47e9778-2632-4a96-b48a-67f0b78c7fa8.webp?v=1782974450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744894976099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153427984483,"product_id":7888965959779,"position":7,"created_at":"2026-07-02T14:40:47+08:00","updated_at":"2026-07-02T14:40:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449","variant_ids":[43744894976099]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-TB35","featured_media":{"alt":null,"id":27658301046883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e475190b76e67f78a8b3c35a93fcfa829d79a6_5dc165b2-f473-47a0-9909-e21e77b1e00e.webp?v=1782974449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744895008867,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428181091,"product_id":7888965959779,"position":8,"created_at":"2026-07-02T14:40:47+08:00","updated_at":"2026-07-02T14:40:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449","variant_ids":[43744895008867]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-TB35","featured_media":{"alt":null,"id":27658301243491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7312a96b9773529ce3c4f705743a7859fac23ca4_47e733c2-0d41-4203-83dc-fb323548c30b.webp?v=1782974449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43744892354659,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-TB35","requires_shipping":true,"taxable":true,"featured_image":{"id":36153428508771,"product_id":7888965959779,"position":10,"created_at":"2026-07-02T14:40:48+08:00","updated_at":"2026-07-02T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450","variant_ids":[43744892354659]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR - RB20 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-TB35","featured_media":{"alt":null,"id":27658301571171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1db576f295dff7edf762c8ef2dcc952f61eda3_92358da6-216b-4439-8ed3-1942b3fc4cf1.webp?v=1782974450"}},"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: "停產" }