$product = {"id":7411358105699,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb20","description":null,"published_at":"2024-06-11T17:42:48+08:00","created_at":"2024-05-05T00:14:15+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":41897882157155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480226087011,"product_id":7411358105699,"position":10,"created_at":"2024-05-05T00:14:40+08:00","updated_at":"2024-05-05T00:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280","variant_ids":[41897882157155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885477314659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897882222691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480225202275,"product_id":7411358105699,"position":8,"created_at":"2024-05-05T00:14:35+08:00","updated_at":"2024-05-05T00:14:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275","variant_ids":[41897882222691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885476397155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897882452067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480221139043,"product_id":7411358105699,"position":1,"created_at":"2024-05-05T00:14:17+08:00","updated_at":"2024-05-05T00:14:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258","variant_ids":[41897882452067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885472399459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b0e7b2956721d7a4e3612104164ebaa51bd146_4e4e76fb-f546-4023-9d81-34bf26530a58.webp?v=1714839260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded81e69b91e9c01777fc989f1db91fccd700bbe_458497bf-9c0e-4246-98bb-b10d9c459921.webp?v=1714839262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338781c1d362d5d5c12913468914b84b2ae095b_4a09b7cd-c2d4-4b37-a7ea-da3cff821b71.webp?v=1714839266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952aa1b5456037ad9dabbca77b833e0c2ab81547_d3dc714a-fe06-4be5-819a-fb3466a8033d.webp?v=1714839268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59db239dd35d68295bccfdb7fb42e0a3a6b71c34_e4cb02e3-39f6-42d9-a37a-8eab1b7c86b1.webp?v=1714839270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873370e57ac2c08ff7d3a37f6a320f04bbf207fc_85f19646-9ec9-4325-8af6-bc7a0683be39.webp?v=1714839273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91030c65ffa7e93db85d04b16df8d887fe9571cd_ac3a4ddf-ebab-4ea1-bdf8-9aebfd28a37d.webp?v=1714839277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258","options":["color"],"media":[{"alt":null,"id":23885472399459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258","width":2000},{"alt":null,"id":23885473087587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b0e7b2956721d7a4e3612104164ebaa51bd146_4e4e76fb-f546-4023-9d81-34bf26530a58.webp?v=1714839260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b0e7b2956721d7a4e3612104164ebaa51bd146_4e4e76fb-f546-4023-9d81-34bf26530a58.webp?v=1714839260","width":2000},{"alt":null,"id":23885473644643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded81e69b91e9c01777fc989f1db91fccd700bbe_458497bf-9c0e-4246-98bb-b10d9c459921.webp?v=1714839262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded81e69b91e9c01777fc989f1db91fccd700bbe_458497bf-9c0e-4246-98bb-b10d9c459921.webp?v=1714839262","width":2000},{"alt":null,"id":23885474365539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338781c1d362d5d5c12913468914b84b2ae095b_4a09b7cd-c2d4-4b37-a7ea-da3cff821b71.webp?v=1714839266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338781c1d362d5d5c12913468914b84b2ae095b_4a09b7cd-c2d4-4b37-a7ea-da3cff821b71.webp?v=1714839266","width":2000},{"alt":null,"id":23885474857059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952aa1b5456037ad9dabbca77b833e0c2ab81547_d3dc714a-fe06-4be5-819a-fb3466a8033d.webp?v=1714839268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952aa1b5456037ad9dabbca77b833e0c2ab81547_d3dc714a-fe06-4be5-819a-fb3466a8033d.webp?v=1714839268","width":2000},{"alt":null,"id":23885475446883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59db239dd35d68295bccfdb7fb42e0a3a6b71c34_e4cb02e3-39f6-42d9-a37a-8eab1b7c86b1.webp?v=1714839270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59db239dd35d68295bccfdb7fb42e0a3a6b71c34_e4cb02e3-39f6-42d9-a37a-8eab1b7c86b1.webp?v=1714839270","width":2000},{"alt":null,"id":23885476036707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873370e57ac2c08ff7d3a37f6a320f04bbf207fc_85f19646-9ec9-4325-8af6-bc7a0683be39.webp?v=1714839273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873370e57ac2c08ff7d3a37f6a320f04bbf207fc_85f19646-9ec9-4325-8af6-bc7a0683be39.webp?v=1714839273","width":2000},{"alt":null,"id":23885476397155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275","width":2000},{"alt":null,"id":23885476921443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91030c65ffa7e93db85d04b16df8d887fe9571cd_ac3a4ddf-ebab-4ea1-bdf8-9aebfd28a37d.webp?v=1714839277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91030c65ffa7e93db85d04b16df8d887fe9571cd_ac3a4ddf-ebab-4ea1-bdf8-9aebfd28a37d.webp?v=1714839277","width":2000},{"alt":null,"id":23885477314659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897882157155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480226087011,"product_id":7411358105699,"position":10,"created_at":"2024-05-05T00:14:40+08:00","updated_at":"2024-05-05T00:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280","variant_ids":[41897882157155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885477314659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897882222691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480225202275,"product_id":7411358105699,"position":8,"created_at":"2024-05-05T00:14:35+08:00","updated_at":"2024-05-05T00:14:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275","variant_ids":[41897882222691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885476397155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc30e6a35d997667a491f55c235cc2c641bf336_e2184560-653b-4c70-9b25-8d013714b94e.webp?v=1714839275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897882452067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480221139043,"product_id":7411358105699,"position":1,"created_at":"2024-05-05T00:14:17+08:00","updated_at":"2024-05-05T00:14:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258","variant_ids":[41897882452067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885472399459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763f73f43002eae3ef6a0f551b170b84c1384a83_4180c150-6fcf-4253-b369-ef86750f7c0f.webp?v=1714839258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897882157155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480226087011,"product_id":7411358105699,"position":10,"created_at":"2024-05-05T00:14:40+08:00","updated_at":"2024-05-05T00:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280","variant_ids":[41897882157155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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-PB20","featured_media":{"alt":null,"id":23885477314659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6383c6eda2b9eae7e187eff5b97f118b6fa97d7c_1454ea19-5ace-4777-b2c4-ee16540d0a0b.webp?v=1714839280"}},"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: "停產" }