$product = {"id":7411326058595,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc01","description":null,"published_at":"2024-06-11T17:41:54+08:00","created_at":"2024-05-05T00:08:06+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":41897472491619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480146296931,"product_id":7411326058595,"position":3,"created_at":"2024-05-05T00:08:13+08:00","updated_at":"2024-05-05T00:08:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893","variant_ids":[41897472491619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885397262435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897472557155,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480145838179,"product_id":7411326058595,"position":2,"created_at":"2024-05-05T00:08:11+08:00","updated_at":"2024-05-05T00:08:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891","variant_ids":[41897472557155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885396705379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897472786531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480148492387,"product_id":7411326058595,"position":7,"created_at":"2024-05-05T00:08:23+08:00","updated_at":"2024-05-05T00:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903","variant_ids":[41897472786531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885399785571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8769d176424668e78975d0d2a0b8113436951c4d_b8a7aadc-b35e-4170-928c-df1f21a0ddab.webp?v=1714838888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3820a446c0427bbeba80008f707a1a4ed24a7086_034a8a0e-7c4f-4ddf-ade0-a4bd9f63b046.webp?v=1714838895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d0d5d66c187ba05d4143eade1edf1cda0e491_0c9180b5-6698-4d63-9980-1aaac2329f45.webp?v=1714838898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58faf2d4491648951473bd2677c5a5ba675dfc18_fbc5edda-1465-41ba-b48e-28daab3433e7.webp?v=1714838900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c741dc6fa8017ddcc9ab524555380d0c078e929_a3d5e3ce-f4ef-4554-a21f-9e4edbaa3186.webp?v=1714838905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aaef5fa8982e076223cea35d49fbc91d4886e86_c6648fb0-6c8f-40aa-bab1-a1a2072fd91d.webp?v=1714838908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc734f8e6fcbcbb224924b56d5684b7bdc23531f_578ad71c-687e-4364-87a1-d67ff2f5ba56.webp?v=1714838910"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8769d176424668e78975d0d2a0b8113436951c4d_b8a7aadc-b35e-4170-928c-df1f21a0ddab.webp?v=1714838888","options":["color"],"media":[{"alt":null,"id":23885396115555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8769d176424668e78975d0d2a0b8113436951c4d_b8a7aadc-b35e-4170-928c-df1f21a0ddab.webp?v=1714838888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8769d176424668e78975d0d2a0b8113436951c4d_b8a7aadc-b35e-4170-928c-df1f21a0ddab.webp?v=1714838888","width":2000},{"alt":null,"id":23885396705379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891","width":2000},{"alt":null,"id":23885397262435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893","width":2000},{"alt":null,"id":23885397786723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3820a446c0427bbeba80008f707a1a4ed24a7086_034a8a0e-7c4f-4ddf-ade0-a4bd9f63b046.webp?v=1714838895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3820a446c0427bbeba80008f707a1a4ed24a7086_034a8a0e-7c4f-4ddf-ade0-a4bd9f63b046.webp?v=1714838895","width":2000},{"alt":null,"id":23885398442083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d0d5d66c187ba05d4143eade1edf1cda0e491_0c9180b5-6698-4d63-9980-1aaac2329f45.webp?v=1714838898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d0d5d66c187ba05d4143eade1edf1cda0e491_0c9180b5-6698-4d63-9980-1aaac2329f45.webp?v=1714838898","width":2000},{"alt":null,"id":23885399031907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58faf2d4491648951473bd2677c5a5ba675dfc18_fbc5edda-1465-41ba-b48e-28daab3433e7.webp?v=1714838900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58faf2d4491648951473bd2677c5a5ba675dfc18_fbc5edda-1465-41ba-b48e-28daab3433e7.webp?v=1714838900","width":2000},{"alt":null,"id":23885399785571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903","width":2000},{"alt":null,"id":23885400604771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c741dc6fa8017ddcc9ab524555380d0c078e929_a3d5e3ce-f4ef-4554-a21f-9e4edbaa3186.webp?v=1714838905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c741dc6fa8017ddcc9ab524555380d0c078e929_a3d5e3ce-f4ef-4554-a21f-9e4edbaa3186.webp?v=1714838905","width":2000},{"alt":null,"id":23885401063523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aaef5fa8982e076223cea35d49fbc91d4886e86_c6648fb0-6c8f-40aa-bab1-a1a2072fd91d.webp?v=1714838908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aaef5fa8982e076223cea35d49fbc91d4886e86_c6648fb0-6c8f-40aa-bab1-a1a2072fd91d.webp?v=1714838908","width":2000},{"alt":null,"id":23885401587811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc734f8e6fcbcbb224924b56d5684b7bdc23531f_578ad71c-687e-4364-87a1-d67ff2f5ba56.webp?v=1714838910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc734f8e6fcbcbb224924b56d5684b7bdc23531f_578ad71c-687e-4364-87a1-d67ff2f5ba56.webp?v=1714838910","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897472491619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480146296931,"product_id":7411326058595,"position":3,"created_at":"2024-05-05T00:08:13+08:00","updated_at":"2024-05-05T00:08:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893","variant_ids":[41897472491619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885397262435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897472557155,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480145838179,"product_id":7411326058595,"position":2,"created_at":"2024-05-05T00:08:11+08:00","updated_at":"2024-05-05T00:08:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891","variant_ids":[41897472557155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885396705379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3559f85dd95791f4038cb1bfdcda91672d8a8f03_4ca903b5-a8aa-4c07-84d5-755b8f80dd2f.webp?v=1714838891"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897472786531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480148492387,"product_id":7411326058595,"position":7,"created_at":"2024-05-05T00:08:23+08:00","updated_at":"2024-05-05T00:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903","variant_ids":[41897472786531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885399785571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51146aa52e7f5cfbfeaa45ebb6e87d903f5c395_11d8f59f-6ced-4fc3-b136-02dee56c6980.webp?v=1714838903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897472491619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480146296931,"product_id":7411326058595,"position":3,"created_at":"2024-05-05T00:08:13+08:00","updated_at":"2024-05-05T00:08:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893","variant_ids":[41897472491619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾白風暴兵 - 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-PC01","featured_media":{"alt":null,"id":23885397262435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae250355ef5e2ae75896f7365575b36b0392e67_8dc3fb2e-5bd4-4bd1-a30c-d2e84dd0e0df.webp?v=1714838893"}},"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: "停產" }