$product = {"id":7414315974755,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb85","description":null,"published_at":"2024-06-11T17:50:44+08:00","created_at":"2024-05-05T14:21:37+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":41905650597987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158785123,"product_id":7414315974755,"position":10,"created_at":"2024-05-05T14:22:00+08:00","updated_at":"2024-05-05T14:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120","variant_ids":[41905650597987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890474270819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905650663523,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485154361443,"product_id":7414315974755,"position":8,"created_at":"2024-05-05T14:21:55+08:00","updated_at":"2024-05-05T14:21:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115","variant_ids":[41905650663523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890469716067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905650892899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485152428131,"product_id":7414315974755,"position":7,"created_at":"2024-05-05T14:21:53+08:00","updated_at":"2024-05-05T14:21:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113","variant_ids":[41905650892899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890467815523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ce5967551f0f11bd7c549c48f52848bef2fc40_53d5ea06-6987-4133-a3c1-97038623fa79.webp?v=1714890099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/423ca8ede7d193c584a74cab50d327ff89310740_c8bb9f53-38e6-4430-af49-cf1296776213.webp?v=1714890101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eac3faca1b8ab7b78df6909f9a69eb7eb5a6f71_81e7f905-508a-464a-80b4-2f7a8514cf76.webp?v=1714890104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c487fd3de319dd1b46ec73fad7a364a6ae79f19_11016cae-3597-4d9c-8300-5526b922e6fe.webp?v=1714890106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8128704024ff875ac0e4cdcf6d4f48f54afdaefd_c8d760b5-7d8d-49e0-8f36-068e48acd93b.webp?v=1714890108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3a7ac74478da9da8c133f4b25f85465db54dd4_35c62aa0-7c98-4f57-a2bc-8fee231bf7b2.webp?v=1714890110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e8d10ce44ed53f8508862826b0b7444e9c3265_5c2c7ff6-a29a-475a-94ee-efa8baf884c1.webp?v=1714890117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ce5967551f0f11bd7c549c48f52848bef2fc40_53d5ea06-6987-4133-a3c1-97038623fa79.webp?v=1714890099","options":["color"],"media":[{"alt":null,"id":23890453790819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ce5967551f0f11bd7c549c48f52848bef2fc40_53d5ea06-6987-4133-a3c1-97038623fa79.webp?v=1714890099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ce5967551f0f11bd7c549c48f52848bef2fc40_53d5ea06-6987-4133-a3c1-97038623fa79.webp?v=1714890099","width":2000},{"alt":null,"id":23890456412259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/423ca8ede7d193c584a74cab50d327ff89310740_c8bb9f53-38e6-4430-af49-cf1296776213.webp?v=1714890101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/423ca8ede7d193c584a74cab50d327ff89310740_c8bb9f53-38e6-4430-af49-cf1296776213.webp?v=1714890101","width":2000},{"alt":null,"id":23890458869859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eac3faca1b8ab7b78df6909f9a69eb7eb5a6f71_81e7f905-508a-464a-80b4-2f7a8514cf76.webp?v=1714890104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eac3faca1b8ab7b78df6909f9a69eb7eb5a6f71_81e7f905-508a-464a-80b4-2f7a8514cf76.webp?v=1714890104","width":2000},{"alt":null,"id":23890460770403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c487fd3de319dd1b46ec73fad7a364a6ae79f19_11016cae-3597-4d9c-8300-5526b922e6fe.webp?v=1714890106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c487fd3de319dd1b46ec73fad7a364a6ae79f19_11016cae-3597-4d9c-8300-5526b922e6fe.webp?v=1714890106","width":2000},{"alt":null,"id":23890462998627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8128704024ff875ac0e4cdcf6d4f48f54afdaefd_c8d760b5-7d8d-49e0-8f36-068e48acd93b.webp?v=1714890108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8128704024ff875ac0e4cdcf6d4f48f54afdaefd_c8d760b5-7d8d-49e0-8f36-068e48acd93b.webp?v=1714890108","width":2000},{"alt":null,"id":23890465488995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3a7ac74478da9da8c133f4b25f85465db54dd4_35c62aa0-7c98-4f57-a2bc-8fee231bf7b2.webp?v=1714890110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3a7ac74478da9da8c133f4b25f85465db54dd4_35c62aa0-7c98-4f57-a2bc-8fee231bf7b2.webp?v=1714890110","width":2000},{"alt":null,"id":23890467815523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113","width":2000},{"alt":null,"id":23890469716067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115","width":2000},{"alt":null,"id":23890472206435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e8d10ce44ed53f8508862826b0b7444e9c3265_5c2c7ff6-a29a-475a-94ee-efa8baf884c1.webp?v=1714890117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7e8d10ce44ed53f8508862826b0b7444e9c3265_5c2c7ff6-a29a-475a-94ee-efa8baf884c1.webp?v=1714890117","width":2000},{"alt":null,"id":23890474270819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905650597987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158785123,"product_id":7414315974755,"position":10,"created_at":"2024-05-05T14:22:00+08:00","updated_at":"2024-05-05T14:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120","variant_ids":[41905650597987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890474270819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905650663523,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485154361443,"product_id":7414315974755,"position":8,"created_at":"2024-05-05T14:21:55+08:00","updated_at":"2024-05-05T14:21:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115","variant_ids":[41905650663523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890469716067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/377dafcde5fc7ec734e7c12c276aed93484f95be_5874c69c-b23a-4a95-8a3b-72a3d5ef6174.webp?v=1714890115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905650892899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485152428131,"product_id":7414315974755,"position":7,"created_at":"2024-05-05T14:21:53+08:00","updated_at":"2024-05-05T14:21:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113","variant_ids":[41905650892899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890467815523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b6594a4f68cdfce4e07a4258bb67e64bad37d6_8a4adeaa-0fc5-463a-91de-1a2bd1a3b80a.webp?v=1714890113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905650597987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158785123,"product_id":7414315974755,"position":10,"created_at":"2024-05-05T14:22:00+08:00","updated_at":"2024-05-05T14:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120","variant_ids":[41905650597987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23890474270819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e69feed2dc9ebee2ba6bb383bf8e92922f017b_951aa6cd-a1c3-4bb0-a5da-38a64b4169a5.webp?v=1714890120"}},"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: "停產" }