$product = {"id":7411215695971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb81","description":null,"published_at":"2024-06-11T17:39:00+08:00","created_at":"2024-05-04T23:47:00+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":41896090337379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479867900003,"product_id":7411215695971,"position":1,"created_at":"2024-05-04T23:47:02+08:00","updated_at":"2024-05-04T23:47:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","variant_ids":[41896090337379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885118308451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896090402915,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872028771,"product_id":7411215695971,"position":8,"created_at":"2024-05-04T23:47:19+08:00","updated_at":"2024-05-04T23:47:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639","variant_ids":[41896090402915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885122502755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896090632291,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479873077347,"product_id":7411215695971,"position":10,"created_at":"2024-05-04T23:47:23+08:00","updated_at":"2024-05-04T23:47:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643","variant_ids":[41896090632291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885123453027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd0332650cc32002e55428e83b6f2203f44979a_fb151fe8-f45e-4b35-a07a-bd8acc53ffd9.webp?v=1714837625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b58667b42b4e9e8f0730053385a293def22c1a0_bcd74961-de12-4e1f-9f8b-70a4ba7a9773.webp?v=1714837627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d7b910e56a7dd08cc387befdbaaff209a5cfa8_c83c45af-442f-428b-a397-ad19187aea9b.webp?v=1714837629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9fc7db69bc66e52ceec9e4c36206c1abcd0bb65_f9a1501b-3ce8-40b4-8f76-f6c6c42156a6.webp?v=1714837632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8060f1bb43aab2b8733efbfe2d0a3d8daa43e306_6ec4bf36-ffcf-48ff-8711-1801bb823a92.webp?v=1714837634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4609a3c8e4b377e13bc1c0618380e9c7ed7501c_89975adf-fb5a-4d2d-bcc9-9c5ac7c9e9c6.webp?v=1714837636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba70f8ff588d3f6110479c57e6256503b8bbdb4_3e338d0c-ba1d-466f-9f8c-15158a749cdc.webp?v=1714837641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","options":["color"],"media":[{"alt":null,"id":23885118308451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","width":2000},{"alt":null,"id":23885118799971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd0332650cc32002e55428e83b6f2203f44979a_fb151fe8-f45e-4b35-a07a-bd8acc53ffd9.webp?v=1714837625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd0332650cc32002e55428e83b6f2203f44979a_fb151fe8-f45e-4b35-a07a-bd8acc53ffd9.webp?v=1714837625","width":2000},{"alt":null,"id":23885119225955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b58667b42b4e9e8f0730053385a293def22c1a0_bcd74961-de12-4e1f-9f8b-70a4ba7a9773.webp?v=1714837627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b58667b42b4e9e8f0730053385a293def22c1a0_bcd74961-de12-4e1f-9f8b-70a4ba7a9773.webp?v=1714837627","width":2000},{"alt":null,"id":23885119914083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d7b910e56a7dd08cc387befdbaaff209a5cfa8_c83c45af-442f-428b-a397-ad19187aea9b.webp?v=1714837629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d7b910e56a7dd08cc387befdbaaff209a5cfa8_c83c45af-442f-428b-a397-ad19187aea9b.webp?v=1714837629","width":2000},{"alt":null,"id":23885120667747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9fc7db69bc66e52ceec9e4c36206c1abcd0bb65_f9a1501b-3ce8-40b4-8f76-f6c6c42156a6.webp?v=1714837632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9fc7db69bc66e52ceec9e4c36206c1abcd0bb65_f9a1501b-3ce8-40b4-8f76-f6c6c42156a6.webp?v=1714837632","width":2000},{"alt":null,"id":23885121454179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8060f1bb43aab2b8733efbfe2d0a3d8daa43e306_6ec4bf36-ffcf-48ff-8711-1801bb823a92.webp?v=1714837634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8060f1bb43aab2b8733efbfe2d0a3d8daa43e306_6ec4bf36-ffcf-48ff-8711-1801bb823a92.webp?v=1714837634","width":2000},{"alt":null,"id":23885121978467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4609a3c8e4b377e13bc1c0618380e9c7ed7501c_89975adf-fb5a-4d2d-bcc9-9c5ac7c9e9c6.webp?v=1714837636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4609a3c8e4b377e13bc1c0618380e9c7ed7501c_89975adf-fb5a-4d2d-bcc9-9c5ac7c9e9c6.webp?v=1714837636","width":2000},{"alt":null,"id":23885122502755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639","width":2000},{"alt":null,"id":23885123059811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba70f8ff588d3f6110479c57e6256503b8bbdb4_3e338d0c-ba1d-466f-9f8c-15158a749cdc.webp?v=1714837641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba70f8ff588d3f6110479c57e6256503b8bbdb4_3e338d0c-ba1d-466f-9f8c-15158a749cdc.webp?v=1714837641","width":2000},{"alt":null,"id":23885123453027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896090337379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479867900003,"product_id":7411215695971,"position":1,"created_at":"2024-05-04T23:47:02+08:00","updated_at":"2024-05-04T23:47:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","variant_ids":[41896090337379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885118308451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896090402915,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872028771,"product_id":7411215695971,"position":8,"created_at":"2024-05-04T23:47:19+08:00","updated_at":"2024-05-04T23:47:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639","variant_ids":[41896090402915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885122502755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b379087ab3abaa197ef6583126330bbafef6713_ea92c855-e47c-402f-85dd-087654a1613c.webp?v=1714837639"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896090632291,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479873077347,"product_id":7411215695971,"position":10,"created_at":"2024-05-04T23:47:23+08:00","updated_at":"2024-05-04T23:47:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643","variant_ids":[41896090632291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885123453027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cbd385f973507eb39bdfccf4bb20d01eb35213d_fe3cf7bc-24ba-4db6-bb49-4ff882a32cd9.webp?v=1714837643"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896090337379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31479867900003,"product_id":7411215695971,"position":1,"created_at":"2024-05-04T23:47:02+08:00","updated_at":"2024-05-04T23:47:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622","variant_ids":[41896090337379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23885118308451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581b826e9f3bd87db941145984521d3500728e8d_c584c77c-3a33-4b6b-bde4-86eb716e430f.webp?v=1714837622"}},"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: "停產" }