$product = {"id":7407813132387,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-14-pro-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:23:32+08:00","created_at":"2024-05-03T10:54:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"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":41879128670307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470427996259,"product_id":7407813132387,"position":1,"created_at":"2024-05-03T10:54:31+08:00","updated_at":"2024-05-03T10:54:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","variant_ids":[41879128670307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB77","featured_media":{"alt":null,"id":23875331293283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879128735843,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470430847075,"product_id":7407813132387,"position":8,"created_at":"2024-05-03T10:54:47+08:00","updated_at":"2024-05-03T10:54:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887","variant_ids":[41879128735843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB77","featured_media":{"alt":null,"id":23875334144099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879128997987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470429241443,"product_id":7407813132387,"position":4,"created_at":"2024-05-03T10:54:38+08:00","updated_at":"2024-05-03T10:54:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878","variant_ids":[41879128997987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB77","featured_media":{"alt":null,"id":23875332538467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447a2cf2563ae4a0002da4ecbdb8cabb0d73ced1_8f78169a-ea2c-4a8b-80e9-dcaf0a26a262.webp?v=1714704873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060ea2a26bd0b35b3778f9547a545dc50138d499_76f3bb3d-4955-4a1f-ba80-ea4568c73dbc.webp?v=1714704875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8fba79c4904e383ea293c2bf227fcadf8c9b66d_f1561141-de2a-403e-a1a3-d766febe6f0e.webp?v=1714704880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47664aaa28c2e2fe6a86b2cd7d292529ef633129_2a372868-e0fb-4d77-82b0-875a08d9f197.webp?v=1714704882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e58030ffd7683a75e900389e1ce50af870ce9dc_8de28568-030e-461d-86db-4465cb6d62e5.webp?v=1714704885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ea2bd016042a1ddaa19fbc9904f95800ac57f5_df5a6037-51e4-483e-8d96-9ee079a8d61b.webp?v=1714704890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6bfe58e29c5d7de3793a50bbc49aace88617522_9f83dba4-5c71-4555-9329-8fcd2c00436d.webp?v=1714704892"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","options":["color"],"media":[{"alt":null,"id":23875331293283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","width":2000},{"alt":null,"id":23875331653731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447a2cf2563ae4a0002da4ecbdb8cabb0d73ced1_8f78169a-ea2c-4a8b-80e9-dcaf0a26a262.webp?v=1714704873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447a2cf2563ae4a0002da4ecbdb8cabb0d73ced1_8f78169a-ea2c-4a8b-80e9-dcaf0a26a262.webp?v=1714704873","width":2000},{"alt":null,"id":23875332046947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060ea2a26bd0b35b3778f9547a545dc50138d499_76f3bb3d-4955-4a1f-ba80-ea4568c73dbc.webp?v=1714704875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060ea2a26bd0b35b3778f9547a545dc50138d499_76f3bb3d-4955-4a1f-ba80-ea4568c73dbc.webp?v=1714704875","width":2000},{"alt":null,"id":23875332538467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878","width":2000},{"alt":null,"id":23875332866147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8fba79c4904e383ea293c2bf227fcadf8c9b66d_f1561141-de2a-403e-a1a3-d766febe6f0e.webp?v=1714704880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8fba79c4904e383ea293c2bf227fcadf8c9b66d_f1561141-de2a-403e-a1a3-d766febe6f0e.webp?v=1714704880","width":2000},{"alt":null,"id":23875333390435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47664aaa28c2e2fe6a86b2cd7d292529ef633129_2a372868-e0fb-4d77-82b0-875a08d9f197.webp?v=1714704882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47664aaa28c2e2fe6a86b2cd7d292529ef633129_2a372868-e0fb-4d77-82b0-875a08d9f197.webp?v=1714704882","width":2000},{"alt":null,"id":23875333750883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e58030ffd7683a75e900389e1ce50af870ce9dc_8de28568-030e-461d-86db-4465cb6d62e5.webp?v=1714704885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e58030ffd7683a75e900389e1ce50af870ce9dc_8de28568-030e-461d-86db-4465cb6d62e5.webp?v=1714704885","width":2000},{"alt":null,"id":23875334144099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887","width":2000},{"alt":null,"id":23875334602851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ea2bd016042a1ddaa19fbc9904f95800ac57f5_df5a6037-51e4-483e-8d96-9ee079a8d61b.webp?v=1714704890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ea2bd016042a1ddaa19fbc9904f95800ac57f5_df5a6037-51e4-483e-8d96-9ee079a8d61b.webp?v=1714704890","width":2000},{"alt":null,"id":23875334897763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6bfe58e29c5d7de3793a50bbc49aace88617522_9f83dba4-5c71-4555-9329-8fcd2c00436d.webp?v=1714704892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6bfe58e29c5d7de3793a50bbc49aace88617522_9f83dba4-5c71-4555-9329-8fcd2c00436d.webp?v=1714704892","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879128670307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470427996259,"product_id":7407813132387,"position":1,"created_at":"2024-05-03T10:54:31+08:00","updated_at":"2024-05-03T10:54:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","variant_ids":[41879128670307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB77","featured_media":{"alt":null,"id":23875331293283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879128735843,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470430847075,"product_id":7407813132387,"position":8,"created_at":"2024-05-03T10:54:47+08:00","updated_at":"2024-05-03T10:54:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887","variant_ids":[41879128735843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB77","featured_media":{"alt":null,"id":23875334144099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5a6a72f5e6e80551846b3720f412b34403442d_04018cff-dd4f-43e9-a4e2-c06832e61ab6.webp?v=1714704887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879128997987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470429241443,"product_id":7407813132387,"position":4,"created_at":"2024-05-03T10:54:38+08:00","updated_at":"2024-05-03T10:54:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878","variant_ids":[41879128997987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB77","featured_media":{"alt":null,"id":23875332538467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4ce8068249815cfab09ed1a85a94b52a69454_0ca16aca-60a0-4ed8-a399-751a96415fcf.webp?v=1714704878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879128670307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470427996259,"product_id":7407813132387,"position":1,"created_at":"2024-05-03T10:54:31+08:00","updated_at":"2024-05-03T10:54:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871","variant_ids":[41879128670307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB77","featured_media":{"alt":null,"id":23875331293283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbd2c866f526f79a6a5f75fcf1ca4df2d79ebf2_5cd1134d-9257-4c53-a81e-0c4cf6e1cd3f.webp?v=1714704871"}},"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: "停產" }