$product = {"id":7411332186211,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb79","description":null,"published_at":"2024-06-11T17:42:04+08:00","created_at":"2024-05-05T00:09:11+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":41897549561955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480160878691,"product_id":7411332186211,"position":4,"created_at":"2024-05-05T00:09:21+08:00","updated_at":"2024-05-05T00:09:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961","variant_ids":[41897549561955]},"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-PB79","featured_media":{"alt":null,"id":23885412302947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897550020707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480163532899,"product_id":7411332186211,"position":8,"created_at":"2024-05-05T00:09:30+08:00","updated_at":"2024-05-05T00:09:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970","variant_ids":[41897550020707]},"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-PB79","featured_media":{"alt":null,"id":23885414432867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897551102051,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480160452707,"product_id":7411332186211,"position":3,"created_at":"2024-05-05T00:09:18+08:00","updated_at":"2024-05-05T00:09:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958","variant_ids":[41897551102051]},"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-PB79","featured_media":{"alt":null,"id":23885411418211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632cca3238cf640d68bbab6601963f9d37d7063b_86b762a3-ceb5-4c66-afb4-20b66771c820.webp?v=1714838954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2c78fd7584d58a5fa79a5068a94d8b30697f58c_7133bfc2-2031-4732-89bc-bb23856779cf.webp?v=1714838956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dd946f7cc356ab432fee65462784eb5d3966c4_6b4b55ce-f9be-4a96-acb1-5dcad2e4dbf9.webp?v=1714838963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aca19b657993101e60f819c8700285cc8f169ba_64c0171a-c8af-4f47-8e4a-0cf71dcfcfe9.webp?v=1714838965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8875fd9c2ffb5262a006b0a0a8cf3f2f20c802_98b156a1-8128-44f0-a39f-64e3e9c51a43.webp?v=1714838968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7bea032b73bf63a9bb52007c9058269bcdffb5_6ef0682b-0ab8-47a9-bbb3-4d23a3f24fba.webp?v=1714838972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951f18dcf76f94fa22a9b0ef442be554ca32813f_46a2f401-d85b-453d-bfbb-98da42545cd3.webp?v=1714838975"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632cca3238cf640d68bbab6601963f9d37d7063b_86b762a3-ceb5-4c66-afb4-20b66771c820.webp?v=1714838954","options":["color"],"media":[{"alt":null,"id":23885410009187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632cca3238cf640d68bbab6601963f9d37d7063b_86b762a3-ceb5-4c66-afb4-20b66771c820.webp?v=1714838954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632cca3238cf640d68bbab6601963f9d37d7063b_86b762a3-ceb5-4c66-afb4-20b66771c820.webp?v=1714838954","width":2000},{"alt":null,"id":23885410926691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2c78fd7584d58a5fa79a5068a94d8b30697f58c_7133bfc2-2031-4732-89bc-bb23856779cf.webp?v=1714838956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2c78fd7584d58a5fa79a5068a94d8b30697f58c_7133bfc2-2031-4732-89bc-bb23856779cf.webp?v=1714838956","width":2000},{"alt":null,"id":23885411418211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958","width":2000},{"alt":null,"id":23885412302947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961","width":2000},{"alt":null,"id":23885412991075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dd946f7cc356ab432fee65462784eb5d3966c4_6b4b55ce-f9be-4a96-acb1-5dcad2e4dbf9.webp?v=1714838963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dd946f7cc356ab432fee65462784eb5d3966c4_6b4b55ce-f9be-4a96-acb1-5dcad2e4dbf9.webp?v=1714838963","width":2000},{"alt":null,"id":23885413449827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aca19b657993101e60f819c8700285cc8f169ba_64c0171a-c8af-4f47-8e4a-0cf71dcfcfe9.webp?v=1714838965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aca19b657993101e60f819c8700285cc8f169ba_64c0171a-c8af-4f47-8e4a-0cf71dcfcfe9.webp?v=1714838965","width":2000},{"alt":null,"id":23885413843043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8875fd9c2ffb5262a006b0a0a8cf3f2f20c802_98b156a1-8128-44f0-a39f-64e3e9c51a43.webp?v=1714838968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8875fd9c2ffb5262a006b0a0a8cf3f2f20c802_98b156a1-8128-44f0-a39f-64e3e9c51a43.webp?v=1714838968","width":2000},{"alt":null,"id":23885414432867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970","width":2000},{"alt":null,"id":23885414924387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7bea032b73bf63a9bb52007c9058269bcdffb5_6ef0682b-0ab8-47a9-bbb3-4d23a3f24fba.webp?v=1714838972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7bea032b73bf63a9bb52007c9058269bcdffb5_6ef0682b-0ab8-47a9-bbb3-4d23a3f24fba.webp?v=1714838972","width":2000},{"alt":null,"id":23885415383139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951f18dcf76f94fa22a9b0ef442be554ca32813f_46a2f401-d85b-453d-bfbb-98da42545cd3.webp?v=1714838975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951f18dcf76f94fa22a9b0ef442be554ca32813f_46a2f401-d85b-453d-bfbb-98da42545cd3.webp?v=1714838975","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897549561955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480160878691,"product_id":7411332186211,"position":4,"created_at":"2024-05-05T00:09:21+08:00","updated_at":"2024-05-05T00:09:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961","variant_ids":[41897549561955]},"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-PB79","featured_media":{"alt":null,"id":23885412302947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897550020707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480163532899,"product_id":7411332186211,"position":8,"created_at":"2024-05-05T00:09:30+08:00","updated_at":"2024-05-05T00:09:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970","variant_ids":[41897550020707]},"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-PB79","featured_media":{"alt":null,"id":23885414432867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e97dea67f3ccfdda76bec707d162658299a517a_aa1c4f00-153b-4d93-b41c-532ebcb73edf.webp?v=1714838970"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897551102051,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480160452707,"product_id":7411332186211,"position":3,"created_at":"2024-05-05T00:09:18+08:00","updated_at":"2024-05-05T00:09:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958","variant_ids":[41897551102051]},"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-PB79","featured_media":{"alt":null,"id":23885411418211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e0289f5d60d93988497b1b36bd3cd0991eeb42_05309486-2404-46af-8a53-f00b64f6e73a.webp?v=1714838958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897549561955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31480160878691,"product_id":7411332186211,"position":4,"created_at":"2024-05-05T00:09:21+08:00","updated_at":"2024-05-05T00:09:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961","variant_ids":[41897549561955]},"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-PB79","featured_media":{"alt":null,"id":23885412302947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183d8d6cf5915cb210e5e0d1d9961d39e96da34e_01cfe58f-d744-4d84-ab83-be11775d126e.webp?v=1714838961"}},"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: "停產" }