$product = {"id":7408091660387,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-13-mini-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:31:09+08:00","created_at":"2024-05-03T11:58:13+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":41882580549731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471171043427,"product_id":7408091660387,"position":2,"created_at":"2024-05-03T11:58:18+08:00","updated_at":"2024-05-03T11:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698","variant_ids":[41882580549731]},"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-PC13","featured_media":{"alt":null,"id":23876076273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882580615267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471173042275,"product_id":7408091660387,"position":6,"created_at":"2024-05-03T11:58:28+08:00","updated_at":"2024-05-03T11:58:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708","variant_ids":[41882580615267]},"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-PC13","featured_media":{"alt":null,"id":23876078272611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882580844643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471171469411,"product_id":7408091660387,"position":3,"created_at":"2024-05-03T11:58:20+08:00","updated_at":"2024-05-03T11:58:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700","variant_ids":[41882580844643]},"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-PC13","featured_media":{"alt":null,"id":23876076798051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6bd9ea87a9982b0e6f3393e3189b4869fa8ded_2f99b436-dbbf-433a-9b05-043a716dfffe.webp?v=1714708695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b158a0595f1f716d7d36b36406b072af6bea17_9164263c-4358-4bd7-8976-ffee47a1ee9e.webp?v=1714708703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081ca7db3350a179042e5bcf33fe7106ca9aaf37_b3a76ae1-dd4e-43f7-a475-ef451a991b87.webp?v=1714708705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957fc5e5f7e52c40741c0e39e150be184951a03a_84e8a3dc-fb45-4ee1-b4af-e189848a4793.webp?v=1714708710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2be65d2a986bf1091b75003fefd21217b8a47e2_34dcd12b-dfea-46ee-a801-ce2a9ca835a4.webp?v=1714708712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4815d8ec667d84268d3ecf6eee764ae5b74e9ce1_17ab154b-f11a-4d87-823a-892923d916ba.webp?v=1714708715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a7281bf2679efb6f0df2c2322e06c11d76b8235_ca66ea32-3b84-48eb-88fd-56db7c21195c.webp?v=1714708717"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6bd9ea87a9982b0e6f3393e3189b4869fa8ded_2f99b436-dbbf-433a-9b05-043a716dfffe.webp?v=1714708695","options":["color"],"media":[{"alt":null,"id":23876075880547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6bd9ea87a9982b0e6f3393e3189b4869fa8ded_2f99b436-dbbf-433a-9b05-043a716dfffe.webp?v=1714708695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6bd9ea87a9982b0e6f3393e3189b4869fa8ded_2f99b436-dbbf-433a-9b05-043a716dfffe.webp?v=1714708695","width":2000},{"alt":null,"id":23876076273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698","width":2000},{"alt":null,"id":23876076798051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700","width":2000},{"alt":null,"id":23876077322339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b158a0595f1f716d7d36b36406b072af6bea17_9164263c-4358-4bd7-8976-ffee47a1ee9e.webp?v=1714708703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b158a0595f1f716d7d36b36406b072af6bea17_9164263c-4358-4bd7-8976-ffee47a1ee9e.webp?v=1714708703","width":2000},{"alt":null,"id":23876077846627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081ca7db3350a179042e5bcf33fe7106ca9aaf37_b3a76ae1-dd4e-43f7-a475-ef451a991b87.webp?v=1714708705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081ca7db3350a179042e5bcf33fe7106ca9aaf37_b3a76ae1-dd4e-43f7-a475-ef451a991b87.webp?v=1714708705","width":2000},{"alt":null,"id":23876078272611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708","width":2000},{"alt":null,"id":23876079452259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957fc5e5f7e52c40741c0e39e150be184951a03a_84e8a3dc-fb45-4ee1-b4af-e189848a4793.webp?v=1714708710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957fc5e5f7e52c40741c0e39e150be184951a03a_84e8a3dc-fb45-4ee1-b4af-e189848a4793.webp?v=1714708710","width":2000},{"alt":null,"id":23876079976547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2be65d2a986bf1091b75003fefd21217b8a47e2_34dcd12b-dfea-46ee-a801-ce2a9ca835a4.webp?v=1714708712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2be65d2a986bf1091b75003fefd21217b8a47e2_34dcd12b-dfea-46ee-a801-ce2a9ca835a4.webp?v=1714708712","width":2000},{"alt":null,"id":23876080435299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4815d8ec667d84268d3ecf6eee764ae5b74e9ce1_17ab154b-f11a-4d87-823a-892923d916ba.webp?v=1714708715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4815d8ec667d84268d3ecf6eee764ae5b74e9ce1_17ab154b-f11a-4d87-823a-892923d916ba.webp?v=1714708715","width":2000},{"alt":null,"id":23876080861283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a7281bf2679efb6f0df2c2322e06c11d76b8235_ca66ea32-3b84-48eb-88fd-56db7c21195c.webp?v=1714708717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a7281bf2679efb6f0df2c2322e06c11d76b8235_ca66ea32-3b84-48eb-88fd-56db7c21195c.webp?v=1714708717","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882580549731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471171043427,"product_id":7408091660387,"position":2,"created_at":"2024-05-03T11:58:18+08:00","updated_at":"2024-05-03T11:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698","variant_ids":[41882580549731]},"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-PC13","featured_media":{"alt":null,"id":23876076273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882580615267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471173042275,"product_id":7408091660387,"position":6,"created_at":"2024-05-03T11:58:28+08:00","updated_at":"2024-05-03T11:58:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708","variant_ids":[41882580615267]},"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-PC13","featured_media":{"alt":null,"id":23876078272611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca7eb43fbdb25e035c6e9ec1d680f25ea7f913_3d11faa2-e102-45dd-b010-fda7ca24e502.webp?v=1714708708"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882580844643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471171469411,"product_id":7408091660387,"position":3,"created_at":"2024-05-03T11:58:20+08:00","updated_at":"2024-05-03T11:58:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700","variant_ids":[41882580844643]},"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-PC13","featured_media":{"alt":null,"id":23876076798051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad3e80e0e56dd9bfa3966d522ab3c08ac8ccb4_87b07c55-4868-4da5-b7e8-ce14ad8e1ff9.webp?v=1714708700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882580549731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31471171043427,"product_id":7408091660387,"position":2,"created_at":"2024-05-03T11:58:18+08:00","updated_at":"2024-05-03T11:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698","variant_ids":[41882580549731]},"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-PC13","featured_media":{"alt":null,"id":23876076273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d7dbcc482a3099c3bf2a2d3323f234cbf7af92_524c585b-4340-40b3-bec8-2a015b5b47c4.webp?v=1714708698"}},"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: "停產" }