$product = {"id":7862832955491,"title":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers","handle":"iphone-17-jellytint-with-capture-button-pm10","description":null,"published_at":"2025-09-11T09:46:41+08:00","created_at":"2025-08-22T17:53:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 17","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":43607195025507,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510414947,"product_id":7862832955491,"position":13,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252","variant_ids":[43607195025507]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013500G-PM10","featured_media":{"alt":null,"id":27657383903331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43607195943011,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"JTB013504M-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509890659,"product_id":7862832955491,"position":12,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251","variant_ids":[43607195943011]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504M-PM10","featured_media":{"alt":null,"id":27657383379043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43607195975779,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"JTB013504L-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509268067,"product_id":7862832955491,"position":11,"created_at":"2026-07-02T12:24:09+08:00","updated_at":"2026-07-02T12:24:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251","variant_ids":[43607195975779]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504L-PM10","featured_media":{"alt":null,"id":27657382756451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM10_dc2152b2-0008-4c1c-a633-6bad31dd99e2.png?v=1755856391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd.webp?v=1782212896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c.webp?v=1782212897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269.webp?v=1782212897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_340e5f30-b169-433c-b480-6bd22905fe36.webp?v=1782958570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_a3fb070e-33e3-4553-a1fd-5296d792fd35.webp?v=1782958570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_dd87fdbe-bb1f-48a0-9490-12329a764731.webp?v=1782958571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_36ab39e4-0c9f-4be5-bf1c-f43310174592.webp?v=1782961908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_1615e1d0-a26b-4e95-8993-b651b2693d76.webp?v=1782961913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_74a58ccc-8579-4df8-b2b7-df8e1c65ee63.webp?v=1782961914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM10_dc2152b2-0008-4c1c-a633-6bad31dd99e2.png?v=1755856391","options":["color"],"media":[{"alt":null,"id":25940582400099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM10_dc2152b2-0008-4c1c-a633-6bad31dd99e2.png?v=1755856391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM10_dc2152b2-0008-4c1c-a633-6bad31dd99e2.png?v=1755856391","width":2000},{"alt":null,"id":27578280640611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd.webp?v=1782212896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd.webp?v=1782212896","width":2000},{"alt":null,"id":27578281295971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c.webp?v=1782212897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c.webp?v=1782212897","width":2000},{"alt":null,"id":27578281590883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269.webp?v=1782212897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269.webp?v=1782212897","width":2000},{"alt":null,"id":27656215461987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_340e5f30-b169-433c-b480-6bd22905fe36.webp?v=1782958570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_340e5f30-b169-433c-b480-6bd22905fe36.webp?v=1782958570","width":2000},{"alt":null,"id":27656215756899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_a3fb070e-33e3-4553-a1fd-5296d792fd35.webp?v=1782958570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_a3fb070e-33e3-4553-a1fd-5296d792fd35.webp?v=1782958570","width":2000},{"alt":null,"id":27656216019043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_dd87fdbe-bb1f-48a0-9490-12329a764731.webp?v=1782958571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_dd87fdbe-bb1f-48a0-9490-12329a764731.webp?v=1782958571","width":2000},{"alt":null,"id":27656886583395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_36ab39e4-0c9f-4be5-bf1c-f43310174592.webp?v=1782961908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_36ab39e4-0c9f-4be5-bf1c-f43310174592.webp?v=1782961908","width":2000},{"alt":null,"id":27656886714467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_1615e1d0-a26b-4e95-8993-b651b2693d76.webp?v=1782961913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_1615e1d0-a26b-4e95-8993-b651b2693d76.webp?v=1782961913","width":2000},{"alt":null,"id":27656886911075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_74a58ccc-8579-4df8-b2b7-df8e1c65ee63.webp?v=1782961914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_74a58ccc-8579-4df8-b2b7-df8e1c65ee63.webp?v=1782961914","width":2000},{"alt":null,"id":27657382756451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251","width":2000},{"alt":null,"id":27657383379043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251","width":2000},{"alt":null,"id":27657383903331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43607195025507,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510414947,"product_id":7862832955491,"position":13,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252","variant_ids":[43607195025507]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013500G-PM10","featured_media":{"alt":null,"id":27657383903331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43607195943011,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"JTB013504M-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509890659,"product_id":7862832955491,"position":12,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251","variant_ids":[43607195943011]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504M-PM10","featured_media":{"alt":null,"id":27657383379043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6d53219632d49349e949a8d69e20bb582b5d9c_8366dc87-1a3b-4a41-b143-d390de7f41ef.webp?v=1782966251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43607195975779,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"JTB013504L-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509268067,"product_id":7862832955491,"position":11,"created_at":"2026-07-02T12:24:09+08:00","updated_at":"2026-07-02T12:24:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251","variant_ids":[43607195975779]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504L-PM10","featured_media":{"alt":null,"id":27657382756451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1feb21ef3120e62c7d52a94655b2da53dea269_410a51ee-585f-4ad4-aa0a-606f7df43622.webp?v=1782966251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43607195025507,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510414947,"product_id":7862832955491,"position":13,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252","variant_ids":[43607195025507]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013500G-PM10","featured_media":{"alt":null,"id":27657383903331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39255979a34dd26da7cbd9a50d50c84aa32892bd_9490b9a2-43b0-4b67-b310-f39a0290b061.webp?v=1782966252"}},"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: "停產" }