$product = {"id":7408078356579,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列","handle":"iphone-13-mini-mod-nx-printable-pb65","description":null,"published_at":"2024-06-11T16:30:48+08:00","created_at":"2024-05-03T11:55:12+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":41882431324259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471137194083,"product_id":7408078356579,"position":6,"created_at":"2024-05-03T11:55:29+08:00","updated_at":"2024-05-03T11:55:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529","variant_ids":[41882431324259]},"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-PB65","featured_media":{"alt":null,"id":23876042424419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882431455331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471135621219,"product_id":7408078356579,"position":4,"created_at":"2024-05-03T11:55:22+08:00","updated_at":"2024-05-03T11:55:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522","variant_ids":[41882431455331]},"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-PB65","featured_media":{"alt":null,"id":23876040818787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882431684707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471135948899,"product_id":7408078356579,"position":5,"created_at":"2024-05-03T11:55:26+08:00","updated_at":"2024-05-03T11:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526","variant_ids":[41882431684707]},"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-PB65","featured_media":{"alt":null,"id":23876041179235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6f8dd820a22b8bc17d0d51660fd7727116ee17_6944e0f3-cb87-4883-8de2-80a7b787809c.webp?v=1714708515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e184e2e957420883dec41d60ba3ac961adf6aa_9d488f1d-2dfb-413e-a128-22de39b4054d.webp?v=1714708517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27dc0911784f9cf859932bed82668e1adf4c6e87_1e63c990-e009-4ed1-9910-ea6365f4c709.webp?v=1714708520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecd33be05a31e04d9be58da934310233a7fb2ee_503e5d7e-8bc9-42b3-8bb0-e5e297ca62b2.webp?v=1714708531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b6e4100d9bab0d0594d72d7f65073e7e7b5d70_04abd2f2-7c53-490d-8d3c-dfac1feccba1.webp?v=1714708534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dc051d26e0639b8cc538afbcfbead71e5bd26c_a85c1632-e927-4438-9fab-c9df0557f24f.webp?v=1714708536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207ca664422ccf06dd051f65186a47596a75d4bf_18a5704b-b334-4780-a223-ae004d27f4ef.webp?v=1714708539"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6f8dd820a22b8bc17d0d51660fd7727116ee17_6944e0f3-cb87-4883-8de2-80a7b787809c.webp?v=1714708515","options":["color"],"media":[{"alt":null,"id":23876039475299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6f8dd820a22b8bc17d0d51660fd7727116ee17_6944e0f3-cb87-4883-8de2-80a7b787809c.webp?v=1714708515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6f8dd820a22b8bc17d0d51660fd7727116ee17_6944e0f3-cb87-4883-8de2-80a7b787809c.webp?v=1714708515","width":2000},{"alt":null,"id":23876039966819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e184e2e957420883dec41d60ba3ac961adf6aa_9d488f1d-2dfb-413e-a128-22de39b4054d.webp?v=1714708517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e184e2e957420883dec41d60ba3ac961adf6aa_9d488f1d-2dfb-413e-a128-22de39b4054d.webp?v=1714708517","width":2000},{"alt":null,"id":23876040458339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27dc0911784f9cf859932bed82668e1adf4c6e87_1e63c990-e009-4ed1-9910-ea6365f4c709.webp?v=1714708520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27dc0911784f9cf859932bed82668e1adf4c6e87_1e63c990-e009-4ed1-9910-ea6365f4c709.webp?v=1714708520","width":2000},{"alt":null,"id":23876040818787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522","width":2000},{"alt":null,"id":23876041179235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526","width":2000},{"alt":null,"id":23876042424419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529","width":2000},{"alt":null,"id":23876042752099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecd33be05a31e04d9be58da934310233a7fb2ee_503e5d7e-8bc9-42b3-8bb0-e5e297ca62b2.webp?v=1714708531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecd33be05a31e04d9be58da934310233a7fb2ee_503e5d7e-8bc9-42b3-8bb0-e5e297ca62b2.webp?v=1714708531","width":2000},{"alt":null,"id":23876043210851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b6e4100d9bab0d0594d72d7f65073e7e7b5d70_04abd2f2-7c53-490d-8d3c-dfac1feccba1.webp?v=1714708534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b6e4100d9bab0d0594d72d7f65073e7e7b5d70_04abd2f2-7c53-490d-8d3c-dfac1feccba1.webp?v=1714708534","width":2000},{"alt":null,"id":23876043538531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dc051d26e0639b8cc538afbcfbead71e5bd26c_a85c1632-e927-4438-9fab-c9df0557f24f.webp?v=1714708536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dc051d26e0639b8cc538afbcfbead71e5bd26c_a85c1632-e927-4438-9fab-c9df0557f24f.webp?v=1714708536","width":2000},{"alt":null,"id":23876043964515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207ca664422ccf06dd051f65186a47596a75d4bf_18a5704b-b334-4780-a223-ae004d27f4ef.webp?v=1714708539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207ca664422ccf06dd051f65186a47596a75d4bf_18a5704b-b334-4780-a223-ae004d27f4ef.webp?v=1714708539","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882431324259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471137194083,"product_id":7408078356579,"position":6,"created_at":"2024-05-03T11:55:29+08:00","updated_at":"2024-05-03T11:55:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529","variant_ids":[41882431324259]},"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-PB65","featured_media":{"alt":null,"id":23876042424419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882431455331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471135621219,"product_id":7408078356579,"position":4,"created_at":"2024-05-03T11:55:22+08:00","updated_at":"2024-05-03T11:55:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522","variant_ids":[41882431455331]},"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-PB65","featured_media":{"alt":null,"id":23876040818787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeef0dce5ad703b1dbdbc7fb44cb5e5ae698dd45_0947722c-97a4-40be-8fb5-683f29ce7bb4.webp?v=1714708522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882431684707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471135948899,"product_id":7408078356579,"position":5,"created_at":"2024-05-03T11:55:26+08:00","updated_at":"2024-05-03T11:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526","variant_ids":[41882431684707]},"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-PB65","featured_media":{"alt":null,"id":23876041179235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4adf50eb8b2e1ba4b096ad604521bf1a0cb7802_a580902b-a8ec-47bc-ba4b-2d36d4f49499.webp?v=1714708526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882431324259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31471137194083,"product_id":7408078356579,"position":6,"created_at":"2024-05-03T11:55:29+08:00","updated_at":"2024-05-03T11:55:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529","variant_ids":[41882431324259]},"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-PB65","featured_media":{"alt":null,"id":23876042424419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad30514911ffedca821c0e346945fedac033aace_3fa8dcbc-a9c3-40cc-b88e-dd01477cfef4.webp?v=1714708529"}},"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: "停產" }