$product = {"id":7911313080419,"title":"iPhone 15 Pro Max SolidX PosterLad 樹林","handle":"iphone-15-pro-max-solidx-pos10","description":null,"published_at":"2025-11-05T10:30:21+08:00","created_at":"2025-11-04T10:55:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 15 Pro Max","merge","reseller-posterlad"],"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":43812289478755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729398501475,"product_id":7911313080419,"position":6,"created_at":"2025-11-04T10:55:39+08:00","updated_at":"2025-11-04T10:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940","variant_ids":[43812289478755]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297266077795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289577059,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397026915,"product_id":7911313080419,"position":1,"created_at":"2025-11-04T10:55:34+08:00","updated_at":"2025-11-04T10:55:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936","variant_ids":[43812289577059]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297264603235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289609827,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397387363,"product_id":7911313080419,"position":2,"created_at":"2025-11-04T10:55:35+08:00","updated_at":"2025-11-04T10:55:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937","variant_ids":[43812289609827]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297264963683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289675363,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729399550051,"product_id":7911313080419,"position":10,"created_at":"2025-11-04T10:55:42+08:00","updated_at":"2025-11-04T10:55:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944","variant_ids":[43812289675363]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297267126371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289708131,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397944419,"product_id":7911313080419,"position":4,"created_at":"2025-11-04T10:55:37+08:00","updated_at":"2025-11-04T10:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939","variant_ids":[43812289708131]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297265520739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403b788a3d1ef513ddf45aafad6b71f65ff661e0.webp?v=1762224938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675a0bdaea4a978ea21375c96305cff576281fd1.webp?v=1762224940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51fef34d9047f34dc1a625a550d29e5b4d317829.webp?v=1762224941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa60c30b44e36d7d21d595f209439e2e28768eb.webp?v=1762224942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0e4e49a3b422193f4c4f0d7fbbb97bdab41904.webp?v=1762224943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936","options":["color"],"media":[{"alt":null,"id":26297264603235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936","width":2000},{"alt":null,"id":26297264963683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937","width":2000},{"alt":null,"id":26297265225827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403b788a3d1ef513ddf45aafad6b71f65ff661e0.webp?v=1762224938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403b788a3d1ef513ddf45aafad6b71f65ff661e0.webp?v=1762224938","width":2000},{"alt":null,"id":26297265520739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939","width":2000},{"alt":null,"id":26297265848419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675a0bdaea4a978ea21375c96305cff576281fd1.webp?v=1762224940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675a0bdaea4a978ea21375c96305cff576281fd1.webp?v=1762224940","width":2000},{"alt":null,"id":26297266077795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940","width":2000},{"alt":null,"id":26297266241635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51fef34d9047f34dc1a625a550d29e5b4d317829.webp?v=1762224941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51fef34d9047f34dc1a625a550d29e5b4d317829.webp?v=1762224941","width":2000},{"alt":null,"id":26297266503779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa60c30b44e36d7d21d595f209439e2e28768eb.webp?v=1762224942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa60c30b44e36d7d21d595f209439e2e28768eb.webp?v=1762224942","width":2000},{"alt":null,"id":26297266765923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0e4e49a3b422193f4c4f0d7fbbb97bdab41904.webp?v=1762224943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0e4e49a3b422193f4c4f0d7fbbb97bdab41904.webp?v=1762224943","width":2000},{"alt":null,"id":26297267126371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812289478755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729398501475,"product_id":7911313080419,"position":6,"created_at":"2025-11-04T10:55:39+08:00","updated_at":"2025-11-04T10:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940","variant_ids":[43812289478755]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297266077795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289577059,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397026915,"product_id":7911313080419,"position":1,"created_at":"2025-11-04T10:55:34+08:00","updated_at":"2025-11-04T10:55:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936","variant_ids":[43812289577059]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297264603235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da22548a30a0363c3515faa1be341478f1296ae8.webp?v=1762224936"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289609827,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397387363,"product_id":7911313080419,"position":2,"created_at":"2025-11-04T10:55:35+08:00","updated_at":"2025-11-04T10:55:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937","variant_ids":[43812289609827]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297264963683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f83d4a6f04e2a67cab9cbaf04ba4c71ea9abfe80.webp?v=1762224937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289675363,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729399550051,"product_id":7911313080419,"position":10,"created_at":"2025-11-04T10:55:42+08:00","updated_at":"2025-11-04T10:55:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944","variant_ids":[43812289675363]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297267126371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2396261296165742c1cb625b61982e3c391db00b.webp?v=1762224944"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812289708131,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729397944419,"product_id":7911313080419,"position":4,"created_at":"2025-11-04T10:55:37+08:00","updated_at":"2025-11-04T10:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939","variant_ids":[43812289708131]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297265520739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68bc8b069e37016d058abc2c8cc2d9dd1d41181.webp?v=1762224939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812289478755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729398501475,"product_id":7911313080419,"position":6,"created_at":"2025-11-04T10:55:39+08:00","updated_at":"2025-11-04T10:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940","variant_ids":[43812289478755]},"available":true,"name":"iPhone 15 Pro Max SolidX PosterLad 樹林 - 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-POS10","featured_media":{"alt":null,"id":26297266077795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba03f74d623f3552840e8042e58e625b96d8039.webp?v=1762224940"}},"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: "停產" }