$product = {"id":7408186163299,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-13-mini-mod-nx-printable-pb44","description":null,"published_at":"2024-06-11T16:33:43+08:00","created_at":"2024-05-03T12:16:46+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 13 mini","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":41883633844323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471418146915,"product_id":7408186163299,"position":6,"created_at":"2024-05-03T12:17:00+08:00","updated_at":"2024-05-03T12:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820","variant_ids":[41883633844323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0122824-PB44","featured_media":{"alt":null,"id":23876324360291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883633975395,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471417360483,"product_id":7408186163299,"position":4,"created_at":"2024-05-03T12:16:56+08:00","updated_at":"2024-05-03T12:16:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816","variant_ids":[41883633975395]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0122804-PB44","featured_media":{"alt":null,"id":23876323573859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883634630755,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471415722083,"product_id":7408186163299,"position":1,"created_at":"2024-05-03T12:16:49+08:00","updated_at":"2024-05-03T12:16:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809","variant_ids":[41883634630755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB01228J5-PB44","featured_media":{"alt":null,"id":23876322033763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926dfd0c99eab84c2ac859b1a033e5778c232390_bf4dc163-ca0a-46f1-9e4d-a7d5282e2998.webp?v=1714709811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc685836808c3c2b88bedcce2da1d5f9efe32897_df898dde-02cf-4b63-8fc3-9cf65acf7e65.webp?v=1714709814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0603f255732b05915024e6e4754e3ac7213ab9c_b89eb0ab-94f2-4c73-b89d-0b1d2fabcffd.webp?v=1714709818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86805a0e206c5e220f645f06aedd0e73f7974f8_ae9a64af-66f0-40f1-be87-3291ff0c8776.webp?v=1714709823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde1f38910df9ffb98e0991835123ee97190b405_1eb7cb55-5ef7-4d01-9d37-34e71cdc0bd5.webp?v=1714709825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7879aa8e7262d3849bd9eced78dfba90fe1286b7_28a53e56-18eb-4cbf-a9ba-1d8eabeeed53.webp?v=1714709827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2759245737273f3c1c14e13428226c103f4fba66_34b36d2c-3a24-4f9a-96ab-798c637fadae.webp?v=1714709830"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809","options":["color"],"media":[{"alt":null,"id":23876322033763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809","width":2000},{"alt":null,"id":23876322525283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926dfd0c99eab84c2ac859b1a033e5778c232390_bf4dc163-ca0a-46f1-9e4d-a7d5282e2998.webp?v=1714709811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926dfd0c99eab84c2ac859b1a033e5778c232390_bf4dc163-ca0a-46f1-9e4d-a7d5282e2998.webp?v=1714709811","width":2000},{"alt":null,"id":23876322951267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc685836808c3c2b88bedcce2da1d5f9efe32897_df898dde-02cf-4b63-8fc3-9cf65acf7e65.webp?v=1714709814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc685836808c3c2b88bedcce2da1d5f9efe32897_df898dde-02cf-4b63-8fc3-9cf65acf7e65.webp?v=1714709814","width":2000},{"alt":null,"id":23876323573859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816","width":2000},{"alt":null,"id":23876323999843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0603f255732b05915024e6e4754e3ac7213ab9c_b89eb0ab-94f2-4c73-b89d-0b1d2fabcffd.webp?v=1714709818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0603f255732b05915024e6e4754e3ac7213ab9c_b89eb0ab-94f2-4c73-b89d-0b1d2fabcffd.webp?v=1714709818","width":2000},{"alt":null,"id":23876324360291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820","width":2000},{"alt":null,"id":23876324819043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86805a0e206c5e220f645f06aedd0e73f7974f8_ae9a64af-66f0-40f1-be87-3291ff0c8776.webp?v=1714709823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86805a0e206c5e220f645f06aedd0e73f7974f8_ae9a64af-66f0-40f1-be87-3291ff0c8776.webp?v=1714709823","width":2000},{"alt":null,"id":23876325736547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde1f38910df9ffb98e0991835123ee97190b405_1eb7cb55-5ef7-4d01-9d37-34e71cdc0bd5.webp?v=1714709825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde1f38910df9ffb98e0991835123ee97190b405_1eb7cb55-5ef7-4d01-9d37-34e71cdc0bd5.webp?v=1714709825","width":2000},{"alt":null,"id":23876326293603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7879aa8e7262d3849bd9eced78dfba90fe1286b7_28a53e56-18eb-4cbf-a9ba-1d8eabeeed53.webp?v=1714709827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7879aa8e7262d3849bd9eced78dfba90fe1286b7_28a53e56-18eb-4cbf-a9ba-1d8eabeeed53.webp?v=1714709827","width":2000},{"alt":null,"id":23876326785123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2759245737273f3c1c14e13428226c103f4fba66_34b36d2c-3a24-4f9a-96ab-798c637fadae.webp?v=1714709830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2759245737273f3c1c14e13428226c103f4fba66_34b36d2c-3a24-4f9a-96ab-798c637fadae.webp?v=1714709830","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883633844323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471418146915,"product_id":7408186163299,"position":6,"created_at":"2024-05-03T12:17:00+08:00","updated_at":"2024-05-03T12:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820","variant_ids":[41883633844323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0122824-PB44","featured_media":{"alt":null,"id":23876324360291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883633975395,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471417360483,"product_id":7408186163299,"position":4,"created_at":"2024-05-03T12:16:56+08:00","updated_at":"2024-05-03T12:16:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816","variant_ids":[41883633975395]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0122804-PB44","featured_media":{"alt":null,"id":23876323573859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba6eff58de40ad3c922d458c1c0761a7887f5d_fbbc21d6-e474-4ff5-8706-936ce47e70e5.webp?v=1714709816"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883634630755,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471415722083,"product_id":7408186163299,"position":1,"created_at":"2024-05-03T12:16:49+08:00","updated_at":"2024-05-03T12:16:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809","variant_ids":[41883634630755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB01228J5-PB44","featured_media":{"alt":null,"id":23876322033763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0365bdada7d57c72f08bf5b487e706f77eabd6d1_59becb05-3ed1-4b47-8747-ff1dc7bf5ac8.webp?v=1714709809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883633844323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31471418146915,"product_id":7408186163299,"position":6,"created_at":"2024-05-03T12:17:00+08:00","updated_at":"2024-05-03T12:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820","variant_ids":[41883633844323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0122824-PB44","featured_media":{"alt":null,"id":23876324360291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb20a45c3b456ec96ea4d7427cd89fbc5b23f78_35b92ab1-324e-4b1b-b3a3-7fa8c7bacd03.webp?v=1714709820"}},"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: "停產" }