$product = {"id":7823817244771,"title":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 食物系列-甜點世界","handle":"iphone-15-pro-max-solidx-px02","description":null,"published_at":"2025-07-30T15:35:02+08:00","created_at":"2025-06-20T10:28:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pompompurin-cinnamoroll","device-iPhone 15 Pro Max","merge","reseller-pompompurin-cinnamoroll"],"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":43473325195363,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060016279651,"product_id":7823817244771,"position":3,"created_at":"2026-06-23T15:40:03+08:00","updated_at":"2026-06-23T15:40:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405","variant_ids":[43473325195363]},"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-PX02","featured_media":{"alt":null,"id":27572862517347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328767075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060018606179,"product_id":7823817244771,"position":6,"created_at":"2026-06-23T15:40:05+08:00","updated_at":"2026-06-23T15:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408","variant_ids":[43473328767075]},"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-PX02","featured_media":{"alt":null,"id":27572864909411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328865379,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060022210659,"product_id":7823817244771,"position":9,"created_at":"2026-06-23T15:40:09+08:00","updated_at":"2026-06-23T15:40:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412","variant_ids":[43473328865379]},"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-PX02","featured_media":{"alt":null,"id":27572868448355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328898147,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060018245731,"product_id":7823817244771,"position":5,"created_at":"2026-06-23T15:40:05+08:00","updated_at":"2026-06-23T15:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406","variant_ids":[43473328898147]},"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-PX02","featured_media":{"alt":null,"id":27572864516195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494204506211,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060020572259,"product_id":7823817244771,"position":8,"created_at":"2026-06-23T15:40:07+08:00","updated_at":"2026-06-23T15:40:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409","variant_ids":[43494204506211]},"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-PX02","featured_media":{"alt":null,"id":27572866908259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409"}},"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-PX02.png?v=1750386522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX02_df7ae3d6-d764-4017-a7a9-47423498381c.png?v=1750831793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4776890043d042df3e1cc009a46a8ab1cf5040e3.webp?v=1782200406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e90e9117014b50f6d45c2e8fc6e93b86454c7c.webp?v=1782200408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX02.png?v=1750386522","options":["color"],"media":[{"alt":null,"id":25720382357603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX02.png?v=1750386522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX02.png?v=1750386522","width":2000},{"alt":null,"id":25736262778979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX02_df7ae3d6-d764-4017-a7a9-47423498381c.png?v=1750831793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX02_df7ae3d6-d764-4017-a7a9-47423498381c.png?v=1750831793","width":2000},{"alt":null,"id":27572862517347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405","width":2000},{"alt":null,"id":27572863139939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4776890043d042df3e1cc009a46a8ab1cf5040e3.webp?v=1782200406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4776890043d042df3e1cc009a46a8ab1cf5040e3.webp?v=1782200406","width":2000},{"alt":null,"id":27572864516195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406","width":2000},{"alt":null,"id":27572864909411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408","width":2000},{"alt":null,"id":27572865892451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e90e9117014b50f6d45c2e8fc6e93b86454c7c.webp?v=1782200408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e90e9117014b50f6d45c2e8fc6e93b86454c7c.webp?v=1782200408","width":2000},{"alt":null,"id":27572866908259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409","width":2000},{"alt":null,"id":27572868448355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43473325195363,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060016279651,"product_id":7823817244771,"position":3,"created_at":"2026-06-23T15:40:03+08:00","updated_at":"2026-06-23T15:40:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405","variant_ids":[43473325195363]},"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-PX02","featured_media":{"alt":null,"id":27572862517347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328767075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060018606179,"product_id":7823817244771,"position":6,"created_at":"2026-06-23T15:40:05+08:00","updated_at":"2026-06-23T15:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408","variant_ids":[43473328767075]},"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-PX02","featured_media":{"alt":null,"id":27572864909411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36117bddcff19864d84ca5386849ff52c10f43a2.webp?v=1782200408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328865379,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060022210659,"product_id":7823817244771,"position":9,"created_at":"2026-06-23T15:40:09+08:00","updated_at":"2026-06-23T15:40:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412","variant_ids":[43473328865379]},"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-PX02","featured_media":{"alt":null,"id":27572868448355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6fcb1f54c7b77775ef8ffb9fa2128bd7960dd3.webp?v=1782200412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473328898147,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060018245731,"product_id":7823817244771,"position":5,"created_at":"2026-06-23T15:40:05+08:00","updated_at":"2026-06-23T15:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406","variant_ids":[43473328898147]},"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-PX02","featured_media":{"alt":null,"id":27572864516195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb4482f05a7bfd1ac8fb84fffd0daeec139d2f8a.webp?v=1782200406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494204506211,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060020572259,"product_id":7823817244771,"position":8,"created_at":"2026-06-23T15:40:07+08:00","updated_at":"2026-06-23T15:40:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409","variant_ids":[43494204506211]},"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-PX02","featured_media":{"alt":null,"id":27572866908259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69becd77d8ba461ed18bda13f257256a4f62d07.webp?v=1782200409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43473325195363,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36060016279651,"product_id":7823817244771,"position":3,"created_at":"2026-06-23T15:40:03+08:00","updated_at":"2026-06-23T15:40:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405","variant_ids":[43473325195363]},"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-PX02","featured_media":{"alt":null,"id":27572862517347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d20e45be874e3a52d6c763a1362ac18d6df07e.webp?v=1782200405"}},"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: "停產" }