$product = {"id":7815633961059,"title":"iPhone 11 Pro Max Mod NX 小玉米花 金盞花","handle":"iphone-11-pro-max-mod-nx-bumper-crossover-design-eg09","description":null,"published_at":"2025-06-11T15:23:12+08:00","created_at":"2025-06-11T14:27:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 11 Pro Max","merge","reseller-littlepopcorn"],"price":90000,"price_min":90000,"price_max":90000,"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":43444887355491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0114924-EG09","requires_shipping":true,"taxable":true,"featured_image":{"id":34012064612451,"product_id":7815633961059,"position":17,"created_at":"2025-06-12T10:05:57+08:00","updated_at":"2025-06-12T10:05:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958","variant_ids":[43444887355491]},"available":true,"name":"iPhone 11 Pro Max Mod NX 小玉米花 金盞花 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-EG09","featured_media":{"alt":null,"id":25692752347235,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb.webp?v=1749623274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6.webp?v=1749623274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406.webp?v=1749623275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db.webp?v=1749623275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375.webp?v=1749623276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_d357837c-4bb1-4e09-8756-2df941388975.webp?v=1749624539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_a397d3a2-e9cd-4f46-9ed5-5dfc4ee504b9.webp?v=1749624539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_db30ce99-045b-4ede-a2a6-9122142c7031.webp?v=1749624540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_0b68f6f8-3738-4fea-9ce6-86a5cab91afa.webp?v=1749624540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_ab38ba3c-c1d5-4e94-b63a-8ca148cbc241.webp?v=1749624541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_10206606-aad6-47b5-be6c-e1e1ef12b655.webp?v=1749625572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_0a4298c8-7332-4b7e-bdff-f08f36b6ff76.webp?v=1749625572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_6ae31385-de84-49e3-bbee-d6348edf66c1.webp?v=1749625573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_152a2054-7e22-4b46-afb8-81e711616703.webp?v=1749625573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_24407c7a-b101-44e5-b4e8-a0b172082fac.webp?v=1749625574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_8362cace-1933-4ce6-82a9-8b9c1c985604.webp?v=1749693958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_568f6aa5-c8a9-4056-9bfc-ebba12a83c1e.webp?v=1749693959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_336286f4-1ed1-43ab-a8e0-10614fd59a79.webp?v=1749693960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_05ef5e8c-538b-4bd7-b1b4-904fb5acd00b.webp?v=1749693960"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb.webp?v=1749623274","options":["color"],"media":[{"alt":null,"id":25689548259427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb.webp?v=1749623274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb.webp?v=1749623274","width":2000},{"alt":null,"id":25689548423267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6.webp?v=1749623274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6.webp?v=1749623274","width":2000},{"alt":null,"id":25689548554339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406.webp?v=1749623275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406.webp?v=1749623275","width":2000},{"alt":null,"id":25689548718179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db.webp?v=1749623275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db.webp?v=1749623275","width":2000},{"alt":null,"id":25689549045859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375.webp?v=1749623276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375.webp?v=1749623276","width":2000},{"alt":null,"id":25689759252579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_d357837c-4bb1-4e09-8756-2df941388975.webp?v=1749624539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_d357837c-4bb1-4e09-8756-2df941388975.webp?v=1749624539","width":2000},{"alt":null,"id":25689759481955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_a397d3a2-e9cd-4f46-9ed5-5dfc4ee504b9.webp?v=1749624539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_a397d3a2-e9cd-4f46-9ed5-5dfc4ee504b9.webp?v=1749624539","width":2000},{"alt":null,"id":25689759678563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_db30ce99-045b-4ede-a2a6-9122142c7031.webp?v=1749624540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_db30ce99-045b-4ede-a2a6-9122142c7031.webp?v=1749624540","width":2000},{"alt":null,"id":25689759809635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_0b68f6f8-3738-4fea-9ce6-86a5cab91afa.webp?v=1749624540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_0b68f6f8-3738-4fea-9ce6-86a5cab91afa.webp?v=1749624540","width":2000},{"alt":null,"id":25689760006243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_ab38ba3c-c1d5-4e94-b63a-8ca148cbc241.webp?v=1749624541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_ab38ba3c-c1d5-4e94-b63a-8ca148cbc241.webp?v=1749624541","width":2000},{"alt":null,"id":25690029523043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_10206606-aad6-47b5-be6c-e1e1ef12b655.webp?v=1749625572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_10206606-aad6-47b5-be6c-e1e1ef12b655.webp?v=1749625572","width":2000},{"alt":null,"id":25690029785187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_0a4298c8-7332-4b7e-bdff-f08f36b6ff76.webp?v=1749625572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_0a4298c8-7332-4b7e-bdff-f08f36b6ff76.webp?v=1749625572","width":2000},{"alt":null,"id":25690030047331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_6ae31385-de84-49e3-bbee-d6348edf66c1.webp?v=1749625573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_6ae31385-de84-49e3-bbee-d6348edf66c1.webp?v=1749625573","width":2000},{"alt":null,"id":25690030309475,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_152a2054-7e22-4b46-afb8-81e711616703.webp?v=1749625573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_152a2054-7e22-4b46-afb8-81e711616703.webp?v=1749625573","width":2000},{"alt":null,"id":25690030637155,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_24407c7a-b101-44e5-b4e8-a0b172082fac.webp?v=1749625574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_24407c7a-b101-44e5-b4e8-a0b172082fac.webp?v=1749625574","width":2000},{"alt":null,"id":25692751855715,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_8362cace-1933-4ce6-82a9-8b9c1c985604.webp?v=1749693958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8481125e456a5acf1e645d675c916e971a61e0db_8362cace-1933-4ce6-82a9-8b9c1c985604.webp?v=1749693958","width":2000},{"alt":null,"id":25692752347235,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958","width":2000},{"alt":null,"id":25692752707683,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_568f6aa5-c8a9-4056-9bfc-ebba12a83c1e.webp?v=1749693959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afafc41c8219ffc3950b2dc5515ca4df84994fb_568f6aa5-c8a9-4056-9bfc-ebba12a83c1e.webp?v=1749693959","width":2000},{"alt":null,"id":25692753068131,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_336286f4-1ed1-43ab-a8e0-10614fd59a79.webp?v=1749693960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa951113437be131a77355cbabb7b24c1051406_336286f4-1ed1-43ab-a8e0-10614fd59a79.webp?v=1749693960","width":2000},{"alt":null,"id":25692753395811,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_05ef5e8c-538b-4bd7-b1b4-904fb5acd00b.webp?v=1749693960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bae3a1c3274c9541410d7567ae8131f73ccd5a6_05ef5e8c-538b-4bd7-b1b4-904fb5acd00b.webp?v=1749693960","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43444887355491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0114924-EG09","requires_shipping":true,"taxable":true,"featured_image":{"id":34012064612451,"product_id":7815633961059,"position":17,"created_at":"2025-06-12T10:05:57+08:00","updated_at":"2025-06-12T10:05:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958","variant_ids":[43444887355491]},"available":true,"name":"iPhone 11 Pro Max Mod NX 小玉米花 金盞花 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-EG09","featured_media":{"alt":null,"id":25692752347235,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444887355491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0114924-EG09","requires_shipping":true,"taxable":true,"featured_image":{"id":34012064612451,"product_id":7815633961059,"position":17,"created_at":"2025-06-12T10:05:57+08:00","updated_at":"2025-06-12T10:05:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958","variant_ids":[43444887355491]},"available":true,"name":"iPhone 11 Pro Max Mod NX 小玉米花 金盞花 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-EG09","featured_media":{"alt":null,"id":25692752347235,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4be61df867ed61ab2624beb05ba9e66c6946f375_463f4b39-5b50-4f00-8207-648893c0ebc4.webp?v=1749693958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }