$product = {"id":7931654275171,"title":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老","handle":"iphone-17-pro-max-mod-nx-magsafe-with-capture-button-bir01","description":null,"published_at":"2026-01-27T14:17:33+08:00","created_at":"2025-11-28T11:27:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 17 Pro Max","merge","reseller-everydayishappybirthday"],"price":110000,"price_min":110000,"price_max":110000,"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":43861440757859,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01353J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351738576995,"product_id":7931654275171,"position":16,"created_at":"2026-07-22T21:23:21+08:00","updated_at":"2026-07-22T21:23:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603","variant_ids":[43861440757859]},"available":true,"name":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB01353J5-BIR01","featured_media":{"alt":null,"id":27855544156259,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861443313763,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135369-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351736610915,"product_id":7931654275171,"position":13,"created_at":"2026-07-22T21:23:19+08:00","updated_at":"2026-07-22T21:23:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601","variant_ids":[43861443313763]},"available":true,"name":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135369-BIR01","featured_media":{"alt":null,"id":27855542190179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276.webp?v=1764300486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494.webp?v=1764300486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75.webp?v=1764300487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a.webp?v=1764300487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_cbd299f8-3abc-45e4-a1ed-bd93de0e4fe1.webp?v=1784721384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_fb65658e-da8a-4088-b3da-b5fda8e13069.webp?v=1784721386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_053cbcca-115c-4bac-ba9e-0d3ad05f0c77.webp?v=1784721387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_c118365a-aedc-4923-8a93-897a63a6acd2.webp?v=1784721387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_b6940335-b718-44a3-98ba-c2b69220d7f3.webp?v=1784725526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_5968128e-ec75-4908-8296-160f213e9fe1.webp?v=1784725527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_036ed486-2f72-4dd7-a72b-75d1473e6814.webp?v=1784725528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_980d4087-faf1-4e87-a328-543a14c05f86.webp?v=1784725528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_ceae5c92-f46c-4cd0-bb6c-f15bc270f144.webp?v=1784726602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_29c5a60b-576b-487e-aed4-1a844853d3bb.webp?v=1784726602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276.webp?v=1764300486","options":["color"],"media":[{"alt":null,"id":26428206284899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276.webp?v=1764300486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276.webp?v=1764300486","width":2000},{"alt":null,"id":26428206481507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494.webp?v=1764300486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494.webp?v=1764300486","width":2000},{"alt":null,"id":26428206678115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75.webp?v=1764300487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75.webp?v=1764300487","width":2000},{"alt":null,"id":26428206841955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a.webp?v=1764300487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a.webp?v=1764300487","width":2000},{"alt":null,"id":27853728514147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_cbd299f8-3abc-45e4-a1ed-bd93de0e4fe1.webp?v=1784721384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_cbd299f8-3abc-45e4-a1ed-bd93de0e4fe1.webp?v=1784721384","width":2000},{"alt":null,"id":27853728776291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_fb65658e-da8a-4088-b3da-b5fda8e13069.webp?v=1784721386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_fb65658e-da8a-4088-b3da-b5fda8e13069.webp?v=1784721386","width":2000},{"alt":null,"id":27853728972899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_053cbcca-115c-4bac-ba9e-0d3ad05f0c77.webp?v=1784721387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_053cbcca-115c-4bac-ba9e-0d3ad05f0c77.webp?v=1784721387","width":2000},{"alt":null,"id":27853729300579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_c118365a-aedc-4923-8a93-897a63a6acd2.webp?v=1784721387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_c118365a-aedc-4923-8a93-897a63a6acd2.webp?v=1784721387","width":2000},{"alt":null,"id":27854998339683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_b6940335-b718-44a3-98ba-c2b69220d7f3.webp?v=1784725526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_b6940335-b718-44a3-98ba-c2b69220d7f3.webp?v=1784725526","width":2000},{"alt":null,"id":27854998863971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_5968128e-ec75-4908-8296-160f213e9fe1.webp?v=1784725527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_5968128e-ec75-4908-8296-160f213e9fe1.webp?v=1784725527","width":2000},{"alt":null,"id":27854999421027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_036ed486-2f72-4dd7-a72b-75d1473e6814.webp?v=1784725528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_036ed486-2f72-4dd7-a72b-75d1473e6814.webp?v=1784725528","width":2000},{"alt":null,"id":27855000240227,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_980d4087-faf1-4e87-a328-543a14c05f86.webp?v=1784725528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_980d4087-faf1-4e87-a328-543a14c05f86.webp?v=1784725528","width":2000},{"alt":null,"id":27855542190179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601","width":2000},{"alt":null,"id":27855543009379,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_ceae5c92-f46c-4cd0-bb6c-f15bc270f144.webp?v=1784726602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b16da746506176da67ce2055263bfe2883276_ceae5c92-f46c-4cd0-bb6c-f15bc270f144.webp?v=1784726602","width":2000},{"alt":null,"id":27855543271523,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_29c5a60b-576b-487e-aed4-1a844853d3bb.webp?v=1784726602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c45da491591e724befca3adaf744a5c3a6c2e75_29c5a60b-576b-487e-aed4-1a844853d3bb.webp?v=1784726602","width":2000},{"alt":null,"id":27855544156259,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861440757859,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01353J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351738576995,"product_id":7931654275171,"position":16,"created_at":"2026-07-22T21:23:21+08:00","updated_at":"2026-07-22T21:23:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603","variant_ids":[43861440757859]},"available":true,"name":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB01353J5-BIR01","featured_media":{"alt":null,"id":27855544156259,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861443313763,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135369-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351736610915,"product_id":7931654275171,"position":13,"created_at":"2026-07-22T21:23:19+08:00","updated_at":"2026-07-22T21:23:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601","variant_ids":[43861443313763]},"available":true,"name":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135369-BIR01","featured_media":{"alt":null,"id":27855542190179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285c7ed5a3adb7047a8796be0d59919a30bfe494_f781a623-38f2-4e95-8b2b-6a452dffd11a.webp?v=1784726601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861440757859,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01353J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351738576995,"product_id":7931654275171,"position":16,"created_at":"2026-07-22T21:23:21+08:00","updated_at":"2026-07-22T21:23:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603","variant_ids":[43861440757859]},"available":true,"name":"iPhone 17 Pro Max Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB01353J5-BIR01","featured_media":{"alt":null,"id":27855544156259,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fca1f498849be77f5b6e8e224d1ab880bc85d08a_8175b5f9-556a-4577-81b1-05cee5c792a7.webp?v=1784726603"}},"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: "停產" }