$product = {"id":7413962834019,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb64","description":null,"published_at":"2024-06-11T17:46:16+08:00","created_at":"2024-05-05T13:51:12+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":41902743388259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484335063139,"product_id":7413962834019,"position":5,"created_at":"2024-05-05T13:51:23+08:00","updated_at":"2024-05-05T13:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283","variant_ids":[41902743388259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889628725347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902743453795,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484333359203,"product_id":7413962834019,"position":1,"created_at":"2024-05-05T13:51:14+08:00","updated_at":"2024-05-05T13:51:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274","variant_ids":[41902743453795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889627054179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902743715939,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484337487971,"product_id":7413962834019,"position":10,"created_at":"2024-05-05T13:51:34+08:00","updated_at":"2024-05-05T13:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294","variant_ids":[41902743715939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889631215715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c119c37458fcd7d5d29741d70a88fc07d9a70a_d44abc3b-9565-4802-80a5-767c6e9e4d39.webp?v=1714888277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7c7e88b8c85666c4601f636a4a1f0c1e01dd2f_b400f469-74a2-42ef-9b27-cce0d64354ad.webp?v=1714888279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22c6fbb5d0072af8dc2be595b86c7e0b8e14e52_513ee01e-0367-46e8-8bf2-d438dd9e7ac3.webp?v=1714888281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9aea47e7824cd468e5f9db76492e5816639ccd1_90f2a6e4-cc2a-4d0b-ac2a-ec4724ed75f1.webp?v=1714888285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd4968dc159f8b349697b8eb800674ead4c3fc9_4b19e17f-7479-42fc-bb86-d02ab6937b12.webp?v=1714888288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4508b7aa6dd84752d941ae21a782058f1bb6f4f5_f5ac900b-675e-4e7c-9ccf-db86ba4c27cd.webp?v=1714888290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5317c9fa883cc9df9b79501814c4bfea49987c9_62c2f293-c0ff-450d-8c73-a0a52d9fb711.webp?v=1714888292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274","options":["color"],"media":[{"alt":null,"id":23889627054179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274","width":2000},{"alt":null,"id":23889627414627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c119c37458fcd7d5d29741d70a88fc07d9a70a_d44abc3b-9565-4802-80a5-767c6e9e4d39.webp?v=1714888277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c119c37458fcd7d5d29741d70a88fc07d9a70a_d44abc3b-9565-4802-80a5-767c6e9e4d39.webp?v=1714888277","width":2000},{"alt":null,"id":23889627906147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7c7e88b8c85666c4601f636a4a1f0c1e01dd2f_b400f469-74a2-42ef-9b27-cce0d64354ad.webp?v=1714888279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7c7e88b8c85666c4601f636a4a1f0c1e01dd2f_b400f469-74a2-42ef-9b27-cce0d64354ad.webp?v=1714888279","width":2000},{"alt":null,"id":23889628299363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22c6fbb5d0072af8dc2be595b86c7e0b8e14e52_513ee01e-0367-46e8-8bf2-d438dd9e7ac3.webp?v=1714888281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22c6fbb5d0072af8dc2be595b86c7e0b8e14e52_513ee01e-0367-46e8-8bf2-d438dd9e7ac3.webp?v=1714888281","width":2000},{"alt":null,"id":23889628725347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283","width":2000},{"alt":null,"id":23889629085795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9aea47e7824cd468e5f9db76492e5816639ccd1_90f2a6e4-cc2a-4d0b-ac2a-ec4724ed75f1.webp?v=1714888285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9aea47e7824cd468e5f9db76492e5816639ccd1_90f2a6e4-cc2a-4d0b-ac2a-ec4724ed75f1.webp?v=1714888285","width":2000},{"alt":null,"id":23889629479011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd4968dc159f8b349697b8eb800674ead4c3fc9_4b19e17f-7479-42fc-bb86-d02ab6937b12.webp?v=1714888288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd4968dc159f8b349697b8eb800674ead4c3fc9_4b19e17f-7479-42fc-bb86-d02ab6937b12.webp?v=1714888288","width":2000},{"alt":null,"id":23889630330979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4508b7aa6dd84752d941ae21a782058f1bb6f4f5_f5ac900b-675e-4e7c-9ccf-db86ba4c27cd.webp?v=1714888290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4508b7aa6dd84752d941ae21a782058f1bb6f4f5_f5ac900b-675e-4e7c-9ccf-db86ba4c27cd.webp?v=1714888290","width":2000},{"alt":null,"id":23889630691427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5317c9fa883cc9df9b79501814c4bfea49987c9_62c2f293-c0ff-450d-8c73-a0a52d9fb711.webp?v=1714888292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5317c9fa883cc9df9b79501814c4bfea49987c9_62c2f293-c0ff-450d-8c73-a0a52d9fb711.webp?v=1714888292","width":2000},{"alt":null,"id":23889631215715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902743388259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484335063139,"product_id":7413962834019,"position":5,"created_at":"2024-05-05T13:51:23+08:00","updated_at":"2024-05-05T13:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283","variant_ids":[41902743388259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889628725347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902743453795,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484333359203,"product_id":7413962834019,"position":1,"created_at":"2024-05-05T13:51:14+08:00","updated_at":"2024-05-05T13:51:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274","variant_ids":[41902743453795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889627054179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0f803c0947daae4f7c16d244a431c2af0d06f4_c6e922ce-7821-449d-bd75-b5dfab14637a.webp?v=1714888274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902743715939,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484337487971,"product_id":7413962834019,"position":10,"created_at":"2024-05-05T13:51:34+08:00","updated_at":"2024-05-05T13:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294","variant_ids":[41902743715939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889631215715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e573d51dcf6ff3a62a3ff957484bb36f68f09316_0f973208-2e88-4142-a162-fa9a16e89db8.webp?v=1714888294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902743388259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31484335063139,"product_id":7413962834019,"position":5,"created_at":"2024-05-05T13:51:23+08:00","updated_at":"2024-05-05T13:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283","variant_ids":[41902743388259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23889628725347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b19c1443cfe94aaccc6773e2c3ecf4ebf976701_69853b4a-6bef-4fe0-9eb6-a63000f9e4c0.webp?v=1714888283"}},"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: "停產" }