$product = {"id":7411339067491,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb01","description":null,"published_at":"2024-06-11T17:42:16+08:00","created_at":"2024-05-05T00:10:24+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":41897637281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480177590371,"product_id":7411339067491,"position":6,"created_at":"2024-05-05T00:10:38+08:00","updated_at":"2024-05-05T00:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038","variant_ids":[41897637281891]},"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-PB01","featured_media":{"alt":null,"id":23885428555875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897637347427,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480179556451,"product_id":7411339067491,"position":10,"created_at":"2024-05-05T00:10:48+08:00","updated_at":"2024-05-05T00:10:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048","variant_ids":[41897637347427]},"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-PB01","featured_media":{"alt":null,"id":23885430521955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897637576803,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480175689827,"product_id":7411339067491,"position":3,"created_at":"2024-05-05T00:10:31+08:00","updated_at":"2024-05-05T00:10:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031","variant_ids":[41897637576803]},"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-PB01","featured_media":{"alt":null,"id":23885426884707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9683077162fdf8bad4a2c8f3ffebddebf313a4_b760d6b1-c802-47f9-bddb-b34f722e38e4.webp?v=1714839026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8f2ec39989917b64439f10318cda5c77acfb4_4540af9f-cdf3-4770-908f-4f5f629a7907.webp?v=1714839028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7abf4ed0c7d987df7031cdf3eed3e60d85854248_95a7bd9f-9c2f-4bf7-bff1-7cccc5a99972.webp?v=1714839033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563119566d97f15deec1f794b28bc181ef54b3a6_fbf40f0f-a6c6-465c-ad42-1d52457063b0.webp?v=1714839036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c96df467ac85ca718ad53e3371083f6061ecd_437bc6ca-1151-435e-8822-f70265f8ee1f.webp?v=1714839041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd72dfaaed60ee1fee4c30e5ba57323de3b5bb67_2543d4d5-8981-477c-b592-4c0cfa84c58c.webp?v=1714839043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede95f1ba39699300f52c467232b00c6b8baaca7_dabcffa0-9fa1-4160-8dbc-3480b0825dce.webp?v=1714839045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9683077162fdf8bad4a2c8f3ffebddebf313a4_b760d6b1-c802-47f9-bddb-b34f722e38e4.webp?v=1714839026","options":["color"],"media":[{"alt":null,"id":23885425475683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9683077162fdf8bad4a2c8f3ffebddebf313a4_b760d6b1-c802-47f9-bddb-b34f722e38e4.webp?v=1714839026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9683077162fdf8bad4a2c8f3ffebddebf313a4_b760d6b1-c802-47f9-bddb-b34f722e38e4.webp?v=1714839026","width":2000},{"alt":null,"id":23885425868899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8f2ec39989917b64439f10318cda5c77acfb4_4540af9f-cdf3-4770-908f-4f5f629a7907.webp?v=1714839028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8f2ec39989917b64439f10318cda5c77acfb4_4540af9f-cdf3-4770-908f-4f5f629a7907.webp?v=1714839028","width":2000},{"alt":null,"id":23885426884707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031","width":2000},{"alt":null,"id":23885427474531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7abf4ed0c7d987df7031cdf3eed3e60d85854248_95a7bd9f-9c2f-4bf7-bff1-7cccc5a99972.webp?v=1714839033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7abf4ed0c7d987df7031cdf3eed3e60d85854248_95a7bd9f-9c2f-4bf7-bff1-7cccc5a99972.webp?v=1714839033","width":2000},{"alt":null,"id":23885427933283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563119566d97f15deec1f794b28bc181ef54b3a6_fbf40f0f-a6c6-465c-ad42-1d52457063b0.webp?v=1714839036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563119566d97f15deec1f794b28bc181ef54b3a6_fbf40f0f-a6c6-465c-ad42-1d52457063b0.webp?v=1714839036","width":2000},{"alt":null,"id":23885428555875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038","width":2000},{"alt":null,"id":23885429047395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c96df467ac85ca718ad53e3371083f6061ecd_437bc6ca-1151-435e-8822-f70265f8ee1f.webp?v=1714839041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c96df467ac85ca718ad53e3371083f6061ecd_437bc6ca-1151-435e-8822-f70265f8ee1f.webp?v=1714839041","width":2000},{"alt":null,"id":23885429604451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd72dfaaed60ee1fee4c30e5ba57323de3b5bb67_2543d4d5-8981-477c-b592-4c0cfa84c58c.webp?v=1714839043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd72dfaaed60ee1fee4c30e5ba57323de3b5bb67_2543d4d5-8981-477c-b592-4c0cfa84c58c.webp?v=1714839043","width":2000},{"alt":null,"id":23885430030435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede95f1ba39699300f52c467232b00c6b8baaca7_dabcffa0-9fa1-4160-8dbc-3480b0825dce.webp?v=1714839045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede95f1ba39699300f52c467232b00c6b8baaca7_dabcffa0-9fa1-4160-8dbc-3480b0825dce.webp?v=1714839045","width":2000},{"alt":null,"id":23885430521955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897637281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480177590371,"product_id":7411339067491,"position":6,"created_at":"2024-05-05T00:10:38+08:00","updated_at":"2024-05-05T00:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038","variant_ids":[41897637281891]},"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-PB01","featured_media":{"alt":null,"id":23885428555875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897637347427,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480179556451,"product_id":7411339067491,"position":10,"created_at":"2024-05-05T00:10:48+08:00","updated_at":"2024-05-05T00:10:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048","variant_ids":[41897637347427]},"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-PB01","featured_media":{"alt":null,"id":23885430521955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eb794253cd30f3a0840bbd317e1b367d4670e_b8d0ffb7-e92b-4a8b-a676-72ce8bb19827.webp?v=1714839048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897637576803,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480175689827,"product_id":7411339067491,"position":3,"created_at":"2024-05-05T00:10:31+08:00","updated_at":"2024-05-05T00:10:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031","variant_ids":[41897637576803]},"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-PB01","featured_media":{"alt":null,"id":23885426884707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a6acbb0ef31ddbad34b851e2e269461f3b7854_00a10fbb-d902-4603-81a3-80336d4318cd.webp?v=1714839031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897637281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480177590371,"product_id":7411339067491,"position":6,"created_at":"2024-05-05T00:10:38+08:00","updated_at":"2024-05-05T00:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038","variant_ids":[41897637281891]},"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-PB01","featured_media":{"alt":null,"id":23885428555875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e30453ceca34559855fb9f34eda5046fbfff86d_c5556e8e-0e75-4b93-91f0-c97387279859.webp?v=1714839038"}},"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: "停產" }