$product = {"id":7823848964195,"title":"iPhone 15 Pro Max SolidX 小勞撫 別碰!!","handle":"iphone-15-pro-max-solidx-em29","description":null,"published_at":"2025-07-01T19:07:43+08:00","created_at":"2025-06-20T10:32:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 15 Pro Max","merge","reseller-xiaolaofu"],"price":125000,"price_min":125000,"price_max":125000,"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":43473642684515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164072472675,"product_id":7823848964195,"position":6,"created_at":"2026-07-03T10:04:21+08:00","updated_at":"2026-07-03T10:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263","variant_ids":[43473642684515]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-EM29","featured_media":{"alt":null,"id":27668927873123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646288995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164072833123,"product_id":7823848964195,"position":7,"created_at":"2026-07-03T10:04:21+08:00","updated_at":"2026-07-03T10:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263","variant_ids":[43473646288995]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-EM29","featured_media":{"alt":null,"id":27668928200803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646387299,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164070899811,"product_id":7823848964195,"position":3,"created_at":"2026-07-03T10:04:18+08:00","updated_at":"2026-07-03T10:04:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260","variant_ids":[43473646387299]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-EM29","featured_media":{"alt":null,"id":27668926300259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646420067,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164071686243,"product_id":7823848964195,"position":4,"created_at":"2026-07-03T10:04:19+08:00","updated_at":"2026-07-03T10:04:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261","variant_ids":[43473646420067]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-EM29","featured_media":{"alt":null,"id":27668927053923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494061047907,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164073128035,"product_id":7823848964195,"position":8,"created_at":"2026-07-03T10:04:22+08:00","updated_at":"2026-07-03T10:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264","variant_ids":[43494061047907]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-EM29","featured_media":{"alt":null,"id":27668928528483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-EM29_ed80111e-6d52-4d80-a2e1-440fcabb6363.png?v=1750386735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-EM29_3766ff29-2d26-4ca6-9730-17223aa33228.png?v=1750831489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a823b02bc285577c82db22a8889f1efc4aa86f64.webp?v=1783044262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da42ee4df1c409d584b8c88c5682ef8de890d545.webp?v=1783044264"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-EM29_ed80111e-6d52-4d80-a2e1-440fcabb6363.png?v=1750386735","options":["color"],"media":[{"alt":null,"id":25720420794467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-EM29_ed80111e-6d52-4d80-a2e1-440fcabb6363.png?v=1750386735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-EM29_ed80111e-6d52-4d80-a2e1-440fcabb6363.png?v=1750386735","width":2000},{"alt":null,"id":25736198094947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-EM29_3766ff29-2d26-4ca6-9730-17223aa33228.png?v=1750831489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-EM29_3766ff29-2d26-4ca6-9730-17223aa33228.png?v=1750831489","width":2000},{"alt":null,"id":27668926300259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260","width":2000},{"alt":null,"id":27668927053923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261","width":2000},{"alt":null,"id":27668927479907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a823b02bc285577c82db22a8889f1efc4aa86f64.webp?v=1783044262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a823b02bc285577c82db22a8889f1efc4aa86f64.webp?v=1783044262","width":2000},{"alt":null,"id":27668927873123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263","width":2000},{"alt":null,"id":27668928200803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263","width":2000},{"alt":null,"id":27668928528483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264","width":2000},{"alt":null,"id":27668928856163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da42ee4df1c409d584b8c88c5682ef8de890d545.webp?v=1783044264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da42ee4df1c409d584b8c88c5682ef8de890d545.webp?v=1783044264","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43473642684515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164072472675,"product_id":7823848964195,"position":6,"created_at":"2026-07-03T10:04:21+08:00","updated_at":"2026-07-03T10:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263","variant_ids":[43473642684515]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-EM29","featured_media":{"alt":null,"id":27668927873123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646288995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164072833123,"product_id":7823848964195,"position":7,"created_at":"2026-07-03T10:04:21+08:00","updated_at":"2026-07-03T10:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263","variant_ids":[43473646288995]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-EM29","featured_media":{"alt":null,"id":27668928200803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff3e84d80a3623ce5b4b1ef3edb1275d288642.webp?v=1783044263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646387299,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164070899811,"product_id":7823848964195,"position":3,"created_at":"2026-07-03T10:04:18+08:00","updated_at":"2026-07-03T10:04:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260","variant_ids":[43473646387299]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-EM29","featured_media":{"alt":null,"id":27668926300259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ceb7d5ef72a4a8d49f6adc21ea1d4d5fd78d2.webp?v=1783044260"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473646420067,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164071686243,"product_id":7823848964195,"position":4,"created_at":"2026-07-03T10:04:19+08:00","updated_at":"2026-07-03T10:04:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261","variant_ids":[43473646420067]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-EM29","featured_media":{"alt":null,"id":27668927053923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2b5ac72ea49b3b3025d8a38b06faffbe687e5d.webp?v=1783044261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494061047907,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164073128035,"product_id":7823848964195,"position":8,"created_at":"2026-07-03T10:04:22+08:00","updated_at":"2026-07-03T10:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264","variant_ids":[43494061047907]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-EM29","featured_media":{"alt":null,"id":27668928528483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e044459e1be819523bbf42829b8727c1345ab33.webp?v=1783044264"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43473642684515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-EM29","requires_shipping":true,"taxable":true,"featured_image":{"id":36164072472675,"product_id":7823848964195,"position":6,"created_at":"2026-07-03T10:04:21+08:00","updated_at":"2026-07-03T10:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263","variant_ids":[43473642684515]},"available":true,"name":"iPhone 15 Pro Max SolidX 小勞撫 別碰!! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-EM29","featured_media":{"alt":null,"id":27668927873123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f1342bae3d93725583de4005f3c013bcee79cc.webp?v=1783044263"}},"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: "停產" }