$product = {"id":7931629666403,"title":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室","handle":"iphone-17-pro-mod-nx-with-capture-button-bir08","description":null,"published_at":"2026-01-27T14:22:28+08:00","created_at":"2025-11-28T11:17:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 17 Pro","merge","reseller-everydayishappybirthday"],"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":43861347926115,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351912018019,"product_id":7931629666403,"position":13,"created_at":"2026-07-22T21:29:33+08:00","updated_at":"2026-07-22T21:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975","variant_ids":[43861347926115]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR08","featured_media":{"alt":null,"id":27855717204067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861349302371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351918964835,"product_id":7931629666403,"position":15,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980","variant_ids":[43861349302371]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR08","featured_media":{"alt":null,"id":27855722676323,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e.webp?v=1764299850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb.webp?v=1764299850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765.webp?v=1764299850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b.webp?v=1764299851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c47754eb-f0d6-4d64-9648-829a798079bc.webp?v=1784721802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_27e21f4d-5141-43f7-8766-1cb51bd3ab2a.webp?v=1784721802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_354cfddd-26bc-4a46-b860-ae0588bf1ee8.webp?v=1784721804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_76c41b90-2cb9-4b30-af27-f36b784ac692.webp?v=1784721805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_e7a1ea89-7651-4df7-bf99-a22781b33d6e.webp?v=1784725912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_a0f6d592-4b62-431a-911c-583df0933044.webp?v=1784725914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_544201a9-18ba-44e9-ad78-94284e25819a.webp?v=1784725916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_faeb543f-ff19-4a60-af5b-8b0a587a1750.webp?v=1784725917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_54426bbc-4c84-47df-81e6-987d117d4f92.webp?v=1784726977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_1a5a64b9-76c6-44de-91a3-a47c31028a0c.webp?v=1784726981"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e.webp?v=1764299850","options":["color"],"media":[{"alt":null,"id":26428102246499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e.webp?v=1764299850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e.webp?v=1764299850","width":2000},{"alt":null,"id":26428102508643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb.webp?v=1764299850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb.webp?v=1764299850","width":2000},{"alt":null,"id":26428102738019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765.webp?v=1764299850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765.webp?v=1764299850","width":2000},{"alt":null,"id":26428103098467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b.webp?v=1764299851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b.webp?v=1764299851","width":2000},{"alt":null,"id":27853897433187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c47754eb-f0d6-4d64-9648-829a798079bc.webp?v=1784721802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c47754eb-f0d6-4d64-9648-829a798079bc.webp?v=1784721802","width":2000},{"alt":null,"id":27853898023011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_27e21f4d-5141-43f7-8766-1cb51bd3ab2a.webp?v=1784721802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_27e21f4d-5141-43f7-8766-1cb51bd3ab2a.webp?v=1784721802","width":2000},{"alt":null,"id":27853900382307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_354cfddd-26bc-4a46-b860-ae0588bf1ee8.webp?v=1784721804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_354cfddd-26bc-4a46-b860-ae0588bf1ee8.webp?v=1784721804","width":2000},{"alt":null,"id":27853901267043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_76c41b90-2cb9-4b30-af27-f36b784ac692.webp?v=1784721805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_76c41b90-2cb9-4b30-af27-f36b784ac692.webp?v=1784721805","width":2000},{"alt":null,"id":27855159427171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_e7a1ea89-7651-4df7-bf99-a22781b33d6e.webp?v=1784725912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_e7a1ea89-7651-4df7-bf99-a22781b33d6e.webp?v=1784725912","width":2000},{"alt":null,"id":27855160115299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_a0f6d592-4b62-431a-911c-583df0933044.webp?v=1784725914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_a0f6d592-4b62-431a-911c-583df0933044.webp?v=1784725914","width":2000},{"alt":null,"id":27855163064419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_544201a9-18ba-44e9-ad78-94284e25819a.webp?v=1784725916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_544201a9-18ba-44e9-ad78-94284e25819a.webp?v=1784725916","width":2000},{"alt":null,"id":27855163850851,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_faeb543f-ff19-4a60-af5b-8b0a587a1750.webp?v=1784725917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_faeb543f-ff19-4a60-af5b-8b0a587a1750.webp?v=1784725917","width":2000},{"alt":null,"id":27855717204067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975","width":2000},{"alt":null,"id":27855718973539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_54426bbc-4c84-47df-81e6-987d117d4f92.webp?v=1784726977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75305a996739ec58fdf2c1e3fc3e41ae417ec62b_54426bbc-4c84-47df-81e6-987d117d4f92.webp?v=1784726977","width":2000},{"alt":null,"id":27855722676323,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980","width":2000},{"alt":null,"id":27855725002851,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_1a5a64b9-76c6-44de-91a3-a47c31028a0c.webp?v=1784726981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436e79178b0b41acdbe2d02d929e3dae6f58964e_1a5a64b9-76c6-44de-91a3-a47c31028a0c.webp?v=1784726981","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861347926115,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351912018019,"product_id":7931629666403,"position":13,"created_at":"2026-07-22T21:29:33+08:00","updated_at":"2026-07-22T21:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975","variant_ids":[43861347926115]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR08","featured_media":{"alt":null,"id":27855717204067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861349302371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351918964835,"product_id":7931629666403,"position":15,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980","variant_ids":[43861349302371]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR08","featured_media":{"alt":null,"id":27855722676323,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dcd70d8bf0621eeffcc2ae52ddccf1702ef7765_46347872-53f7-4ac6-9211-88245c5d123f.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861347926115,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351912018019,"product_id":7931629666403,"position":13,"created_at":"2026-07-22T21:29:33+08:00","updated_at":"2026-07-22T21:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975","variant_ids":[43861347926115]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海洋實驗室 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR08","featured_media":{"alt":null,"id":27855717204067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fadc06fdd9fd4a60d6a549277363d894b47d7acb_c9c61115-20f8-4a42-854b-50a2a649dff7.webp?v=1784726975"}},"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: "停產" }