$product = {"id":7940050157667,"title":"iPhone 15 Plus SolidX 常態系列 貼貼怪","handle":"iphone-15-plus-solidx-fug01","description":null,"published_at":"2025-12-19T14:08:13+08:00","created_at":"2025-12-17T12:44:36+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":43895031955555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG01","requires_shipping":true,"taxable":true,"featured_image":{"id":35673228640355,"product_id":7940050157667,"position":11,"created_at":"2026-04-20T09:40:49+08:00","updated_at":"2026-04-20T09:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251","variant_ids":[43895031955555]},"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-FUG01","featured_media":{"alt":null,"id":27200499810403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43895032152163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-FUG01","requires_shipping":true,"taxable":true,"featured_image":{"id":35673230704739,"product_id":7940050157667,"position":17,"created_at":"2026-04-20T09:40:54+08:00","updated_at":"2026-04-20T09:40:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256","variant_ids":[43895032152163]},"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-FUG01","featured_media":{"alt":null,"id":27200501874787,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd4cc7abbf4b0b52ecccc47324405f8c8220eef.webp?v=1765946721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9.webp?v=1765946721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc.webp?v=1765946722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b.webp?v=1765946723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c.webp?v=1765946723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555.webp?v=1765946724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f.webp?v=1765946724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0d4130068946c0264e9ba8073a0fefd308fd1.webp?v=1765946725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21.webp?v=1765946725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263.webp?v=1765946726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc_39db29ba-11a9-4ad3-b2ee-2fc674d0b7a9.webp?v=1776649252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9_1db6f68a-2655-4a95-ac84-2a6a3d2ce0e0.webp?v=1776649253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b_7b741c39-a777-4ad2-bf37-98eba1f2937c.webp?v=1776649253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f_f871ba20-7ece-4d43-89ab-a382f2e4c276.webp?v=1776649255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263_72f067b7-a852-4802-9b94-0684370d7787.webp?v=1776649255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555_991caca7-aea9-4580-bd76-37423914fdd1.webp?v=1776649256"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd4cc7abbf4b0b52ecccc47324405f8c8220eef.webp?v=1765946721","options":["color"],"media":[{"alt":null,"id":26522186776675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd4cc7abbf4b0b52ecccc47324405f8c8220eef.webp?v=1765946721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd4cc7abbf4b0b52ecccc47324405f8c8220eef.webp?v=1765946721","width":2000},{"alt":null,"id":26522186809443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9.webp?v=1765946721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9.webp?v=1765946721","width":2000},{"alt":null,"id":26522186842211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc.webp?v=1765946722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc.webp?v=1765946722","width":2000},{"alt":null,"id":26522186874979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b.webp?v=1765946723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b.webp?v=1765946723","width":2000},{"alt":null,"id":26522187006051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c.webp?v=1765946723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c.webp?v=1765946723","width":2000},{"alt":null,"id":26522187038819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555.webp?v=1765946724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555.webp?v=1765946724","width":2000},{"alt":null,"id":26522187071587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f.webp?v=1765946724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f.webp?v=1765946724","width":2000},{"alt":null,"id":26522187104355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0d4130068946c0264e9ba8073a0fefd308fd1.webp?v=1765946725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0d4130068946c0264e9ba8073a0fefd308fd1.webp?v=1765946725","width":2000},{"alt":null,"id":26522187137123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21.webp?v=1765946725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21.webp?v=1765946725","width":2000},{"alt":null,"id":26522187202659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263.webp?v=1765946726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263.webp?v=1765946726","width":2000},{"alt":null,"id":27200499810403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251","width":2000},{"alt":null,"id":27200500138083,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc_39db29ba-11a9-4ad3-b2ee-2fc674d0b7a9.webp?v=1776649252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7ce73bd6bb93c86788aaf43b229d1a5ce53bdc_39db29ba-11a9-4ad3-b2ee-2fc674d0b7a9.webp?v=1776649252","width":2000},{"alt":null,"id":27200500400227,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9_1db6f68a-2655-4a95-ac84-2a6a3d2ce0e0.webp?v=1776649253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df73676f69a046af6864bb8bfd3c7fef2bb90c9_1db6f68a-2655-4a95-ac84-2a6a3d2ce0e0.webp?v=1776649253","width":2000},{"alt":null,"id":27200500531299,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b_7b741c39-a777-4ad2-bf37-98eba1f2937c.webp?v=1776649253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd416717d5859cc231a899f9f8519e69332862b_7b741c39-a777-4ad2-bf37-98eba1f2937c.webp?v=1776649253","width":2000},{"alt":null,"id":27200501022819,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f_f871ba20-7ece-4d43-89ab-a382f2e4c276.webp?v=1776649255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0aff347bad564838f21559f0e14c42899ee75f_f871ba20-7ece-4d43-89ab-a382f2e4c276.webp?v=1776649255","width":2000},{"alt":null,"id":27200501416035,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263_72f067b7-a852-4802-9b94-0684370d7787.webp?v=1776649255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ca60b7a58e33c80267b1be054f65fd1c4ba263_72f067b7-a852-4802-9b94-0684370d7787.webp?v=1776649255","width":2000},{"alt":null,"id":27200501874787,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256","width":2000},{"alt":null,"id":27200502366307,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555_991caca7-aea9-4580-bd76-37423914fdd1.webp?v=1776649256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835f7446f481c9a1df334dc72518944961c1c555_991caca7-aea9-4580-bd76-37423914fdd1.webp?v=1776649256","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43895031955555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG01","requires_shipping":true,"taxable":true,"featured_image":{"id":35673228640355,"product_id":7940050157667,"position":11,"created_at":"2026-04-20T09:40:49+08:00","updated_at":"2026-04-20T09:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251","variant_ids":[43895031955555]},"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-FUG01","featured_media":{"alt":null,"id":27200499810403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43895032152163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-FUG01","requires_shipping":true,"taxable":true,"featured_image":{"id":35673230704739,"product_id":7940050157667,"position":17,"created_at":"2026-04-20T09:40:54+08:00","updated_at":"2026-04-20T09:40:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256","variant_ids":[43895032152163]},"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-FUG01","featured_media":{"alt":null,"id":27200501874787,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ee946cfcba286751e6cb629ed45e74d0451c21_dbb3acac-5dfd-405c-8571-6a1724814c87.webp?v=1776649256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43895031955555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-FUG01","requires_shipping":true,"taxable":true,"featured_image":{"id":35673228640355,"product_id":7940050157667,"position":11,"created_at":"2026-04-20T09:40:49+08:00","updated_at":"2026-04-20T09:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251","variant_ids":[43895031955555]},"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-FUG01","featured_media":{"alt":null,"id":27200499810403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a048dcbc4195497f4f0b1b475bea90eb41719d3c_76277886-9f80-44a3-b4e5-4fd9c5932c29.webp?v=1776649251"}},"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: "停產" }