$product = {"id":7893882634339,"title":"iPhone XR Mod NX Chubbynida 烈焰海之舞","handle":"iphone-xr-mod-nx-printable-chu06","description":null,"published_at":"2025-10-09T09:20:06+08:00","created_at":"2025-10-07T10:35:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone XR","merge","reseller-chubbynida"],"price":90000,"price_min":90000,"price_max":90000,"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":43763637649507,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553369526371,"product_id":7893882634339,"position":4,"created_at":"2025-10-07T10:35:58+08:00","updated_at":"2025-10-07T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561","variant_ids":[43763637649507]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-CHU06","featured_media":{"alt":null,"id":26123017158755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640205411,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553368871011,"product_id":7893882634339,"position":2,"created_at":"2025-10-07T10:35:55+08:00","updated_at":"2025-10-07T10:35:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557","variant_ids":[43763640205411]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-CHU06","featured_media":{"alt":null,"id":26123016503395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640238179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370706019,"product_id":7893882634339,"position":8,"created_at":"2025-10-07T10:36:01+08:00","updated_at":"2025-10-07T10:36:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563","variant_ids":[43763640238179]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-CHU06","featured_media":{"alt":null,"id":26123018338403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640270947,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370411107,"product_id":7893882634339,"position":7,"created_at":"2025-10-07T10:36:00+08:00","updated_at":"2025-10-07T10:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562","variant_ids":[43763640270947]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-CHU06","featured_media":{"alt":null,"id":26123018043491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640402019,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NPB0108557-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370935395,"product_id":7893882634339,"position":9,"created_at":"2025-10-07T10:36:02+08:00","updated_at":"2025-10-07T10:36:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564","variant_ids":[43763640402019]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108557-CHU06","featured_media":{"alt":null,"id":26123018567779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d34d49f3b1f185f0cc7653bb8beef5d815ff082.webp?v=1759804556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9566f7ca773cb761df06825c7175515eaa5be14c.webp?v=1759804560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825a3db9a5cfc176c0c2b8c23a06b66e551e0.webp?v=1759804561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93f2695ef8e33452598d9a590b1ca993cbeea60.webp?v=1759804562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3212b9b78eaafabbe9d35df0b040661ff7f1516f.webp?v=1759804564"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d34d49f3b1f185f0cc7653bb8beef5d815ff082.webp?v=1759804556","options":["color"],"media":[{"alt":null,"id":26123016208483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d34d49f3b1f185f0cc7653bb8beef5d815ff082.webp?v=1759804556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d34d49f3b1f185f0cc7653bb8beef5d815ff082.webp?v=1759804556","width":2000},{"alt":null,"id":26123016503395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557","width":2000},{"alt":null,"id":26123016994915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9566f7ca773cb761df06825c7175515eaa5be14c.webp?v=1759804560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9566f7ca773cb761df06825c7175515eaa5be14c.webp?v=1759804560","width":2000},{"alt":null,"id":26123017158755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561","width":2000},{"alt":null,"id":26123017486435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825a3db9a5cfc176c0c2b8c23a06b66e551e0.webp?v=1759804561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825a3db9a5cfc176c0c2b8c23a06b66e551e0.webp?v=1759804561","width":2000},{"alt":null,"id":26123017781347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93f2695ef8e33452598d9a590b1ca993cbeea60.webp?v=1759804562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93f2695ef8e33452598d9a590b1ca993cbeea60.webp?v=1759804562","width":2000},{"alt":null,"id":26123018043491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562","width":2000},{"alt":null,"id":26123018338403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563","width":2000},{"alt":null,"id":26123018567779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564","width":2000},{"alt":null,"id":26123018862691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3212b9b78eaafabbe9d35df0b040661ff7f1516f.webp?v=1759804564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3212b9b78eaafabbe9d35df0b040661ff7f1516f.webp?v=1759804564","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763637649507,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553369526371,"product_id":7893882634339,"position":4,"created_at":"2025-10-07T10:35:58+08:00","updated_at":"2025-10-07T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561","variant_ids":[43763637649507]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-CHU06","featured_media":{"alt":null,"id":26123017158755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640205411,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553368871011,"product_id":7893882634339,"position":2,"created_at":"2025-10-07T10:35:55+08:00","updated_at":"2025-10-07T10:35:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557","variant_ids":[43763640205411]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-CHU06","featured_media":{"alt":null,"id":26123016503395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b541557576f4096b16cd0d6c264bfb4967367b4e.webp?v=1759804557"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640238179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370706019,"product_id":7893882634339,"position":8,"created_at":"2025-10-07T10:36:01+08:00","updated_at":"2025-10-07T10:36:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563","variant_ids":[43763640238179]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-CHU06","featured_media":{"alt":null,"id":26123018338403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6183862cdf64563233fe2d3e9bfdf90963dc8e55.webp?v=1759804563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640270947,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370411107,"product_id":7893882634339,"position":7,"created_at":"2025-10-07T10:36:00+08:00","updated_at":"2025-10-07T10:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562","variant_ids":[43763640270947]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-CHU06","featured_media":{"alt":null,"id":26123018043491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a45297353449a5293b35f60aa1011cca338c6af.webp?v=1759804562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763640402019,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NPB0108557-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370935395,"product_id":7893882634339,"position":9,"created_at":"2025-10-07T10:36:02+08:00","updated_at":"2025-10-07T10:36:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564","variant_ids":[43763640402019]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108557-CHU06","featured_media":{"alt":null,"id":26123018567779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c925cff4869e4e5b41d56be3da943721ba6bcd6.webp?v=1759804564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763637649507,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553369526371,"product_id":7893882634339,"position":4,"created_at":"2025-10-07T10:35:58+08:00","updated_at":"2025-10-07T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561","variant_ids":[43763637649507]},"available":true,"name":"iPhone XR Mod NX Chubbynida 烈焰海之舞 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-CHU06","featured_media":{"alt":null,"id":26123017158755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2605647522208f01e03f778ca073d005bd0b18a.webp?v=1759804561"}},"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: "停產" }