$product = {"id":7940050255971,"title":"iPhone 15 Plus SolidX 常態系列 倍感牙力","handle":"iphone-15-plus-solidx-fug02","description":null,"published_at":"2025-12-19T14:08:13+08:00","created_at":"2025-12-17T12:45:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-fuggler","device-iPhone 15 Plus","merge","reseller-fuggler"],"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":43895032283235,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG02","requires_shipping":true,"taxable":true,"featured_image":{"id":35673331499107,"product_id":7940050255971,"position":15,"created_at":"2026-04-20T09:44:13+08:00","updated_at":"2026-04-20T09:44:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455","variant_ids":[43895032283235]},"available":true,"name":"iPhone 15 Plus SolidX 常態系列 倍感牙力 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-FUG02","featured_media":{"alt":null,"id":27200602669155,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43895032479843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-FUG02","requires_shipping":true,"taxable":true,"featured_image":{"id":35673330516067,"product_id":7940050255971,"position":13,"created_at":"2026-04-20T09:44:12+08:00","updated_at":"2026-04-20T09:44:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454","variant_ids":[43895032479843]},"available":true,"name":"iPhone 15 Plus 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":"NST0129652-FUG02","featured_media":{"alt":null,"id":27200601686115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4.webp?v=1765946770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da.webp?v=1765946771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080.webp?v=1765946771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186.webp?v=1765946772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93.webp?v=1765946772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880.webp?v=1765946773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87.webp?v=1765946773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f84b2928203db1401ef1767ca082f987a9f3a75.webp?v=1765946774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099e2e34349fc3348f3fb1404c1c8975bfe8374f.webp?v=1765946775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394.webp?v=1765946775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4_c6ceb88d-6ffa-467a-8a6f-3836c43c1f6c.webp?v=1776649453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87_008e85f5-c834-4eef-bc82-56720e007525.webp?v=1776649454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93_23d48cc8-0f69-4825-9e69-d6040be62f2e.webp?v=1776649455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186_3fd18505-79e5-4b22-acf4-8cf7c85804cb.webp?v=1776649457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880_9bee0a72-ee45-4617-8bf4-9c4313b1b04d.webp?v=1776649457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da_4a6b2662-5cbd-45f8-873f-faa32cffdab4.webp?v=1776649458"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4.webp?v=1765946770","options":["color"],"media":[{"alt":null,"id":26522188152931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4.webp?v=1765946770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4.webp?v=1765946770","width":2000},{"alt":null,"id":26522188185699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da.webp?v=1765946771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da.webp?v=1765946771","width":2000},{"alt":null,"id":26522188218467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080.webp?v=1765946771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080.webp?v=1765946771","width":2000},{"alt":null,"id":26522188349539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186.webp?v=1765946772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186.webp?v=1765946772","width":2000},{"alt":null,"id":26522188382307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93.webp?v=1765946772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93.webp?v=1765946772","width":2000},{"alt":null,"id":26522188415075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880.webp?v=1765946773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880.webp?v=1765946773","width":2000},{"alt":null,"id":26522188447843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87.webp?v=1765946773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87.webp?v=1765946773","width":2000},{"alt":null,"id":26522188480611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f84b2928203db1401ef1767ca082f987a9f3a75.webp?v=1765946774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f84b2928203db1401ef1767ca082f987a9f3a75.webp?v=1765946774","width":2000},{"alt":null,"id":26522188513379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099e2e34349fc3348f3fb1404c1c8975bfe8374f.webp?v=1765946775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099e2e34349fc3348f3fb1404c1c8975bfe8374f.webp?v=1765946775","width":2000},{"alt":null,"id":26522188546147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394.webp?v=1765946775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394.webp?v=1765946775","width":2000},{"alt":null,"id":27200600997987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4_c6ceb88d-6ffa-467a-8a6f-3836c43c1f6c.webp?v=1776649453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc532e87c15f51be952944f40307f97ee69a81f4_c6ceb88d-6ffa-467a-8a6f-3836c43c1f6c.webp?v=1776649453","width":2000},{"alt":null,"id":27200601260131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87_008e85f5-c834-4eef-bc82-56720e007525.webp?v=1776649454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c4b037ceb48a11684733b3094c934036f2bef87_008e85f5-c834-4eef-bc82-56720e007525.webp?v=1776649454","width":2000},{"alt":null,"id":27200601686115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454","width":2000},{"alt":null,"id":27200602177635,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93_23d48cc8-0f69-4825-9e69-d6040be62f2e.webp?v=1776649455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3c8ee154473626fa2c5e8a88ba15976dd7ec93_23d48cc8-0f69-4825-9e69-d6040be62f2e.webp?v=1776649455","width":2000},{"alt":null,"id":27200602669155,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455","width":2000},{"alt":null,"id":27200603193443,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186_3fd18505-79e5-4b22-acf4-8cf7c85804cb.webp?v=1776649457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14070f6a7e6a404e0a5b0d1cee5f641973bc1186_3fd18505-79e5-4b22-acf4-8cf7c85804cb.webp?v=1776649457","width":2000},{"alt":null,"id":27200603947107,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880_9bee0a72-ee45-4617-8bf4-9c4313b1b04d.webp?v=1776649457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7313f042c9e5c51cc8364492f252c71de850880_9bee0a72-ee45-4617-8bf4-9c4313b1b04d.webp?v=1776649457","width":2000},{"alt":null,"id":27200604995683,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da_4a6b2662-5cbd-45f8-873f-faa32cffdab4.webp?v=1776649458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42fe5f1bf0165c70077eb5c764df30e053a4da_4a6b2662-5cbd-45f8-873f-faa32cffdab4.webp?v=1776649458","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43895032283235,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG02","requires_shipping":true,"taxable":true,"featured_image":{"id":35673331499107,"product_id":7940050255971,"position":15,"created_at":"2026-04-20T09:44:13+08:00","updated_at":"2026-04-20T09:44:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455","variant_ids":[43895032283235]},"available":true,"name":"iPhone 15 Plus SolidX 常態系列 倍感牙力 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-FUG02","featured_media":{"alt":null,"id":27200602669155,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43895032479843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-FUG02","requires_shipping":true,"taxable":true,"featured_image":{"id":35673330516067,"product_id":7940050255971,"position":13,"created_at":"2026-04-20T09:44:12+08:00","updated_at":"2026-04-20T09:44:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454","variant_ids":[43895032479843]},"available":true,"name":"iPhone 15 Plus 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":"NST0129652-FUG02","featured_media":{"alt":null,"id":27200601686115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c5e9e104db83d21138bdca95a4a5bf82b0b394_49d0dd29-d2ac-49ff-bd62-83bb407dfd5b.webp?v=1776649454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43895032283235,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG02","requires_shipping":true,"taxable":true,"featured_image":{"id":35673331499107,"product_id":7940050255971,"position":15,"created_at":"2026-04-20T09:44:13+08:00","updated_at":"2026-04-20T09:44:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455","variant_ids":[43895032283235]},"available":true,"name":"iPhone 15 Plus SolidX 常態系列 倍感牙力 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-FUG02","featured_media":{"alt":null,"id":27200602669155,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9d287c55b4ddce3a7fada411167ba878e3a080_a8a4e0f1-95c3-42ac-ba9d-4116f1600145.webp?v=1776649455"}},"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: "停產" }