$product = {"id":7411310854243,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-14-pro-mod-nx-magsafe-printable-yf03","description":null,"published_at":"2024-06-11T17:41:29+08:00","created_at":"2024-05-05T00:05:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41897281814627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480109269091,"product_id":7411310854243,"position":1,"created_at":"2024-05-05T00:05:11+08:00","updated_at":"2024-05-05T00:05:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","variant_ids":[41897281814627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885360070755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897281978467,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480113430627,"product_id":7411310854243,"position":10,"created_at":"2024-05-05T00:05:33+08:00","updated_at":"2024-05-05T00:05:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733","variant_ids":[41897281978467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885364232291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897282568291,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480112513123,"product_id":7411310854243,"position":8,"created_at":"2024-05-05T00:05:28+08:00","updated_at":"2024-05-05T00:05:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728","variant_ids":[41897282568291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885363314787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2ba6a8d8d20088a7eff42081637663165d5d0_5cd5336d-4173-4df2-afb5-9c6f575fe0f6.webp?v=1714838713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fde93237654c8635dee9b043774d0b67de5a5b_f8f87fc1-b186-4c88-b81a-8a8812a12ad2.webp?v=1714838716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f7b5b04abc218eeb03e77a423cd447eb45d1b_dd18cf3a-693a-49a0-8aad-7275edea9619.webp?v=1714838718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2ecd7a2fced4927db0ebc2aaed0b91f34c20eb_5f3b5a67-24bc-47f3-aa17-5974fc8842d4.webp?v=1714838721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69fc17e09132b2c7f43549a67a0a67ebf0c0c42_aecf2a20-f392-4f85-a776-7907c402a7cc.webp?v=1714838723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227bdc230bb21474e310f31ca22cb216369bb6ba_93187500-c6e1-4b02-98df-b62523eb3b02.webp?v=1714838726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea501ebefd1a4ca412aca4e132c876a182ee9b0_54ee90da-1059-4df8-a9dd-50f5f18bdd61.webp?v=1714838731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","options":["color"],"media":[{"alt":null,"id":23885360070755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","width":2000},{"alt":null,"id":23885360529507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2ba6a8d8d20088a7eff42081637663165d5d0_5cd5336d-4173-4df2-afb5-9c6f575fe0f6.webp?v=1714838713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2ba6a8d8d20088a7eff42081637663165d5d0_5cd5336d-4173-4df2-afb5-9c6f575fe0f6.webp?v=1714838713","width":2000},{"alt":null,"id":23885360693347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fde93237654c8635dee9b043774d0b67de5a5b_f8f87fc1-b186-4c88-b81a-8a8812a12ad2.webp?v=1714838716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fde93237654c8635dee9b043774d0b67de5a5b_f8f87fc1-b186-4c88-b81a-8a8812a12ad2.webp?v=1714838716","width":2000},{"alt":null,"id":23885361250403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f7b5b04abc218eeb03e77a423cd447eb45d1b_dd18cf3a-693a-49a0-8aad-7275edea9619.webp?v=1714838718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f7b5b04abc218eeb03e77a423cd447eb45d1b_dd18cf3a-693a-49a0-8aad-7275edea9619.webp?v=1714838718","width":2000},{"alt":null,"id":23885361905763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2ecd7a2fced4927db0ebc2aaed0b91f34c20eb_5f3b5a67-24bc-47f3-aa17-5974fc8842d4.webp?v=1714838721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2ecd7a2fced4927db0ebc2aaed0b91f34c20eb_5f3b5a67-24bc-47f3-aa17-5974fc8842d4.webp?v=1714838721","width":2000},{"alt":null,"id":23885362561123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69fc17e09132b2c7f43549a67a0a67ebf0c0c42_aecf2a20-f392-4f85-a776-7907c402a7cc.webp?v=1714838723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69fc17e09132b2c7f43549a67a0a67ebf0c0c42_aecf2a20-f392-4f85-a776-7907c402a7cc.webp?v=1714838723","width":2000},{"alt":null,"id":23885362954339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227bdc230bb21474e310f31ca22cb216369bb6ba_93187500-c6e1-4b02-98df-b62523eb3b02.webp?v=1714838726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227bdc230bb21474e310f31ca22cb216369bb6ba_93187500-c6e1-4b02-98df-b62523eb3b02.webp?v=1714838726","width":2000},{"alt":null,"id":23885363314787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728","width":2000},{"alt":null,"id":23885363806307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea501ebefd1a4ca412aca4e132c876a182ee9b0_54ee90da-1059-4df8-a9dd-50f5f18bdd61.webp?v=1714838731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea501ebefd1a4ca412aca4e132c876a182ee9b0_54ee90da-1059-4df8-a9dd-50f5f18bdd61.webp?v=1714838731","width":2000},{"alt":null,"id":23885364232291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41897281814627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480109269091,"product_id":7411310854243,"position":1,"created_at":"2024-05-05T00:05:11+08:00","updated_at":"2024-05-05T00:05:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","variant_ids":[41897281814627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885360070755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897281978467,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480113430627,"product_id":7411310854243,"position":10,"created_at":"2024-05-05T00:05:33+08:00","updated_at":"2024-05-05T00:05:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733","variant_ids":[41897281978467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885364232291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd844416d612a1364d075266db6c4428f1517df_7e86ccc9-9841-454d-88f8-e821c9e52bc1.webp?v=1714838733"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897282568291,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480112513123,"product_id":7411310854243,"position":8,"created_at":"2024-05-05T00:05:28+08:00","updated_at":"2024-05-05T00:05:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728","variant_ids":[41897282568291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885363314787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3d6cddf9c38a5fecec2456ed3cb8ba6f05ad1_1fac531d-ddb0-4e14-a677-8e927382c13e.webp?v=1714838728"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897281814627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480109269091,"product_id":7411310854243,"position":1,"created_at":"2024-05-05T00:05:11+08:00","updated_at":"2024-05-05T00:05:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711","variant_ids":[41897281814627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23885360070755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81af7c20f42c5ba07b6f0993ac8f7357143b8_3d911af9-2140-43df-8906-09bc411196e2.webp?v=1714838711"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }