$product = {"id":7411272548451,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川)","handle":"iphone-14-pro-mod-nx-magsafe-printable-af10","description":null,"published_at":"2024-06-11T17:40:29+08:00","created_at":"2024-05-04T23:57:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","Top50","type-Mod NX Printable MagSafe Printable"],"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":41896805793891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016896099,"product_id":7411272548451,"position":6,"created_at":"2024-05-04T23:58:08+08:00","updated_at":"2024-05-04T23:58:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288","variant_ids":[41896805793891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF10","featured_media":{"alt":null,"id":23885267435619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896805924963,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480013979747,"product_id":7411272548451,"position":1,"created_at":"2024-05-04T23:57:56+08:00","updated_at":"2024-05-04T23:57:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276","variant_ids":[41896805924963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF10","featured_media":{"alt":null,"id":23885264519267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896806154339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480015585379,"product_id":7411272548451,"position":4,"created_at":"2024-05-04T23:58:03+08:00","updated_at":"2024-05-04T23:58:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283","variant_ids":[41896806154339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF10","featured_media":{"alt":null,"id":23885266124899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1db72b36d9ce1454d44902999a7b96d1a50c89_33da676f-dae4-418c-9237-fa2bda223738.webp?v=1714838278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c152d18fefd1f906d47ae8097fef1c07c48be_8ffdf1bb-e389-4f55-9c3e-57d89bf248ba.webp?v=1714838281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b83d60b5e9abc8a7379d99c7fc3ca0b87015dca_2fa4255a-7488-45a3-8512-b3f5da1bcd5e.webp?v=1714838286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6ee12d4fd3c708859c028e3184e8f608d507ad_cdb539e9-2365-4829-84d8-17221a7b5bb3.webp?v=1714838291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298e7e107c585546f06d536a86c88e7cca9c4d63_44b15ccc-4d17-499e-91dd-c33f8de28599.webp?v=1714838293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a6c1d5e6b86ebc246d7c0cb4cdf3c90b26f694_45354532-1a47-4bad-9db4-e51d1477210c.webp?v=1714838296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9335f6cb35763f29385650d70ca0dfe828e6a4c2_5e4771ae-1b10-473d-b99f-c5fdb12e7f2f.webp?v=1714838298"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276","options":["color"],"media":[{"alt":null,"id":23885264519267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276","width":2000},{"alt":null,"id":23885265109091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1db72b36d9ce1454d44902999a7b96d1a50c89_33da676f-dae4-418c-9237-fa2bda223738.webp?v=1714838278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1db72b36d9ce1454d44902999a7b96d1a50c89_33da676f-dae4-418c-9237-fa2bda223738.webp?v=1714838278","width":2000},{"alt":null,"id":23885265567843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c152d18fefd1f906d47ae8097fef1c07c48be_8ffdf1bb-e389-4f55-9c3e-57d89bf248ba.webp?v=1714838281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c152d18fefd1f906d47ae8097fef1c07c48be_8ffdf1bb-e389-4f55-9c3e-57d89bf248ba.webp?v=1714838281","width":2000},{"alt":null,"id":23885266124899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283","width":2000},{"alt":null,"id":23885266813027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b83d60b5e9abc8a7379d99c7fc3ca0b87015dca_2fa4255a-7488-45a3-8512-b3f5da1bcd5e.webp?v=1714838286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b83d60b5e9abc8a7379d99c7fc3ca0b87015dca_2fa4255a-7488-45a3-8512-b3f5da1bcd5e.webp?v=1714838286","width":2000},{"alt":null,"id":23885267435619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288","width":2000},{"alt":null,"id":23885267959907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6ee12d4fd3c708859c028e3184e8f608d507ad_cdb539e9-2365-4829-84d8-17221a7b5bb3.webp?v=1714838291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6ee12d4fd3c708859c028e3184e8f608d507ad_cdb539e9-2365-4829-84d8-17221a7b5bb3.webp?v=1714838291","width":2000},{"alt":null,"id":23885268680803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298e7e107c585546f06d536a86c88e7cca9c4d63_44b15ccc-4d17-499e-91dd-c33f8de28599.webp?v=1714838293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298e7e107c585546f06d536a86c88e7cca9c4d63_44b15ccc-4d17-499e-91dd-c33f8de28599.webp?v=1714838293","width":2000},{"alt":null,"id":23885269532771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a6c1d5e6b86ebc246d7c0cb4cdf3c90b26f694_45354532-1a47-4bad-9db4-e51d1477210c.webp?v=1714838296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a6c1d5e6b86ebc246d7c0cb4cdf3c90b26f694_45354532-1a47-4bad-9db4-e51d1477210c.webp?v=1714838296","width":2000},{"alt":null,"id":23885270188131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9335f6cb35763f29385650d70ca0dfe828e6a4c2_5e4771ae-1b10-473d-b99f-c5fdb12e7f2f.webp?v=1714838298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9335f6cb35763f29385650d70ca0dfe828e6a4c2_5e4771ae-1b10-473d-b99f-c5fdb12e7f2f.webp?v=1714838298","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41896805793891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016896099,"product_id":7411272548451,"position":6,"created_at":"2024-05-04T23:58:08+08:00","updated_at":"2024-05-04T23:58:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288","variant_ids":[41896805793891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF10","featured_media":{"alt":null,"id":23885267435619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896805924963,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480013979747,"product_id":7411272548451,"position":1,"created_at":"2024-05-04T23:57:56+08:00","updated_at":"2024-05-04T23:57:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276","variant_ids":[41896805924963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF10","featured_media":{"alt":null,"id":23885264519267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbd0d02a0c62baa1958a4c0a9f0a274adeca6a8_5b9da0fe-8131-456d-8521-2167be673b13.webp?v=1714838276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896806154339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480015585379,"product_id":7411272548451,"position":4,"created_at":"2024-05-04T23:58:03+08:00","updated_at":"2024-05-04T23:58:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283","variant_ids":[41896806154339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF10","featured_media":{"alt":null,"id":23885266124899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06fe43d2f55b09f699c0fb14d7959ef0f8d8eb4_01003ae1-cfd6-4de4-ab74-2c54421b2234.webp?v=1714838283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896805793891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016896099,"product_id":7411272548451,"position":6,"created_at":"2024-05-04T23:58:08+08:00","updated_at":"2024-05-04T23:58:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288","variant_ids":[41896805793891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF10","featured_media":{"alt":null,"id":23885267435619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5264ccad9240521110dd575f2181e2c45a64208_a8c806cb-7c9a-4279-bec1-d9e8c802ee5a.webp?v=1714838288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }