$product = {"id":7411199705187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb40","description":null,"published_at":"2024-06-11T17:38:35+08:00","created_at":"2024-05-04T23:44:12+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":41895888814179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836049507,"product_id":7411199705187,"position":10,"created_at":"2024-05-04T23:44:35+08:00","updated_at":"2024-05-04T23:44:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475","variant_ids":[41895888814179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885086490723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895888945251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479835820131,"product_id":7411199705187,"position":9,"created_at":"2024-05-04T23:44:32+08:00","updated_at":"2024-05-04T23:44:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472","variant_ids":[41895888945251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885086130275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895889272931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479833591907,"product_id":7411199705187,"position":4,"created_at":"2024-05-04T23:44:21+08:00","updated_at":"2024-05-04T23:44:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461","variant_ids":[41895889272931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885083836515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ecc1af48460b9771b75f2d156896c5c47988848_33510df6-e5e5-4e09-a8da-f5c29801d38a.webp?v=1714837454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1778cdf90d649be38e3a8d5379e372d4a573216_136f16c5-0a73-41ba-a5e8-d2dee7a55f16.webp?v=1714837456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b9441229535f1833e3851ba22bdffd5cc985ee_741d47ec-6671-4e33-b7d7-dae8ed95acf4.webp?v=1714837459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c2fbf0fd9f766a5a4c1ee65093bc870b8ac5f6_0c0e5861-a5f6-4966-ba39-035573713da9.webp?v=1714837464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7398c0cd3436d93f5ad1c886af48051833cbbd_94fc0901-bb64-49ee-b4db-a221d41583d2.webp?v=1714837466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3d01a639539feccb8ab2ed7038e2c63d0ac22b_e517c007-01b8-4ecf-86c7-005a7f191463.webp?v=1714837468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ba10bfc77347592b8e6845dc584a63d8538880_ffb6267e-02e2-45b1-b2a6-4a8d14f29bc3.webp?v=1714837470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ecc1af48460b9771b75f2d156896c5c47988848_33510df6-e5e5-4e09-a8da-f5c29801d38a.webp?v=1714837454","options":["color"],"media":[{"alt":null,"id":23885083279459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ecc1af48460b9771b75f2d156896c5c47988848_33510df6-e5e5-4e09-a8da-f5c29801d38a.webp?v=1714837454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ecc1af48460b9771b75f2d156896c5c47988848_33510df6-e5e5-4e09-a8da-f5c29801d38a.webp?v=1714837454","width":2000},{"alt":null,"id":23885083377763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1778cdf90d649be38e3a8d5379e372d4a573216_136f16c5-0a73-41ba-a5e8-d2dee7a55f16.webp?v=1714837456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1778cdf90d649be38e3a8d5379e372d4a573216_136f16c5-0a73-41ba-a5e8-d2dee7a55f16.webp?v=1714837456","width":2000},{"alt":null,"id":23885083541603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b9441229535f1833e3851ba22bdffd5cc985ee_741d47ec-6671-4e33-b7d7-dae8ed95acf4.webp?v=1714837459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b9441229535f1833e3851ba22bdffd5cc985ee_741d47ec-6671-4e33-b7d7-dae8ed95acf4.webp?v=1714837459","width":2000},{"alt":null,"id":23885083836515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461","width":2000},{"alt":null,"id":23885084459107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c2fbf0fd9f766a5a4c1ee65093bc870b8ac5f6_0c0e5861-a5f6-4966-ba39-035573713da9.webp?v=1714837464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c2fbf0fd9f766a5a4c1ee65093bc870b8ac5f6_0c0e5861-a5f6-4966-ba39-035573713da9.webp?v=1714837464","width":2000},{"alt":null,"id":23885084721251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7398c0cd3436d93f5ad1c886af48051833cbbd_94fc0901-bb64-49ee-b4db-a221d41583d2.webp?v=1714837466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7398c0cd3436d93f5ad1c886af48051833cbbd_94fc0901-bb64-49ee-b4db-a221d41583d2.webp?v=1714837466","width":2000},{"alt":null,"id":23885085245539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3d01a639539feccb8ab2ed7038e2c63d0ac22b_e517c007-01b8-4ecf-86c7-005a7f191463.webp?v=1714837468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3d01a639539feccb8ab2ed7038e2c63d0ac22b_e517c007-01b8-4ecf-86c7-005a7f191463.webp?v=1714837468","width":2000},{"alt":null,"id":23885085474915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ba10bfc77347592b8e6845dc584a63d8538880_ffb6267e-02e2-45b1-b2a6-4a8d14f29bc3.webp?v=1714837470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ba10bfc77347592b8e6845dc584a63d8538880_ffb6267e-02e2-45b1-b2a6-4a8d14f29bc3.webp?v=1714837470","width":2000},{"alt":null,"id":23885086130275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472","width":2000},{"alt":null,"id":23885086490723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895888814179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836049507,"product_id":7411199705187,"position":10,"created_at":"2024-05-04T23:44:35+08:00","updated_at":"2024-05-04T23:44:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475","variant_ids":[41895888814179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885086490723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895888945251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479835820131,"product_id":7411199705187,"position":9,"created_at":"2024-05-04T23:44:32+08:00","updated_at":"2024-05-04T23:44:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472","variant_ids":[41895888945251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885086130275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d4cd6fedbf3b915c09f48283af7eb24747e95e_ed33c18a-e5ac-4dbd-af02-e07656708d49.webp?v=1714837472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895889272931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479833591907,"product_id":7411199705187,"position":4,"created_at":"2024-05-04T23:44:21+08:00","updated_at":"2024-05-04T23:44:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461","variant_ids":[41895889272931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885083836515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd18c1d684d06ef4cf0ea9249f7196f951183fd_cd318ada-1bea-4ad7-93cc-616845947767.webp?v=1714837461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895888814179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836049507,"product_id":7411199705187,"position":10,"created_at":"2024-05-04T23:44:35+08:00","updated_at":"2024-05-04T23:44:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475","variant_ids":[41895888814179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23885086490723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5569265c005c3029e1f82073789e952b8d75be34_21895b76-7fd2-47a3-8d16-2a7266a8e856.webp?v=1714837475"}},"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: "停產" }