$product = {"id":7155907526755,"title":"iPhone 11 Pro SolidSuit 1G 在幹嘛","handle":"iphone-11-pro-solidsuit-classic-iv06","description":null,"published_at":"2024-01-24T16:33:37+08:00","created_at":"2024-01-23T17:13:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 11 Pro","merge","reseller-1chun"],"price":83000,"price_min":83000,"price_max":83000,"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":41197254246499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322429698147,"product_id":7155907526755,"position":16,"created_at":"2026-07-20T17:53:19+08:00","updated_at":"2026-07-20T17:53:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201","variant_ids":[41197254246499]},"available":true,"name":"iPhone 11 Pro SolidSuit 1G 在幹嘛 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-IV06","featured_media":{"alt":null,"id":27826337939555,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197254443107,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01147P2-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322429599843,"product_id":7155907526755,"position":15,"created_at":"2026-07-20T17:53:18+08:00","updated_at":"2026-07-20T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200","variant_ids":[41197254443107]},"available":true,"name":"iPhone 11 Pro SolidSuit 1G 在幹嘛 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01147P2-IV06","featured_media":{"alt":null,"id":27826337841251,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_f1817188-32fa-4221-b6a2-97cb143c797a.webp?v=1706001184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_7fdde9b4-8c45-4297-aa71-09d1ad2082ad.webp?v=1706001186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_8327ab02-a420-48e6-a807-6886f4cc912e.webp?v=1706001188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_372bc88c-78ee-4ef0-91e8-54628e808c8e.webp?v=1706001193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_032c0e7d-26ea-4cad-ae3e-b5af030ba1d9.webp?v=1706001197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d726d768a476176e81ae303c078ac471f5d744aa_f8f9ce0e-d247-4c9c-86d0-7d62c9fb70bc.webp?v=1706066510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_91643168-c101-4b1f-9ec2-4a073406f153.webp?v=1706066512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a41d74fc5f85713fd518170d833fd5f7a3a7007_b7131fbd-ed32-4805-9c6d-1311048d6da4.webp?v=1706066514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_936d652d-eb56-4698-b8f5-e0f9ddc22f05.webp?v=1706066517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_88872d47-d57f-4e0b-bebc-00718138fd0f.webp?v=1706066520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_ff0fa501-f074-47dc-86c5-05ad5dc3af3d.webp?v=1706066523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_42610a20-9bcc-4f13-96cd-cf3254e0b5f9.webp?v=1706066525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9.webp?v=1782879601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a.webp?v=1782879601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_f1817188-32fa-4221-b6a2-97cb143c797a.webp?v=1706001184","options":["color"],"media":[{"alt":null,"id":23202088943715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_f1817188-32fa-4221-b6a2-97cb143c797a.webp?v=1706001184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_f1817188-32fa-4221-b6a2-97cb143c797a.webp?v=1706001184","width":2000},{"alt":null,"id":23202089566307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_7fdde9b4-8c45-4297-aa71-09d1ad2082ad.webp?v=1706001186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_7fdde9b4-8c45-4297-aa71-09d1ad2082ad.webp?v=1706001186","width":2000},{"alt":null,"id":23202090057827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_8327ab02-a420-48e6-a807-6886f4cc912e.webp?v=1706001188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_8327ab02-a420-48e6-a807-6886f4cc912e.webp?v=1706001188","width":2000},{"alt":null,"id":23202091401315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_372bc88c-78ee-4ef0-91e8-54628e808c8e.webp?v=1706001193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_372bc88c-78ee-4ef0-91e8-54628e808c8e.webp?v=1706001193","width":2000},{"alt":null,"id":23202092908643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_032c0e7d-26ea-4cad-ae3e-b5af030ba1d9.webp?v=1706001197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_032c0e7d-26ea-4cad-ae3e-b5af030ba1d9.webp?v=1706001197","width":2000},{"alt":null,"id":23208554725475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d726d768a476176e81ae303c078ac471f5d744aa_f8f9ce0e-d247-4c9c-86d0-7d62c9fb70bc.webp?v=1706066510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d726d768a476176e81ae303c078ac471f5d744aa_f8f9ce0e-d247-4c9c-86d0-7d62c9fb70bc.webp?v=1706066510","width":2000},{"alt":null,"id":23208555249763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_91643168-c101-4b1f-9ec2-4a073406f153.webp?v=1706066512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc13571b5feefbf17917ab4c6dac138a5ba0217_91643168-c101-4b1f-9ec2-4a073406f153.webp?v=1706066512","width":2000},{"alt":null,"id":23208555806819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a41d74fc5f85713fd518170d833fd5f7a3a7007_b7131fbd-ed32-4805-9c6d-1311048d6da4.webp?v=1706066514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a41d74fc5f85713fd518170d833fd5f7a3a7007_b7131fbd-ed32-4805-9c6d-1311048d6da4.webp?v=1706066514","width":2000},{"alt":null,"id":23208556331107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_936d652d-eb56-4698-b8f5-e0f9ddc22f05.webp?v=1706066517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1201e91eda6c0f500b3a1b883837403ffdcf859_936d652d-eb56-4698-b8f5-e0f9ddc22f05.webp?v=1706066517","width":2000},{"alt":null,"id":23208556920931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_88872d47-d57f-4e0b-bebc-00718138fd0f.webp?v=1706066520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/746a24fb3788d51d52c780f5bfcb6778ed2c55f1_88872d47-d57f-4e0b-bebc-00718138fd0f.webp?v=1706066520","width":2000},{"alt":null,"id":23208557674595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_ff0fa501-f074-47dc-86c5-05ad5dc3af3d.webp?v=1706066523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5801f4e199214eaecc7486992efb9aca006afb_ff0fa501-f074-47dc-86c5-05ad5dc3af3d.webp?v=1706066523","width":2000},{"alt":null,"id":23208558100579,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_42610a20-9bcc-4f13-96cd-cf3254e0b5f9.webp?v=1706066525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58861ff6adb5aa884cee7cc60287c13486b99237_42610a20-9bcc-4f13-96cd-cf3254e0b5f9.webp?v=1706066525","width":2000},{"alt":null,"id":27646544805987,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9.webp?v=1782879601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9.webp?v=1782879601","width":2000},{"alt":null,"id":27646545133667,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a.webp?v=1782879601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a.webp?v=1782879601","width":2000},{"alt":null,"id":27826337841251,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200","width":2000},{"alt":null,"id":27826337939555,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197254246499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322429698147,"product_id":7155907526755,"position":16,"created_at":"2026-07-20T17:53:19+08:00","updated_at":"2026-07-20T17:53:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201","variant_ids":[41197254246499]},"available":true,"name":"iPhone 11 Pro SolidSuit 1G 在幹嘛 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-IV06","featured_media":{"alt":null,"id":27826337939555,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197254443107,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01147P2-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322429599843,"product_id":7155907526755,"position":15,"created_at":"2026-07-20T17:53:18+08:00","updated_at":"2026-07-20T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200","variant_ids":[41197254443107]},"available":true,"name":"iPhone 11 Pro SolidSuit 1G 在幹嘛 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01147P2-IV06","featured_media":{"alt":null,"id":27826337841251,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375f0cc6ed63293086ab27d55c27a852942ab7e9_c7f5f92d-160c-43e2-a5c3-943ed621ced3.webp?v=1784541200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197254246499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322429698147,"product_id":7155907526755,"position":16,"created_at":"2026-07-20T17:53:19+08:00","updated_at":"2026-07-20T17:53:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201","variant_ids":[41197254246499]},"available":true,"name":"iPhone 11 Pro SolidSuit 1G 在幹嘛 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-IV06","featured_media":{"alt":null,"id":27826337939555,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73141afb1f2b3299e414f0a06094d6779aec04a_f46012de-d1e7-4bc8-9e42-7c02aab3a259.webp?v=1784541201"}},"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: "停產" }