$product = {"id":7366378487907,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險","handle":"iphone-14-pro-mod-nx-printable-sz05","description":null,"published_at":"2024-06-11T16:12:49+08:00","created_at":"2024-04-23T10:47:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-華納兄弟百年慶典 Warner Bros 100th Anniversary","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-warnerbros100","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-warnerbros100","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":41789065232483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383059628131,"product_id":7366378487907,"position":7,"created_at":"2024-04-23T10:47:44+08:00","updated_at":"2024-04-23T10:47:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464","variant_ids":[41789065232483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB0126224-SZ05","featured_media":{"alt":null,"id":23785272967267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41789065363555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383061921891,"product_id":7366378487907,"position":10,"created_at":"2024-04-23T10:47:52+08:00","updated_at":"2024-04-23T10:47:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472","variant_ids":[41789065363555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB0126204-SZ05","featured_media":{"alt":null,"id":23785275228259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41789065756771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383061430371,"product_id":7366378487907,"position":9,"created_at":"2024-04-23T10:47:49+08:00","updated_at":"2024-04-23T10:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469","variant_ids":[41789065756771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB01262J5-SZ05","featured_media":{"alt":null,"id":23785274769507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c3328d8aa4d00d543320d234c32183ed213df_87c0ce8d-05e8-494e-94e3-04b9352db1db.webp?v=1713840449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa3ff22e2e270e3bd47c9ce376313778b76dd604_88d5528b-984f-4b97-95e0-c555edbae8e3.webp?v=1713840452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52e761538df350f4088499537f84da15098c83_ca3e976c-a2b5-442f-9588-6b28abc9987c.webp?v=1713840454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32bd8c2c06b93f70308d1e937a98b04f4eb676ce_978dbdf2-430e-4cbe-ab94-3e24c8ad9366.webp?v=1713840457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98fd2b783a119989d2c8ca59d22db7734e3b5d2c_3ab2a1e4-c2ca-4bfc-8b66-8816ad9a256b.webp?v=1713840459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a974debe1199323f74dbbea21e001dd0666f6e0f_19063b40-e533-4dc0-a08c-06e53c4a18a2.webp?v=1713840462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99e05fefe4b828e5fd2f8ca9928c5b394655446_96a4d13c-7e27-4017-8ec5-2900a73ea4c0.webp?v=1713840467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c3328d8aa4d00d543320d234c32183ed213df_87c0ce8d-05e8-494e-94e3-04b9352db1db.webp?v=1713840449","options":["color"],"media":[{"alt":null,"id":23785269035107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c3328d8aa4d00d543320d234c32183ed213df_87c0ce8d-05e8-494e-94e3-04b9352db1db.webp?v=1713840449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c3328d8aa4d00d543320d234c32183ed213df_87c0ce8d-05e8-494e-94e3-04b9352db1db.webp?v=1713840449","width":2000},{"alt":null,"id":23785270116451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa3ff22e2e270e3bd47c9ce376313778b76dd604_88d5528b-984f-4b97-95e0-c555edbae8e3.webp?v=1713840452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa3ff22e2e270e3bd47c9ce376313778b76dd604_88d5528b-984f-4b97-95e0-c555edbae8e3.webp?v=1713840452","width":2000},{"alt":null,"id":23785270607971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52e761538df350f4088499537f84da15098c83_ca3e976c-a2b5-442f-9588-6b28abc9987c.webp?v=1713840454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52e761538df350f4088499537f84da15098c83_ca3e976c-a2b5-442f-9588-6b28abc9987c.webp?v=1713840454","width":2000},{"alt":null,"id":23785271033955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32bd8c2c06b93f70308d1e937a98b04f4eb676ce_978dbdf2-430e-4cbe-ab94-3e24c8ad9366.webp?v=1713840457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32bd8c2c06b93f70308d1e937a98b04f4eb676ce_978dbdf2-430e-4cbe-ab94-3e24c8ad9366.webp?v=1713840457","width":2000},{"alt":null,"id":23785271722083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98fd2b783a119989d2c8ca59d22db7734e3b5d2c_3ab2a1e4-c2ca-4bfc-8b66-8816ad9a256b.webp?v=1713840459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98fd2b783a119989d2c8ca59d22db7734e3b5d2c_3ab2a1e4-c2ca-4bfc-8b66-8816ad9a256b.webp?v=1713840459","width":2000},{"alt":null,"id":23785272377443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a974debe1199323f74dbbea21e001dd0666f6e0f_19063b40-e533-4dc0-a08c-06e53c4a18a2.webp?v=1713840462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a974debe1199323f74dbbea21e001dd0666f6e0f_19063b40-e533-4dc0-a08c-06e53c4a18a2.webp?v=1713840462","width":2000},{"alt":null,"id":23785272967267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464","width":2000},{"alt":null,"id":23785273753699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99e05fefe4b828e5fd2f8ca9928c5b394655446_96a4d13c-7e27-4017-8ec5-2900a73ea4c0.webp?v=1713840467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99e05fefe4b828e5fd2f8ca9928c5b394655446_96a4d13c-7e27-4017-8ec5-2900a73ea4c0.webp?v=1713840467","width":2000},{"alt":null,"id":23785274769507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469","width":2000},{"alt":null,"id":23785275228259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41789065232483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383059628131,"product_id":7366378487907,"position":7,"created_at":"2024-04-23T10:47:44+08:00","updated_at":"2024-04-23T10:47:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464","variant_ids":[41789065232483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB0126224-SZ05","featured_media":{"alt":null,"id":23785272967267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41789065363555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383061921891,"product_id":7366378487907,"position":10,"created_at":"2024-04-23T10:47:52+08:00","updated_at":"2024-04-23T10:47:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472","variant_ids":[41789065363555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB0126204-SZ05","featured_media":{"alt":null,"id":23785275228259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72428041d91199e0e1e84a7052ee796b352cca1_de2ac4e8-9c85-46f9-88ac-cc71a4e1d1a8.webp?v=1713840472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41789065756771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383061430371,"product_id":7366378487907,"position":9,"created_at":"2024-04-23T10:47:49+08:00","updated_at":"2024-04-23T10:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469","variant_ids":[41789065756771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB01262J5-SZ05","featured_media":{"alt":null,"id":23785274769507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe53cac4c1f77df818a5b2ea93f7429dfb4f38a6_c7944efa-edb4-498d-bf3c-d666f7140517.webp?v=1713840469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41789065232483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383059628131,"product_id":7366378487907,"position":7,"created_at":"2024-04-23T10:47:44+08:00","updated_at":"2024-04-23T10:47:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464","variant_ids":[41789065232483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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":"NPB0126224-SZ05","featured_media":{"alt":null,"id":23785272967267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2632bbeec260fce1b1b66a2174cd8acf09e3c853_c408a7f3-de2b-4a5a-a8bb-0c59e334ec0f.webp?v=1713840464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }