$product = {"id":7411215138915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb08","description":null,"published_at":"2024-06-11T17:38:59+08:00","created_at":"2024-05-04T23:46:55+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 14 Pro","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":41896084930659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479870619747,"product_id":7411215138915,"position":8,"created_at":"2024-05-04T23:47:13+08:00","updated_at":"2024-05-04T23:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633","variant_ids":[41896084930659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB08","featured_media":{"alt":null,"id":23885121060963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896084996195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479867113571,"product_id":7411215138915,"position":2,"created_at":"2024-05-04T23:46:59+08:00","updated_at":"2024-05-04T23:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619","variant_ids":[41896084996195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB08","featured_media":{"alt":null,"id":23885117489251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896085225571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479868227683,"product_id":7411215138915,"position":4,"created_at":"2024-05-04T23:47:04+08:00","updated_at":"2024-05-04T23:47:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624","variant_ids":[41896085225571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB08","featured_media":{"alt":null,"id":23885118636131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ebac94bc531f5139b268dfad4588378fbbeb17_d35939c6-50e6-4c8d-8ff4-c4df1b92e589.webp?v=1714837617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e78ff967fb5c788d7e72c0009405b5d5ed3764_4e04b0b9-8d0a-4ebd-b21f-dc87968c0e9c.webp?v=1714837622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a418adf4811924f9bc843414692b88521d130_5f398384-d3ff-4da3-ba49-d07abde0f874.webp?v=1714837626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f21c54130d262a4618f3db583b0f4d4684b144b_4f97e40b-82f9-429b-a70e-5b29c9e3c01b.webp?v=1714837628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17d7b19514b41594448734a4009383c33bd5ddc_0a69dc2c-309f-42b2-9408-48ceb3be8e47.webp?v=1714837631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a242a3e13656cc1a14cd708f581cb088564656_975ce145-f0b4-4795-8cde-245051504aca.webp?v=1714837635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bf7fd7deb1711faa4421af220587f535fcca39_61ce69d7-9144-4f68-bd0c-b83f3f9e2e3c.webp?v=1714837638"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ebac94bc531f5139b268dfad4588378fbbeb17_d35939c6-50e6-4c8d-8ff4-c4df1b92e589.webp?v=1714837617","options":["color"],"media":[{"alt":null,"id":23885116964963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ebac94bc531f5139b268dfad4588378fbbeb17_d35939c6-50e6-4c8d-8ff4-c4df1b92e589.webp?v=1714837617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ebac94bc531f5139b268dfad4588378fbbeb17_d35939c6-50e6-4c8d-8ff4-c4df1b92e589.webp?v=1714837617","width":2000},{"alt":null,"id":23885117489251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619","width":2000},{"alt":null,"id":23885118013539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e78ff967fb5c788d7e72c0009405b5d5ed3764_4e04b0b9-8d0a-4ebd-b21f-dc87968c0e9c.webp?v=1714837622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e78ff967fb5c788d7e72c0009405b5d5ed3764_4e04b0b9-8d0a-4ebd-b21f-dc87968c0e9c.webp?v=1714837622","width":2000},{"alt":null,"id":23885118636131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624","width":2000},{"alt":null,"id":23885118996579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a418adf4811924f9bc843414692b88521d130_5f398384-d3ff-4da3-ba49-d07abde0f874.webp?v=1714837626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a418adf4811924f9bc843414692b88521d130_5f398384-d3ff-4da3-ba49-d07abde0f874.webp?v=1714837626","width":2000},{"alt":null,"id":23885119684707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f21c54130d262a4618f3db583b0f4d4684b144b_4f97e40b-82f9-429b-a70e-5b29c9e3c01b.webp?v=1714837628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f21c54130d262a4618f3db583b0f4d4684b144b_4f97e40b-82f9-429b-a70e-5b29c9e3c01b.webp?v=1714837628","width":2000},{"alt":null,"id":23885120405603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17d7b19514b41594448734a4009383c33bd5ddc_0a69dc2c-309f-42b2-9408-48ceb3be8e47.webp?v=1714837631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17d7b19514b41594448734a4009383c33bd5ddc_0a69dc2c-309f-42b2-9408-48ceb3be8e47.webp?v=1714837631","width":2000},{"alt":null,"id":23885121060963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633","width":2000},{"alt":null,"id":23885121749091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a242a3e13656cc1a14cd708f581cb088564656_975ce145-f0b4-4795-8cde-245051504aca.webp?v=1714837635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a242a3e13656cc1a14cd708f581cb088564656_975ce145-f0b4-4795-8cde-245051504aca.webp?v=1714837635","width":2000},{"alt":null,"id":23885122175075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bf7fd7deb1711faa4421af220587f535fcca39_61ce69d7-9144-4f68-bd0c-b83f3f9e2e3c.webp?v=1714837638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bf7fd7deb1711faa4421af220587f535fcca39_61ce69d7-9144-4f68-bd0c-b83f3f9e2e3c.webp?v=1714837638","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896084930659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479870619747,"product_id":7411215138915,"position":8,"created_at":"2024-05-04T23:47:13+08:00","updated_at":"2024-05-04T23:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633","variant_ids":[41896084930659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB08","featured_media":{"alt":null,"id":23885121060963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896084996195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479867113571,"product_id":7411215138915,"position":2,"created_at":"2024-05-04T23:46:59+08:00","updated_at":"2024-05-04T23:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619","variant_ids":[41896084996195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB08","featured_media":{"alt":null,"id":23885117489251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a0a2e68d30e5963b64faba27841fc9ae80d4dd_fe63483a-084c-4713-bfb0-f3dcec01d22a.webp?v=1714837619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896085225571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479868227683,"product_id":7411215138915,"position":4,"created_at":"2024-05-04T23:47:04+08:00","updated_at":"2024-05-04T23:47:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624","variant_ids":[41896085225571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB08","featured_media":{"alt":null,"id":23885118636131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ece01226d857e7af4deabfd29a42f3ed6e3545_d10e1e59-a7bc-45d4-94bc-0e6879983186.webp?v=1714837624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896084930659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479870619747,"product_id":7411215138915,"position":8,"created_at":"2024-05-04T23:47:13+08:00","updated_at":"2024-05-04T23:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633","variant_ids":[41896084930659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB08","featured_media":{"alt":null,"id":23885121060963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fedf1c7f9afe8afd40ec353a11cf44458d03f0_19e4c07c-e5eb-4ba8-ad94-63f837833e14.webp?v=1714837633"}},"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: "停產" }