$product = {"id":7414134571107,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb28","description":null,"published_at":"2024-06-11T17:49:19+08:00","created_at":"2024-05-05T14:12:14+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":41904341319779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748136547,"product_id":7414134571107,"position":4,"created_at":"2024-05-05T14:12:23+08:00","updated_at":"2024-05-05T14:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543","variant_ids":[41904341319779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890042814563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904341418083,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484753084515,"product_id":7414134571107,"position":7,"created_at":"2024-05-05T14:12:31+08:00","updated_at":"2024-05-05T14:12:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551","variant_ids":[41904341418083]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890048778339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904341647459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484756983907,"product_id":7414134571107,"position":9,"created_at":"2024-05-05T14:12:35+08:00","updated_at":"2024-05-05T14:12:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556","variant_ids":[41904341647459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890052644963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9362c457b3167aae9221057dda83b96066dab223_f5bd45ed-6f3d-4e71-9fcb-9c7f0ac645d2.webp?v=1714889536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d043287f9f9c4ffd81fd98b4c520008838a6de40_a5387bd1-d3bb-4241-aec0-aefc93aebabe.webp?v=1714889538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca5d66b77152ab5df0a44eae7c42878a5b9e49_6efecaf7-6128-4c7c-ab0b-237d5c58d94c.webp?v=1714889541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bc166ef0ee2abfe884628c9ec7654bfe1eb4d3_14a0acc1-b4f0-42b2-b798-fc62bf5e2567.webp?v=1714889546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c4971c7b11596bc414b681cbb18e73b68c614e_a682c51c-4e07-40b3-9d48-d0f54aa6e4b8.webp?v=1714889548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c81c845538a5a1367780e3c690cb16460d3fc1_f327d495-979a-4864-9771-451b727f2cfa.webp?v=1714889553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730124edf3eaa04329ea7042d91730c288a69d0_44de73f2-bdb3-44c2-88d9-7e412e7cd1c5.webp?v=1714889558"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9362c457b3167aae9221057dda83b96066dab223_f5bd45ed-6f3d-4e71-9fcb-9c7f0ac645d2.webp?v=1714889536","options":["color"],"media":[{"alt":null,"id":23890040979555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9362c457b3167aae9221057dda83b96066dab223_f5bd45ed-6f3d-4e71-9fcb-9c7f0ac645d2.webp?v=1714889536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9362c457b3167aae9221057dda83b96066dab223_f5bd45ed-6f3d-4e71-9fcb-9c7f0ac645d2.webp?v=1714889536","width":2000},{"alt":null,"id":23890041372771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d043287f9f9c4ffd81fd98b4c520008838a6de40_a5387bd1-d3bb-4241-aec0-aefc93aebabe.webp?v=1714889538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d043287f9f9c4ffd81fd98b4c520008838a6de40_a5387bd1-d3bb-4241-aec0-aefc93aebabe.webp?v=1714889538","width":2000},{"alt":null,"id":23890042093667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca5d66b77152ab5df0a44eae7c42878a5b9e49_6efecaf7-6128-4c7c-ab0b-237d5c58d94c.webp?v=1714889541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca5d66b77152ab5df0a44eae7c42878a5b9e49_6efecaf7-6128-4c7c-ab0b-237d5c58d94c.webp?v=1714889541","width":2000},{"alt":null,"id":23890042814563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543","width":2000},{"alt":null,"id":23890044813411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bc166ef0ee2abfe884628c9ec7654bfe1eb4d3_14a0acc1-b4f0-42b2-b798-fc62bf5e2567.webp?v=1714889546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bc166ef0ee2abfe884628c9ec7654bfe1eb4d3_14a0acc1-b4f0-42b2-b798-fc62bf5e2567.webp?v=1714889546","width":2000},{"alt":null,"id":23890046681187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c4971c7b11596bc414b681cbb18e73b68c614e_a682c51c-4e07-40b3-9d48-d0f54aa6e4b8.webp?v=1714889548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c4971c7b11596bc414b681cbb18e73b68c614e_a682c51c-4e07-40b3-9d48-d0f54aa6e4b8.webp?v=1714889548","width":2000},{"alt":null,"id":23890048778339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551","width":2000},{"alt":null,"id":23890050646115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c81c845538a5a1367780e3c690cb16460d3fc1_f327d495-979a-4864-9771-451b727f2cfa.webp?v=1714889553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c81c845538a5a1367780e3c690cb16460d3fc1_f327d495-979a-4864-9771-451b727f2cfa.webp?v=1714889553","width":2000},{"alt":null,"id":23890052644963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556","width":2000},{"alt":null,"id":23890054479971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730124edf3eaa04329ea7042d91730c288a69d0_44de73f2-bdb3-44c2-88d9-7e412e7cd1c5.webp?v=1714889558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730124edf3eaa04329ea7042d91730c288a69d0_44de73f2-bdb3-44c2-88d9-7e412e7cd1c5.webp?v=1714889558","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904341319779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748136547,"product_id":7414134571107,"position":4,"created_at":"2024-05-05T14:12:23+08:00","updated_at":"2024-05-05T14:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543","variant_ids":[41904341319779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890042814563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904341418083,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484753084515,"product_id":7414134571107,"position":7,"created_at":"2024-05-05T14:12:31+08:00","updated_at":"2024-05-05T14:12:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551","variant_ids":[41904341418083]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890048778339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a5a8a5d78ac60bfbb1f6b7d0c928c58bdd514e_fc394af9-d222-4fd2-82c5-9c37dcb58c84.webp?v=1714889551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904341647459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484756983907,"product_id":7414134571107,"position":9,"created_at":"2024-05-05T14:12:35+08:00","updated_at":"2024-05-05T14:12:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556","variant_ids":[41904341647459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890052644963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a864658fda361db23a0d5b39fd1579d89784bc_85be9397-6d46-4704-b097-a4e0c1c9a855.webp?v=1714889556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904341319779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748136547,"product_id":7414134571107,"position":4,"created_at":"2024-05-05T14:12:23+08:00","updated_at":"2024-05-05T14:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543","variant_ids":[41904341319779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23890042814563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e519f9ab9ffd9bf5dc0882bbcb59dabf7252d114_37327c2e-787e-4f62-8ce6-43336613fd9b.webp?v=1714889543"}},"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: "停產" }