$product = {"id":7411405488227,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb82","description":null,"published_at":"2024-06-11T17:44:05+08:00","created_at":"2024-05-05T00:23:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41898475618403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480346542179,"product_id":7411405488227,"position":5,"created_at":"2024-05-05T00:23:42+08:00","updated_at":"2024-05-05T00:23:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822","variant_ids":[41898475618403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB82","featured_media":{"alt":null,"id":23885598163043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898475683939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480349163619,"product_id":7411405488227,"position":10,"created_at":"2024-05-05T00:23:54+08:00","updated_at":"2024-05-05T00:23:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834","variant_ids":[41898475683939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB82","featured_media":{"alt":null,"id":23885600718947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898475913315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480348704867,"product_id":7411405488227,"position":9,"created_at":"2024-05-05T00:23:51+08:00","updated_at":"2024-05-05T00:23:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832","variant_ids":[41898475913315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB82","featured_media":{"alt":null,"id":23885600292963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dc66e9bf8257e9cefbceff375c0fc6b732a385_1b28bd8b-7408-4a32-934a-b59ba7f3a6ff.webp?v=1714839812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365b85aca099ff3ee09943bc8d986966cdd719d0_f6eaacef-750b-47bd-a9eb-12bab1dc4f41.webp?v=1714839815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2a875380a8b0ec93c63bf62fdfe9d13cc68b56_476d6e78-86a3-4321-beb8-8ef35d9917e9.webp?v=1714839817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e793d8db499a58bd80bfc02f794045856902fcb_912f89ae-c7c1-44bf-acb1-a01a080affe8.webp?v=1714839820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254f5a5f2c6a2b90df1208eecc7320009e052df5_9c07c0f8-fe74-4c43-ad3e-e46586d39755.webp?v=1714839824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b946da102685211224170213bdc5e6e6fa8e4e55_ae369d07-6d76-4a44-9e73-f4ecf0d12dec.webp?v=1714839827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90c46f442945ca99ce38d43d6c9f7054b09c82a_0809afe1-b3ff-49da-83f8-3b5ba93f2dab.webp?v=1714839829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dc66e9bf8257e9cefbceff375c0fc6b732a385_1b28bd8b-7408-4a32-934a-b59ba7f3a6ff.webp?v=1714839812","options":["color"],"media":[{"alt":null,"id":23885596065891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dc66e9bf8257e9cefbceff375c0fc6b732a385_1b28bd8b-7408-4a32-934a-b59ba7f3a6ff.webp?v=1714839812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dc66e9bf8257e9cefbceff375c0fc6b732a385_1b28bd8b-7408-4a32-934a-b59ba7f3a6ff.webp?v=1714839812","width":2000},{"alt":null,"id":23885596622947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365b85aca099ff3ee09943bc8d986966cdd719d0_f6eaacef-750b-47bd-a9eb-12bab1dc4f41.webp?v=1714839815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365b85aca099ff3ee09943bc8d986966cdd719d0_f6eaacef-750b-47bd-a9eb-12bab1dc4f41.webp?v=1714839815","width":2000},{"alt":null,"id":23885597245539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2a875380a8b0ec93c63bf62fdfe9d13cc68b56_476d6e78-86a3-4321-beb8-8ef35d9917e9.webp?v=1714839817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2a875380a8b0ec93c63bf62fdfe9d13cc68b56_476d6e78-86a3-4321-beb8-8ef35d9917e9.webp?v=1714839817","width":2000},{"alt":null,"id":23885597737059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e793d8db499a58bd80bfc02f794045856902fcb_912f89ae-c7c1-44bf-acb1-a01a080affe8.webp?v=1714839820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e793d8db499a58bd80bfc02f794045856902fcb_912f89ae-c7c1-44bf-acb1-a01a080affe8.webp?v=1714839820","width":2000},{"alt":null,"id":23885598163043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822","width":2000},{"alt":null,"id":23885598720099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254f5a5f2c6a2b90df1208eecc7320009e052df5_9c07c0f8-fe74-4c43-ad3e-e46586d39755.webp?v=1714839824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254f5a5f2c6a2b90df1208eecc7320009e052df5_9c07c0f8-fe74-4c43-ad3e-e46586d39755.webp?v=1714839824","width":2000},{"alt":null,"id":23885599211619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b946da102685211224170213bdc5e6e6fa8e4e55_ae369d07-6d76-4a44-9e73-f4ecf0d12dec.webp?v=1714839827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b946da102685211224170213bdc5e6e6fa8e4e55_ae369d07-6d76-4a44-9e73-f4ecf0d12dec.webp?v=1714839827","width":2000},{"alt":null,"id":23885599735907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90c46f442945ca99ce38d43d6c9f7054b09c82a_0809afe1-b3ff-49da-83f8-3b5ba93f2dab.webp?v=1714839829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90c46f442945ca99ce38d43d6c9f7054b09c82a_0809afe1-b3ff-49da-83f8-3b5ba93f2dab.webp?v=1714839829","width":2000},{"alt":null,"id":23885600292963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832","width":2000},{"alt":null,"id":23885600718947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898475618403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480346542179,"product_id":7411405488227,"position":5,"created_at":"2024-05-05T00:23:42+08:00","updated_at":"2024-05-05T00:23:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822","variant_ids":[41898475618403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB82","featured_media":{"alt":null,"id":23885598163043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898475683939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480349163619,"product_id":7411405488227,"position":10,"created_at":"2024-05-05T00:23:54+08:00","updated_at":"2024-05-05T00:23:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834","variant_ids":[41898475683939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB82","featured_media":{"alt":null,"id":23885600718947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/352fc4b1e20aec186a6a8c907f2af690edc0f73c_16b06429-7f53-4cf4-8527-7e0582f76520.webp?v=1714839834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898475913315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480348704867,"product_id":7411405488227,"position":9,"created_at":"2024-05-05T00:23:51+08:00","updated_at":"2024-05-05T00:23:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832","variant_ids":[41898475913315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB82","featured_media":{"alt":null,"id":23885600292963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab533fcd5210c0fa1e831d876f4564b3313e0d9_d048607c-3d2d-4f19-9206-56eda84c0c71.webp?v=1714839832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898475618403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31480346542179,"product_id":7411405488227,"position":5,"created_at":"2024-05-05T00:23:42+08:00","updated_at":"2024-05-05T00:23:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822","variant_ids":[41898475618403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB82","featured_media":{"alt":null,"id":23885598163043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc086cd634da1a49818d6af7f0165aa67b8ebb50_cc736150-7f97-4d8f-9d4c-8b149227a3e9.webp?v=1714839822"}},"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: "停產" }