$product = {"id":7931651522659,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事","handle":"iphone-14-pro-mod-nx-magsafe-bir04","description":null,"published_at":"2026-01-27T14:18:05+08:00","created_at":"2025-11-28T11:27:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 14 Pro","merge","reseller-everydayishappybirthday"],"price":110000,"price_min":110000,"price_max":110000,"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":43861433024611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360949859,"product_id":7931651522659,"position":13,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994","variant_ids":[43861433024611]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR04","featured_media":{"alt":null,"id":27852216631395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861433090147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348361343075,"product_id":7931651522659,"position":14,"created_at":"2026-07-22T18:43:13+08:00","updated_at":"2026-07-22T18:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995","variant_ids":[43861433090147]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-BIR04","featured_media":{"alt":null,"id":27852217024611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861433319523,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360687715,"product_id":7931651522659,"position":12,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994","variant_ids":[43861433319523]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-BIR04","featured_media":{"alt":null,"id":27852216369251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c8d88a10b7a9717407578a8ea8ac8558dbb976.webp?v=1764300449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef.webp?v=1764300449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602.webp?v=1764300450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7253dd6c7ad8bd6be2be2f46e24cf3569a16f5.webp?v=1764300450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e46f9b4c2c4d6521324895eb425f91a3a92868.webp?v=1764300451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b981e4d9931d8c0c905311e1d508192c5dbd194.webp?v=1764300451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f0fa125162b1d41ca4a151f9e104c5509833e2.webp?v=1764300451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7602388f798c34cb9ebfe3ab81406961af0e32cc.webp?v=1764300452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137.webp?v=1764300452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d97b97236577eec868c70a6b51675bba06dd8a.webp?v=1764300453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b72d07a89bf34f9112e07589a28d760cfac2df2.webp?v=1764300453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c8d88a10b7a9717407578a8ea8ac8558dbb976.webp?v=1764300449","options":["color"],"media":[{"alt":null,"id":26428195373155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c8d88a10b7a9717407578a8ea8ac8558dbb976.webp?v=1764300449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c8d88a10b7a9717407578a8ea8ac8558dbb976.webp?v=1764300449","width":2000},{"alt":null,"id":26428195471459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef.webp?v=1764300449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef.webp?v=1764300449","width":2000},{"alt":null,"id":26428195569763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602.webp?v=1764300450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602.webp?v=1764300450","width":2000},{"alt":null,"id":26428195635299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7253dd6c7ad8bd6be2be2f46e24cf3569a16f5.webp?v=1764300450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7253dd6c7ad8bd6be2be2f46e24cf3569a16f5.webp?v=1764300450","width":2000},{"alt":null,"id":26428195668067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e46f9b4c2c4d6521324895eb425f91a3a92868.webp?v=1764300451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e46f9b4c2c4d6521324895eb425f91a3a92868.webp?v=1764300451","width":2000},{"alt":null,"id":26428195930211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b981e4d9931d8c0c905311e1d508192c5dbd194.webp?v=1764300451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b981e4d9931d8c0c905311e1d508192c5dbd194.webp?v=1764300451","width":2000},{"alt":null,"id":26428195962979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f0fa125162b1d41ca4a151f9e104c5509833e2.webp?v=1764300451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f0fa125162b1d41ca4a151f9e104c5509833e2.webp?v=1764300451","width":2000},{"alt":null,"id":26428196126819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7602388f798c34cb9ebfe3ab81406961af0e32cc.webp?v=1764300452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7602388f798c34cb9ebfe3ab81406961af0e32cc.webp?v=1764300452","width":2000},{"alt":null,"id":26428196356195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137.webp?v=1764300452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137.webp?v=1764300452","width":2000},{"alt":null,"id":26428196618339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d97b97236577eec868c70a6b51675bba06dd8a.webp?v=1764300453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d97b97236577eec868c70a6b51675bba06dd8a.webp?v=1764300453","width":2000},{"alt":null,"id":26428196782179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b72d07a89bf34f9112e07589a28d760cfac2df2.webp?v=1764300453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b72d07a89bf34f9112e07589a28d760cfac2df2.webp?v=1764300453","width":2000},{"alt":null,"id":27852216369251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994","width":2000},{"alt":null,"id":27852216631395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994","width":2000},{"alt":null,"id":27852217024611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861433024611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360949859,"product_id":7931651522659,"position":13,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994","variant_ids":[43861433024611]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR04","featured_media":{"alt":null,"id":27852216631395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861433090147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348361343075,"product_id":7931651522659,"position":14,"created_at":"2026-07-22T18:43:13+08:00","updated_at":"2026-07-22T18:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995","variant_ids":[43861433090147]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-BIR04","featured_media":{"alt":null,"id":27852217024611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ee20d588d329298ec7c0be0b5809925d350ef_6e4575a7-58f8-43cd-9adc-835c1cefddf7.webp?v=1784716995"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861433319523,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360687715,"product_id":7931651522659,"position":12,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994","variant_ids":[43861433319523]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-BIR04","featured_media":{"alt":null,"id":27852216369251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d8f9a6485168c7fd1c5fe07d448c8680c5ac137_7af7c649-34a9-48fd-a49f-23ab31b996e2.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861433024611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360949859,"product_id":7931651522659,"position":13,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994","variant_ids":[43861433024611]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR04","featured_media":{"alt":null,"id":27852216631395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/185ae3368d9cbb338e3c128a1d32b37fef45d602_8b24a559-1177-4671-ae57-cf67cac89c38.webp?v=1784716994"}},"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: "停產" }