$product = {"id":7411207143523,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb77","description":null,"published_at":"2024-06-11T17:38:47+08:00","created_at":"2024-05-04T23:45:34+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":41895990886499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479849255011,"product_id":7411207143523,"position":3,"created_at":"2024-05-04T23:45:40+08:00","updated_at":"2024-05-04T23:45:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540","variant_ids":[41895990886499]},"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-PB77","featured_media":{"alt":null,"id":23885099630691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895990952035,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479851909219,"product_id":7411207143523,"position":8,"created_at":"2024-05-04T23:45:52+08:00","updated_at":"2024-05-04T23:45:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552","variant_ids":[41895990952035]},"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-PB77","featured_media":{"alt":null,"id":23885102252131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895991181411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479852433507,"product_id":7411207143523,"position":9,"created_at":"2024-05-04T23:45:55+08:00","updated_at":"2024-05-04T23:45:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555","variant_ids":[41895991181411]},"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-PB77","featured_media":{"alt":null,"id":23885102809187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d413fda3ad163520e1ee7577974b9943aa8590d5_fb1a7f49-61d8-47e2-885a-6519f53c16fb.webp?v=1714837536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0031303199e48e107e52232fc26366f14aa351bc_7e9f625a-813c-4d0a-adb2-ed925a78a40b.webp?v=1714837538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df96cc3e64c61728a98659fd6b42f01cfe16c5ff_ef964572-d305-4bbc-b251-bea269be1abb.webp?v=1714837543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e898a8adad88464981886baabaa4cae417e9cc1_b4a7c5eb-acc0-4e77-af39-d2e565e3ecce.webp?v=1714837545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a2b46d19402e4ee00cdc29080de4d0d4497a99_74aadabd-9a06-4967-a967-f73f79e41080.webp?v=1714837547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b73647ca39aa46e6682001e1333fce8cb747689_800cbede-8545-4fc2-8043-e12eb171279f.webp?v=1714837550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ef6867300c9f34560681525a6ab291e64de3e7_5ccac85c-dccd-4d90-801e-32d7d6d7dcb0.webp?v=1714837557"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d413fda3ad163520e1ee7577974b9943aa8590d5_fb1a7f49-61d8-47e2-885a-6519f53c16fb.webp?v=1714837536","options":["color"],"media":[{"alt":null,"id":23885098877027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d413fda3ad163520e1ee7577974b9943aa8590d5_fb1a7f49-61d8-47e2-885a-6519f53c16fb.webp?v=1714837536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d413fda3ad163520e1ee7577974b9943aa8590d5_fb1a7f49-61d8-47e2-885a-6519f53c16fb.webp?v=1714837536","width":2000},{"alt":null,"id":23885099204707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0031303199e48e107e52232fc26366f14aa351bc_7e9f625a-813c-4d0a-adb2-ed925a78a40b.webp?v=1714837538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0031303199e48e107e52232fc26366f14aa351bc_7e9f625a-813c-4d0a-adb2-ed925a78a40b.webp?v=1714837538","width":2000},{"alt":null,"id":23885099630691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540","width":2000},{"alt":null,"id":23885100220515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df96cc3e64c61728a98659fd6b42f01cfe16c5ff_ef964572-d305-4bbc-b251-bea269be1abb.webp?v=1714837543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df96cc3e64c61728a98659fd6b42f01cfe16c5ff_ef964572-d305-4bbc-b251-bea269be1abb.webp?v=1714837543","width":2000},{"alt":null,"id":23885100679267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e898a8adad88464981886baabaa4cae417e9cc1_b4a7c5eb-acc0-4e77-af39-d2e565e3ecce.webp?v=1714837545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e898a8adad88464981886baabaa4cae417e9cc1_b4a7c5eb-acc0-4e77-af39-d2e565e3ecce.webp?v=1714837545","width":2000},{"alt":null,"id":23885101170787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a2b46d19402e4ee00cdc29080de4d0d4497a99_74aadabd-9a06-4967-a967-f73f79e41080.webp?v=1714837547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a2b46d19402e4ee00cdc29080de4d0d4497a99_74aadabd-9a06-4967-a967-f73f79e41080.webp?v=1714837547","width":2000},{"alt":null,"id":23885101727843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b73647ca39aa46e6682001e1333fce8cb747689_800cbede-8545-4fc2-8043-e12eb171279f.webp?v=1714837550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b73647ca39aa46e6682001e1333fce8cb747689_800cbede-8545-4fc2-8043-e12eb171279f.webp?v=1714837550","width":2000},{"alt":null,"id":23885102252131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552","width":2000},{"alt":null,"id":23885102809187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555","width":2000},{"alt":null,"id":23885103267939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ef6867300c9f34560681525a6ab291e64de3e7_5ccac85c-dccd-4d90-801e-32d7d6d7dcb0.webp?v=1714837557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ef6867300c9f34560681525a6ab291e64de3e7_5ccac85c-dccd-4d90-801e-32d7d6d7dcb0.webp?v=1714837557","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895990886499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479849255011,"product_id":7411207143523,"position":3,"created_at":"2024-05-04T23:45:40+08:00","updated_at":"2024-05-04T23:45:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540","variant_ids":[41895990886499]},"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-PB77","featured_media":{"alt":null,"id":23885099630691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895990952035,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479851909219,"product_id":7411207143523,"position":8,"created_at":"2024-05-04T23:45:52+08:00","updated_at":"2024-05-04T23:45:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552","variant_ids":[41895990952035]},"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-PB77","featured_media":{"alt":null,"id":23885102252131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c97dbef32a6dbd484f7c696316c99bfabc96f4_eeef4f11-a6c1-4d25-89ef-6ce1e8f5f3ca.webp?v=1714837552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895991181411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479852433507,"product_id":7411207143523,"position":9,"created_at":"2024-05-04T23:45:55+08:00","updated_at":"2024-05-04T23:45:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555","variant_ids":[41895991181411]},"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-PB77","featured_media":{"alt":null,"id":23885102809187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f8693dd3de9e28c3a7c483440468686fffad682_7400b1f5-be99-4e5a-a529-6a3081a281b5.webp?v=1714837555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895990886499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479849255011,"product_id":7411207143523,"position":3,"created_at":"2024-05-04T23:45:40+08:00","updated_at":"2024-05-04T23:45:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540","variant_ids":[41895990886499]},"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-PB77","featured_media":{"alt":null,"id":23885099630691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cf8971accaba49f014fd4d7963b3bab18cedee_bb48ce48-8cde-4140-b98c-703d934ae9e5.webp?v=1714837540"}},"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: "停產" }