$product = {"id":7411241549923,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc10","description":null,"published_at":"2024-06-11T17:39:40+08:00","created_at":"2024-05-04T23:51:56+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":41896415330403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479938515043,"product_id":7411241549923,"position":8,"created_at":"2024-05-04T23:52:14+08:00","updated_at":"2024-05-04T23:52:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934","variant_ids":[41896415330403]},"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-PC10","featured_media":{"alt":null,"id":23885188923491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896415395939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479939596387,"product_id":7411241549923,"position":10,"created_at":"2024-05-04T23:52:19+08:00","updated_at":"2024-05-04T23:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939","variant_ids":[41896415395939]},"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-PC10","featured_media":{"alt":null,"id":23885190004835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896415887459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479934550115,"product_id":7411241549923,"position":1,"created_at":"2024-05-04T23:51:58+08:00","updated_at":"2024-05-04T23:51:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918","variant_ids":[41896415887459]},"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-PC10","featured_media":{"alt":null,"id":23885185384547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ca6ff7b07f6b5da46c7d59f57708448318e0b_d7f852e7-b8fb-487d-9991-e390f014526c.webp?v=1714837921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb5374fb32c842ffccde2abc500eb8963d1dcbd_536f608f-d93d-4938-89c1-a700e17fb905.webp?v=1714837923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8413db5bf6a785c238a0c15393024402ee5a18_e3efdf8f-5c68-49c2-aa49-3fa64ae31bb4.webp?v=1714837925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14516222336ae872d2f06031a0b4d590794fde09_e272da48-857e-425c-8b6e-47d71d69761e.webp?v=1714837928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab58916244ffe15862e62672022140d8e6357bfd_79f0f7b7-217b-428c-baae-a6d30698c662.webp?v=1714837930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a26d00ec518ce30d3a5702b4c1dfa9feeedf528_dac27b48-09c5-4186-94fa-4922b5e52ef0.webp?v=1714837932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c59aa62fe4ce1ad02ddae305e0e69c2e8282be6f_6f74c5a9-ff44-4602-88df-aad68d6eb8fa.webp?v=1714837937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918","options":["color"],"media":[{"alt":null,"id":23885185384547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918","width":2000},{"alt":null,"id":23885185941603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ca6ff7b07f6b5da46c7d59f57708448318e0b_d7f852e7-b8fb-487d-9991-e390f014526c.webp?v=1714837921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ca6ff7b07f6b5da46c7d59f57708448318e0b_d7f852e7-b8fb-487d-9991-e390f014526c.webp?v=1714837921","width":2000},{"alt":null,"id":23885186433123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb5374fb32c842ffccde2abc500eb8963d1dcbd_536f608f-d93d-4938-89c1-a700e17fb905.webp?v=1714837923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb5374fb32c842ffccde2abc500eb8963d1dcbd_536f608f-d93d-4938-89c1-a700e17fb905.webp?v=1714837923","width":2000},{"alt":null,"id":23885187055715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8413db5bf6a785c238a0c15393024402ee5a18_e3efdf8f-5c68-49c2-aa49-3fa64ae31bb4.webp?v=1714837925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8413db5bf6a785c238a0c15393024402ee5a18_e3efdf8f-5c68-49c2-aa49-3fa64ae31bb4.webp?v=1714837925","width":2000},{"alt":null,"id":23885187481699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14516222336ae872d2f06031a0b4d590794fde09_e272da48-857e-425c-8b6e-47d71d69761e.webp?v=1714837928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14516222336ae872d2f06031a0b4d590794fde09_e272da48-857e-425c-8b6e-47d71d69761e.webp?v=1714837928","width":2000},{"alt":null,"id":23885187874915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab58916244ffe15862e62672022140d8e6357bfd_79f0f7b7-217b-428c-baae-a6d30698c662.webp?v=1714837930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab58916244ffe15862e62672022140d8e6357bfd_79f0f7b7-217b-428c-baae-a6d30698c662.webp?v=1714837930","width":2000},{"alt":null,"id":23885188366435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a26d00ec518ce30d3a5702b4c1dfa9feeedf528_dac27b48-09c5-4186-94fa-4922b5e52ef0.webp?v=1714837932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a26d00ec518ce30d3a5702b4c1dfa9feeedf528_dac27b48-09c5-4186-94fa-4922b5e52ef0.webp?v=1714837932","width":2000},{"alt":null,"id":23885188923491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934","width":2000},{"alt":null,"id":23885189513315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c59aa62fe4ce1ad02ddae305e0e69c2e8282be6f_6f74c5a9-ff44-4602-88df-aad68d6eb8fa.webp?v=1714837937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c59aa62fe4ce1ad02ddae305e0e69c2e8282be6f_6f74c5a9-ff44-4602-88df-aad68d6eb8fa.webp?v=1714837937","width":2000},{"alt":null,"id":23885190004835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896415330403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479938515043,"product_id":7411241549923,"position":8,"created_at":"2024-05-04T23:52:14+08:00","updated_at":"2024-05-04T23:52:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934","variant_ids":[41896415330403]},"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-PC10","featured_media":{"alt":null,"id":23885188923491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896415395939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479939596387,"product_id":7411241549923,"position":10,"created_at":"2024-05-04T23:52:19+08:00","updated_at":"2024-05-04T23:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939","variant_ids":[41896415395939]},"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-PC10","featured_media":{"alt":null,"id":23885190004835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b2eac5c016d3836b9956238de4b619ba1c2439_c3225f4a-e63a-4e53-a942-a1030f4f44df.webp?v=1714837939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896415887459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479934550115,"product_id":7411241549923,"position":1,"created_at":"2024-05-04T23:51:58+08:00","updated_at":"2024-05-04T23:51:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918","variant_ids":[41896415887459]},"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-PC10","featured_media":{"alt":null,"id":23885185384547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b879970b8031ea3b15d9d656e97fe4d327891886_93fec38e-3cd8-4deb-bde5-6a2ecfafe48b.webp?v=1714837918"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896415330403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479938515043,"product_id":7411241549923,"position":8,"created_at":"2024-05-04T23:52:14+08:00","updated_at":"2024-05-04T23:52:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934","variant_ids":[41896415330403]},"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-PC10","featured_media":{"alt":null,"id":23885188923491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08f0aeb2acb7f8bc90ba518c003d4e8c2ec2082_6f0fb575-b7d3-4f63-b82a-3582523207c0.webp?v=1714837934"}},"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: "停產" }