$product = {"id":7414028861539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb40","description":null,"published_at":"2024-06-11T17:48:10+08:00","created_at":"2024-05-05T14:04:10+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 13 mini","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":41903503245411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498608227,"product_id":7414028861539,"position":3,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057","variant_ids":[41903503245411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB0122824-PB40","featured_media":{"alt":null,"id":23889792729187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503310947,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499656803,"product_id":7414028861539,"position":5,"created_at":"2024-05-05T14:04:22+08:00","updated_at":"2024-05-05T14:04:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062","variant_ids":[41903503310947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB0122804-PB40","featured_media":{"alt":null,"id":23889793777763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503540323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499132515,"product_id":7414028861539,"position":4,"created_at":"2024-05-05T14:04:19+08:00","updated_at":"2024-05-05T14:04:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059","variant_ids":[41903503540323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB01228J5-PB40","featured_media":{"alt":null,"id":23889793286243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558a660d000a467f288f58f01474c18563731b57_eea63c05-43aa-4854-840b-9557fc2184f4.webp?v=1714889053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2435bca460dbf9bdcf6277ca2a80e21fb8cfb6cb_32917e56-03c7-42a4-9ca4-91963c14d1fe.webp?v=1714889055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea295443e16167fe0f37904dd98d1ae20859cfe0_c87bf031-626b-4f19-b943-0ef9a3d64b53.webp?v=1714889064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57def3efb9f91f83adb724716f2e850c8e093d_c5767b62-c3a4-4d03-9ee1-093995e1d6d3.webp?v=1714889066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4376d6aed41cc5b63f5b2a874f5dbd420b0d9dea_df27ff2e-8204-41d5-ac4a-ce9ed2b50979.webp?v=1714889069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1350c75318d09161580d4bc1807c6c69af6c6ae9_400fb4f5-5225-46e3-bde7-77cfb443e6ce.webp?v=1714889071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeabe312664f7c31e0ab60fc15c262e362984a59_a9fe8b4a-b7a1-4abc-9b15-41881d761f25.webp?v=1714889073"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558a660d000a467f288f58f01474c18563731b57_eea63c05-43aa-4854-840b-9557fc2184f4.webp?v=1714889053","options":["color"],"media":[{"alt":null,"id":23889791844451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558a660d000a467f288f58f01474c18563731b57_eea63c05-43aa-4854-840b-9557fc2184f4.webp?v=1714889053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558a660d000a467f288f58f01474c18563731b57_eea63c05-43aa-4854-840b-9557fc2184f4.webp?v=1714889053","width":2000},{"alt":null,"id":23889792368739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2435bca460dbf9bdcf6277ca2a80e21fb8cfb6cb_32917e56-03c7-42a4-9ca4-91963c14d1fe.webp?v=1714889055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2435bca460dbf9bdcf6277ca2a80e21fb8cfb6cb_32917e56-03c7-42a4-9ca4-91963c14d1fe.webp?v=1714889055","width":2000},{"alt":null,"id":23889792729187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057","width":2000},{"alt":null,"id":23889793286243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059","width":2000},{"alt":null,"id":23889793777763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062","width":2000},{"alt":null,"id":23889794269283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea295443e16167fe0f37904dd98d1ae20859cfe0_c87bf031-626b-4f19-b943-0ef9a3d64b53.webp?v=1714889064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea295443e16167fe0f37904dd98d1ae20859cfe0_c87bf031-626b-4f19-b943-0ef9a3d64b53.webp?v=1714889064","width":2000},{"alt":null,"id":23889794793571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57def3efb9f91f83adb724716f2e850c8e093d_c5767b62-c3a4-4d03-9ee1-093995e1d6d3.webp?v=1714889066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57def3efb9f91f83adb724716f2e850c8e093d_c5767b62-c3a4-4d03-9ee1-093995e1d6d3.webp?v=1714889066","width":2000},{"alt":null,"id":23889795383395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4376d6aed41cc5b63f5b2a874f5dbd420b0d9dea_df27ff2e-8204-41d5-ac4a-ce9ed2b50979.webp?v=1714889069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4376d6aed41cc5b63f5b2a874f5dbd420b0d9dea_df27ff2e-8204-41d5-ac4a-ce9ed2b50979.webp?v=1714889069","width":2000},{"alt":null,"id":23889795809379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1350c75318d09161580d4bc1807c6c69af6c6ae9_400fb4f5-5225-46e3-bde7-77cfb443e6ce.webp?v=1714889071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1350c75318d09161580d4bc1807c6c69af6c6ae9_400fb4f5-5225-46e3-bde7-77cfb443e6ce.webp?v=1714889071","width":2000},{"alt":null,"id":23889796333667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeabe312664f7c31e0ab60fc15c262e362984a59_a9fe8b4a-b7a1-4abc-9b15-41881d761f25.webp?v=1714889073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeabe312664f7c31e0ab60fc15c262e362984a59_a9fe8b4a-b7a1-4abc-9b15-41881d761f25.webp?v=1714889073","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903503245411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498608227,"product_id":7414028861539,"position":3,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057","variant_ids":[41903503245411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB0122824-PB40","featured_media":{"alt":null,"id":23889792729187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503310947,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499656803,"product_id":7414028861539,"position":5,"created_at":"2024-05-05T14:04:22+08:00","updated_at":"2024-05-05T14:04:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062","variant_ids":[41903503310947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB0122804-PB40","featured_media":{"alt":null,"id":23889793777763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca8460397a13acae66d1b24ecfafdad89a5b75_1872702c-a51e-4c57-878a-0b6341ec8f63.webp?v=1714889062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503540323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499132515,"product_id":7414028861539,"position":4,"created_at":"2024-05-05T14:04:19+08:00","updated_at":"2024-05-05T14:04:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059","variant_ids":[41903503540323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB01228J5-PB40","featured_media":{"alt":null,"id":23889793286243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67fbb9446e6b642d241e5fc8c442f54c3d7aa952_48c7efa9-3d39-4e18-bf4f-4c3dac3be0f3.webp?v=1714889059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903503245411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498608227,"product_id":7414028861539,"position":3,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057","variant_ids":[41903503245411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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":"MPB0122824-PB40","featured_media":{"alt":null,"id":23889792729187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0c9f6acc772c81ea4beeacc40dfc7fb32b17b6_d52d3d64-9eca-4b12-b605-ba3bfc3f65c4.webp?v=1714889057"}},"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: "停產" }