$product = {"id":7369089876067,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險","handle":"iphone-14-pro-mod-nx-magsafe-printable-sz05","description":null,"published_at":"2024-06-11T17:31:01+08:00","created_at":"2024-04-23T14:43:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區華納兄弟百年慶典 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-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-warnerbros100","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":41792764870755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386654900323,"product_id":7369089876067,"position":6,"created_at":"2024-04-23T14:43:21+08:00","updated_at":"2024-04-23T14:43:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601","variant_ids":[41792764870755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788888588387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792764936291,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386655490147,"product_id":7369089876067,"position":7,"created_at":"2024-04-23T14:43:23+08:00","updated_at":"2024-04-23T14:43:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603","variant_ids":[41792764936291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788889145443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792765165667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386652541027,"product_id":7369089876067,"position":2,"created_at":"2024-04-23T14:43:13+08:00","updated_at":"2024-04-23T14:43:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593","variant_ids":[41792765165667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788886163555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ba88a6ac5eb000175361e85bc7aaa0434cff_856b1750-17b1-4980-88ca-8b91e7556544.webp?v=1713854591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c6256182703824ae1e84b0cbc0ddc3ac72a4d_85c83d39-bd67-44b6-a71f-c2630b47c26d.webp?v=1713854595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68842e692f22a154468a69a939e33e6c2e5e7196_c9f659e5-4691-4b35-aad3-3f70109f955f.webp?v=1713854597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56b5af4aca262447dee56d7021df5911080a093_07e1b37c-cd9b-4942-a398-6d589eb8bc35.webp?v=1713854599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5db11ba7bc0654b18fb21eba406a4066296f5c2_9db01b1b-ffc5-41eb-880e-5b4e024683b2.webp?v=1713854605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/112cd7de283a912b7a52b1bcf1edcf9600c83cd1_eb04711f-9088-4b5f-9c59-7478e271ca47.webp?v=1713854607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d761b4b1e4b0ce5791a00591843c8a51d5550dec_c04f5441-26f9-4cff-afd4-0807f2d2e388.webp?v=1713854610"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ba88a6ac5eb000175361e85bc7aaa0434cff_856b1750-17b1-4980-88ca-8b91e7556544.webp?v=1713854591","options":["color"],"media":[{"alt":null,"id":23788885737571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ba88a6ac5eb000175361e85bc7aaa0434cff_856b1750-17b1-4980-88ca-8b91e7556544.webp?v=1713854591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ba88a6ac5eb000175361e85bc7aaa0434cff_856b1750-17b1-4980-88ca-8b91e7556544.webp?v=1713854591","width":2000},{"alt":null,"id":23788886163555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593","width":2000},{"alt":null,"id":23788886622307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c6256182703824ae1e84b0cbc0ddc3ac72a4d_85c83d39-bd67-44b6-a71f-c2630b47c26d.webp?v=1713854595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1c6256182703824ae1e84b0cbc0ddc3ac72a4d_85c83d39-bd67-44b6-a71f-c2630b47c26d.webp?v=1713854595","width":2000},{"alt":null,"id":23788887048291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68842e692f22a154468a69a939e33e6c2e5e7196_c9f659e5-4691-4b35-aad3-3f70109f955f.webp?v=1713854597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68842e692f22a154468a69a939e33e6c2e5e7196_c9f659e5-4691-4b35-aad3-3f70109f955f.webp?v=1713854597","width":2000},{"alt":null,"id":23788887474275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56b5af4aca262447dee56d7021df5911080a093_07e1b37c-cd9b-4942-a398-6d589eb8bc35.webp?v=1713854599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56b5af4aca262447dee56d7021df5911080a093_07e1b37c-cd9b-4942-a398-6d589eb8bc35.webp?v=1713854599","width":2000},{"alt":null,"id":23788888588387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601","width":2000},{"alt":null,"id":23788889145443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603","width":2000},{"alt":null,"id":23788889636963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5db11ba7bc0654b18fb21eba406a4066296f5c2_9db01b1b-ffc5-41eb-880e-5b4e024683b2.webp?v=1713854605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5db11ba7bc0654b18fb21eba406a4066296f5c2_9db01b1b-ffc5-41eb-880e-5b4e024683b2.webp?v=1713854605","width":2000},{"alt":null,"id":23788889931875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/112cd7de283a912b7a52b1bcf1edcf9600c83cd1_eb04711f-9088-4b5f-9c59-7478e271ca47.webp?v=1713854607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/112cd7de283a912b7a52b1bcf1edcf9600c83cd1_eb04711f-9088-4b5f-9c59-7478e271ca47.webp?v=1713854607","width":2000},{"alt":null,"id":23788890816611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d761b4b1e4b0ce5791a00591843c8a51d5550dec_c04f5441-26f9-4cff-afd4-0807f2d2e388.webp?v=1713854610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d761b4b1e4b0ce5791a00591843c8a51d5550dec_c04f5441-26f9-4cff-afd4-0807f2d2e388.webp?v=1713854610","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792764870755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386654900323,"product_id":7369089876067,"position":6,"created_at":"2024-04-23T14:43:21+08:00","updated_at":"2024-04-23T14:43:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601","variant_ids":[41792764870755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788888588387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792764936291,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386655490147,"product_id":7369089876067,"position":7,"created_at":"2024-04-23T14:43:23+08:00","updated_at":"2024-04-23T14:43:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603","variant_ids":[41792764936291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788889145443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1f2f47c171eafdaf6596a416bca19f9ea20d91_b5a5c5e4-2660-468d-944c-dad40a1cda16.webp?v=1713854603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792765165667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386652541027,"product_id":7369089876067,"position":2,"created_at":"2024-04-23T14:43:13+08:00","updated_at":"2024-04-23T14:43:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593","variant_ids":[41792765165667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788886163555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d30308e51addc533a321d37c37bc707e20d909_fe55a614-794b-458e-8080-f5d1a54c8b2f.webp?v=1713854593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792764870755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386654900323,"product_id":7369089876067,"position":6,"created_at":"2024-04-23T14:43:21+08:00","updated_at":"2024-04-23T14:43:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601","variant_ids":[41792764870755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788888588387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4e242149bfe84c2033dc52780b83c463641dfd_bc4fe942-6bb4-45ca-8181-6a7d6196d80b.webp?v=1713854601"}},"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: "停產" }