$product = {"id":7414547185763,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-13-mini-mod-nx-magsafe-printable-fz05","description":null,"published_at":"2024-06-11T17:51:55+08:00","created_at":"2024-05-05T14:29:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","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":41907256787043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727998051,"product_id":7414547185763,"position":6,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594","variant_ids":[41907256787043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-FZ05","featured_media":{"alt":null,"id":23891050266723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907256918115,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485729112163,"product_id":7414547185763,"position":7,"created_at":"2024-05-05T14:29:56+08:00","updated_at":"2024-05-05T14:29:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596","variant_ids":[41907256918115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-FZ05","featured_media":{"alt":null,"id":23891052331107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907257442403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485726130275,"product_id":7414547185763,"position":5,"created_at":"2024-05-05T14:29:52+08:00","updated_at":"2024-05-05T14:29:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592","variant_ids":[41907257442403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-FZ05","featured_media":{"alt":null,"id":23891048497251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9720fc62fc2fdd052e95fb420784edff18027a02_988b37be-3dac-414b-ab6a-09f8e6dba00a.webp?v=1714890582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7da0333f730f4bc82c5dd97f0e333350b5b1e2_6d53649d-83dd-43ff-b4ed-6826971aff39.webp?v=1714890585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc49dd7209dbfc2b280ad8458bba65418ad86c7_745e8ed0-8cb4-4505-98ad-8ac4e4ea6f3a.webp?v=1714890587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5656888f1a69768f2a893f276fbec0b3ec2c849_b2369b67-ff26-4c69-9bb8-30c23d9a2bf2.webp?v=1714890589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebf5d19c091130093f3f0f8efe5acb30e0e3e30_312ef06d-498d-4486-bb93-455d8732a442.webp?v=1714890598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da66c0b7257b331d745bab1f3d6cae10c4a84c3_d628f5e8-da39-4694-af0f-3bd2d1288f53.webp?v=1714890601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f91179c6b4d175559807ed24b1ae65234fee01_1b07c370-ed2c-4803-970a-64019aec72c4.webp?v=1714890603"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9720fc62fc2fdd052e95fb420784edff18027a02_988b37be-3dac-414b-ab6a-09f8e6dba00a.webp?v=1714890582","options":["color"],"media":[{"alt":null,"id":23891040338019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9720fc62fc2fdd052e95fb420784edff18027a02_988b37be-3dac-414b-ab6a-09f8e6dba00a.webp?v=1714890582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9720fc62fc2fdd052e95fb420784edff18027a02_988b37be-3dac-414b-ab6a-09f8e6dba00a.webp?v=1714890582","width":2000},{"alt":null,"id":23891042369635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7da0333f730f4bc82c5dd97f0e333350b5b1e2_6d53649d-83dd-43ff-b4ed-6826971aff39.webp?v=1714890585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7da0333f730f4bc82c5dd97f0e333350b5b1e2_6d53649d-83dd-43ff-b4ed-6826971aff39.webp?v=1714890585","width":2000},{"alt":null,"id":23891044302947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc49dd7209dbfc2b280ad8458bba65418ad86c7_745e8ed0-8cb4-4505-98ad-8ac4e4ea6f3a.webp?v=1714890587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc49dd7209dbfc2b280ad8458bba65418ad86c7_745e8ed0-8cb4-4505-98ad-8ac4e4ea6f3a.webp?v=1714890587","width":2000},{"alt":null,"id":23891046695011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5656888f1a69768f2a893f276fbec0b3ec2c849_b2369b67-ff26-4c69-9bb8-30c23d9a2bf2.webp?v=1714890589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5656888f1a69768f2a893f276fbec0b3ec2c849_b2369b67-ff26-4c69-9bb8-30c23d9a2bf2.webp?v=1714890589","width":2000},{"alt":null,"id":23891048497251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592","width":2000},{"alt":null,"id":23891050266723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594","width":2000},{"alt":null,"id":23891052331107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596","width":2000},{"alt":null,"id":23891054067811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebf5d19c091130093f3f0f8efe5acb30e0e3e30_312ef06d-498d-4486-bb93-455d8732a442.webp?v=1714890598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebf5d19c091130093f3f0f8efe5acb30e0e3e30_312ef06d-498d-4486-bb93-455d8732a442.webp?v=1714890598","width":2000},{"alt":null,"id":23891056132195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da66c0b7257b331d745bab1f3d6cae10c4a84c3_d628f5e8-da39-4694-af0f-3bd2d1288f53.webp?v=1714890601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da66c0b7257b331d745bab1f3d6cae10c4a84c3_d628f5e8-da39-4694-af0f-3bd2d1288f53.webp?v=1714890601","width":2000},{"alt":null,"id":23891057967203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f91179c6b4d175559807ed24b1ae65234fee01_1b07c370-ed2c-4803-970a-64019aec72c4.webp?v=1714890603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f91179c6b4d175559807ed24b1ae65234fee01_1b07c370-ed2c-4803-970a-64019aec72c4.webp?v=1714890603","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907256787043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727998051,"product_id":7414547185763,"position":6,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594","variant_ids":[41907256787043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-FZ05","featured_media":{"alt":null,"id":23891050266723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907256918115,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485729112163,"product_id":7414547185763,"position":7,"created_at":"2024-05-05T14:29:56+08:00","updated_at":"2024-05-05T14:29:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596","variant_ids":[41907256918115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-FZ05","featured_media":{"alt":null,"id":23891052331107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7657b3ff94bc17cfa139ae3dd9278e8f3b969db4_4d15837d-632f-47ff-8fb6-2a7b4d43b80d.webp?v=1714890596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907257442403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485726130275,"product_id":7414547185763,"position":5,"created_at":"2024-05-05T14:29:52+08:00","updated_at":"2024-05-05T14:29:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592","variant_ids":[41907257442403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-FZ05","featured_media":{"alt":null,"id":23891048497251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff23dad1ad32e224c1b2c0058a54f70551394e63_5acd6e5c-1c1e-43ea-8428-bdeb83912d8e.webp?v=1714890592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907256787043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727998051,"product_id":7414547185763,"position":6,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594","variant_ids":[41907256787043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-FZ05","featured_media":{"alt":null,"id":23891050266723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ab13e4463dbffcdfaeee47a93700c89ca325dff_a67fc6f0-c24a-4df7-8268-25ccbc42713a.webp?v=1714890594"}},"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: "停產" }