$product = {"id":7159449682019,"title":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers","handle":"iphone-14-pro-max-jellytint-pm10","description":null,"published_at":"2024-02-01T10:17:06+08:00","created_at":"2024-01-26T18:13:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-殼老爹","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 14 Pro Max","merge","reseller-nba"],"price":128000,"price_min":128000,"price_max":128000,"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":41214938284131,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356208739,"product_id":7159449682019,"position":11,"created_at":"2026-07-02T12:17:00+08:00","updated_at":"2026-07-02T12:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822","variant_ids":[41214938284131]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-PM10","featured_media":{"alt":null,"id":27657229697123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214938349667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356765795,"product_id":7159449682019,"position":13,"created_at":"2026-07-02T12:17:01+08:00","updated_at":"2026-07-02T12:17:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823","variant_ids":[41214938349667]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-PM10","featured_media":{"alt":null,"id":27657230254179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214938447971,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356503651,"product_id":7159449682019,"position":12,"created_at":"2026-07-02T12:17:00+08:00","updated_at":"2026-07-02T12:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822","variant_ids":[41214938447971]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-PM10","featured_media":{"alt":null,"id":27657229992035,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-263-PM10_449a806f-a2a5-4e2e-a41c-d127c2581459.png?v=1706263982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139.webp?v=1782207313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314.webp?v=1782207314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298.webp?v=1782207314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_9be49567-d603-42cc-b895-094fefb48bed.webp?v=1782957847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_c8445e78-de1e-4a00-8418-fc0498c624b8.webp?v=1782957847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_46aac411-22ea-4aea-8163-0ac8a6aab207.webp?v=1782957848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_8ffad09e-5731-4440-bfd8-8660b223e7a4.webp?v=1782961405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_3235109a-333c-4bcb-9ea5-62c69c5b81cd.webp?v=1782961406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_32653447-4293-4585-9571-775a9e7b56fb.webp?v=1782961407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-263-PM10_449a806f-a2a5-4e2e-a41c-d127c2581459.png?v=1706263982","options":["color"],"media":[{"alt":null,"id":23219729203299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-263-PM10_449a806f-a2a5-4e2e-a41c-d127c2581459.png?v=1706263982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-263-PM10_449a806f-a2a5-4e2e-a41c-d127c2581459.png?v=1706263982","width":2000},{"alt":null,"id":27575899619427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139.webp?v=1782207313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139.webp?v=1782207313","width":2000},{"alt":null,"id":27575899881571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314.webp?v=1782207314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314.webp?v=1782207314","width":2000},{"alt":null,"id":27575900209251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298.webp?v=1782207314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298.webp?v=1782207314","width":2000},{"alt":null,"id":27655942307939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_9be49567-d603-42cc-b895-094fefb48bed.webp?v=1782957847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_9be49567-d603-42cc-b895-094fefb48bed.webp?v=1782957847","width":2000},{"alt":null,"id":27655942668387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_c8445e78-de1e-4a00-8418-fc0498c624b8.webp?v=1782957847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_c8445e78-de1e-4a00-8418-fc0498c624b8.webp?v=1782957847","width":2000},{"alt":null,"id":27655943192675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_46aac411-22ea-4aea-8163-0ac8a6aab207.webp?v=1782957848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_46aac411-22ea-4aea-8163-0ac8a6aab207.webp?v=1782957848","width":2000},{"alt":null,"id":27656755740771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_8ffad09e-5731-4440-bfd8-8660b223e7a4.webp?v=1782961405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_8ffad09e-5731-4440-bfd8-8660b223e7a4.webp?v=1782961405","width":2000},{"alt":null,"id":27656756101219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_3235109a-333c-4bcb-9ea5-62c69c5b81cd.webp?v=1782961406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_3235109a-333c-4bcb-9ea5-62c69c5b81cd.webp?v=1782961406","width":2000},{"alt":null,"id":27656756494435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_32653447-4293-4585-9571-775a9e7b56fb.webp?v=1782961407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_32653447-4293-4585-9571-775a9e7b56fb.webp?v=1782961407","width":2000},{"alt":null,"id":27657229697123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822","width":2000},{"alt":null,"id":27657229992035,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822","width":2000},{"alt":null,"id":27657230254179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41214938284131,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356208739,"product_id":7159449682019,"position":11,"created_at":"2026-07-02T12:17:00+08:00","updated_at":"2026-07-02T12:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822","variant_ids":[41214938284131]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-PM10","featured_media":{"alt":null,"id":27657229697123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214938349667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356765795,"product_id":7159449682019,"position":13,"created_at":"2026-07-02T12:17:01+08:00","updated_at":"2026-07-02T12:17:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823","variant_ids":[41214938349667]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-PM10","featured_media":{"alt":null,"id":27657230254179,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8703d8df004bdf857fff64e66d734703e67314_1be86bc1-e09e-4a2c-8f50-2593b30ccb3c.webp?v=1782965823"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214938447971,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356503651,"product_id":7159449682019,"position":12,"created_at":"2026-07-02T12:17:00+08:00","updated_at":"2026-07-02T12:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822","variant_ids":[41214938447971]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-PM10","featured_media":{"alt":null,"id":27657229992035,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2022f79cf341e085d78e22c504212bcc717139_fbe86c24-8d8d-4887-831e-3e2354a2ef43.webp?v=1782965822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41214938284131,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152356208739,"product_id":7159449682019,"position":11,"created_at":"2026-07-02T12:17:00+08:00","updated_at":"2026-07-02T12:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822","variant_ids":[41214938284131]},"available":true,"name":"iPhone 14 Pro Max Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-PM10","featured_media":{"alt":null,"id":27657229697123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394d85984caa7d18651aed0fc6e3f5aabbbc4298_332c7b50-2580-4464-bd42-5f78e04c5142.webp?v=1782965822"}},"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: "停產" }