$product = {"id":7408196223075,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-13-mini-mod-nx-printable-pb19","description":null,"published_at":"2024-06-11T16:33:59+08:00","created_at":"2024-05-03T12:18:43+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":41883741126755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471445737571,"product_id":7408196223075,"position":8,"created_at":"2024-05-03T12:19:02+08:00","updated_at":"2024-05-03T12:19:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942","variant_ids":[41883741126755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB19","featured_media":{"alt":null,"id":23876352082019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883741257827,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471443902563,"product_id":7408196223075,"position":4,"created_at":"2024-05-03T12:18:53+08:00","updated_at":"2024-05-03T12:18:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933","variant_ids":[41883741257827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB19","featured_media":{"alt":null,"id":23876350247011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883741552739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471445246051,"product_id":7408196223075,"position":7,"created_at":"2024-05-03T12:19:00+08:00","updated_at":"2024-05-03T12:19:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940","variant_ids":[41883741552739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB19","featured_media":{"alt":null,"id":23876351623267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d482439c982ae903d57b24409f6995e426b8c7b_2b2a9bac-8569-42d7-9f82-d938adc4f778.webp?v=1714709925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8c1376f337fe4f5032d05f6d65b0a1e947ca9c_3e078270-f4fc-4398-935f-d0b544306b82.webp?v=1714709928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3de4ec7969431e7ff506a32f39fa276a2092b2_cb8cc41b-7f33-4516-80d7-fe0eaef899d0.webp?v=1714709930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16527090d35dd7b265f2e638d9774cd75178bfd5_9a16fafc-746a-48bb-ae1d-3591fe7de22b.webp?v=1714709935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf7c6802cb7ec60709d3456992e880b259885b6_defe73a6-05b1-4a19-8950-41ab1bffb2ad.webp?v=1714709937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9089838a15039a9c0b76f079e2f9c104059a25b1_c05ff4fd-303a-4dfa-9f2d-f95d9961c007.webp?v=1714709944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a632bb96bd636cbe5d7b5279a81552bdc8ec5559_9d88a0e9-cb2e-42b0-a3a7-9d03fb4b21f8.webp?v=1714709946"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d482439c982ae903d57b24409f6995e426b8c7b_2b2a9bac-8569-42d7-9f82-d938adc4f778.webp?v=1714709925","options":["color"],"media":[{"alt":null,"id":23876348477539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d482439c982ae903d57b24409f6995e426b8c7b_2b2a9bac-8569-42d7-9f82-d938adc4f778.webp?v=1714709925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d482439c982ae903d57b24409f6995e426b8c7b_2b2a9bac-8569-42d7-9f82-d938adc4f778.webp?v=1714709925","width":2000},{"alt":null,"id":23876348969059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8c1376f337fe4f5032d05f6d65b0a1e947ca9c_3e078270-f4fc-4398-935f-d0b544306b82.webp?v=1714709928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8c1376f337fe4f5032d05f6d65b0a1e947ca9c_3e078270-f4fc-4398-935f-d0b544306b82.webp?v=1714709928","width":2000},{"alt":null,"id":23876349427811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3de4ec7969431e7ff506a32f39fa276a2092b2_cb8cc41b-7f33-4516-80d7-fe0eaef899d0.webp?v=1714709930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3de4ec7969431e7ff506a32f39fa276a2092b2_cb8cc41b-7f33-4516-80d7-fe0eaef899d0.webp?v=1714709930","width":2000},{"alt":null,"id":23876350247011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933","width":2000},{"alt":null,"id":23876350705763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16527090d35dd7b265f2e638d9774cd75178bfd5_9a16fafc-746a-48bb-ae1d-3591fe7de22b.webp?v=1714709935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16527090d35dd7b265f2e638d9774cd75178bfd5_9a16fafc-746a-48bb-ae1d-3591fe7de22b.webp?v=1714709935","width":2000},{"alt":null,"id":23876351131747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf7c6802cb7ec60709d3456992e880b259885b6_defe73a6-05b1-4a19-8950-41ab1bffb2ad.webp?v=1714709937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf7c6802cb7ec60709d3456992e880b259885b6_defe73a6-05b1-4a19-8950-41ab1bffb2ad.webp?v=1714709937","width":2000},{"alt":null,"id":23876351623267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940","width":2000},{"alt":null,"id":23876352082019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942","width":2000},{"alt":null,"id":23876352835683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9089838a15039a9c0b76f079e2f9c104059a25b1_c05ff4fd-303a-4dfa-9f2d-f95d9961c007.webp?v=1714709944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9089838a15039a9c0b76f079e2f9c104059a25b1_c05ff4fd-303a-4dfa-9f2d-f95d9961c007.webp?v=1714709944","width":2000},{"alt":null,"id":23876353294435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a632bb96bd636cbe5d7b5279a81552bdc8ec5559_9d88a0e9-cb2e-42b0-a3a7-9d03fb4b21f8.webp?v=1714709946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a632bb96bd636cbe5d7b5279a81552bdc8ec5559_9d88a0e9-cb2e-42b0-a3a7-9d03fb4b21f8.webp?v=1714709946","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883741126755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471445737571,"product_id":7408196223075,"position":8,"created_at":"2024-05-03T12:19:02+08:00","updated_at":"2024-05-03T12:19:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942","variant_ids":[41883741126755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB19","featured_media":{"alt":null,"id":23876352082019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883741257827,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471443902563,"product_id":7408196223075,"position":4,"created_at":"2024-05-03T12:18:53+08:00","updated_at":"2024-05-03T12:18:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933","variant_ids":[41883741257827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB19","featured_media":{"alt":null,"id":23876350247011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622bc14fcd109c91b49cea1c8d1598eb5b7d7f10_d61bbbb2-7f93-45b2-8df4-737c518294b4.webp?v=1714709933"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883741552739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471445246051,"product_id":7408196223075,"position":7,"created_at":"2024-05-03T12:19:00+08:00","updated_at":"2024-05-03T12:19:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940","variant_ids":[41883741552739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB19","featured_media":{"alt":null,"id":23876351623267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b33d52d4d9da1d662c4bd16da28d9cd6638ba1a_4013f05a-e02a-4dde-9cb8-724cf5375be1.webp?v=1714709940"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883741126755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31471445737571,"product_id":7408196223075,"position":8,"created_at":"2024-05-03T12:19:02+08:00","updated_at":"2024-05-03T12:19:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942","variant_ids":[41883741126755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB19","featured_media":{"alt":null,"id":23876352082019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f283b0a24a8c885608aedb76b0872300610fa4_72bd36bf-8cd1-43ff-a021-b6f253e6d63e.webp?v=1714709942"}},"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: "停產" }