Home
›
iPhone 16 Pro Max Clear(MagSafe 兼容 & 相機按鈕) 小玉米花 新年恐龍
$product = {"id":7815621935203,"title":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍","handle":"iphone-16-pro-max-jellytint-magsafe-bumper-with-capture-button-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:29:44+08:00","created_at":"2025-06-11T14:25:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 16 Pro Max","merge","reseller-littlepopcorn"],"price":148000,"price_min":148000,"price_max":148000,"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":43444834992227,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013280G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012386033763,"product_id":7815621935203,"position":13,"created_at":"2025-06-12T10:10:42+08:00","updated_at":"2025-06-12T10:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244","variant_ids":[43444834992227]},"available":true,"name":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013280G-EG10","featured_media":{"alt":null,"id":25692917268579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444836761699,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MJB013280H-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012386394211,"product_id":7815621935203,"position":14,"created_at":"2025-06-12T10:10:42+08:00","updated_at":"2025-06-12T10:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244","variant_ids":[43444836761699]},"available":true,"name":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013280H-EG10","featured_media":{"alt":null,"id":25692917497955,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7.webp?v=1749623116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef.webp?v=1749623117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95.webp?v=1749623117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe.webp?v=1749623118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_491205e6-d8b7-4fba-9988-5463ff86bcbe.webp?v=1749624394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_2906b204-e406-4951-93f7-ad27076642e2.webp?v=1749624394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_25dd2699-edd0-4a4b-8a92-1d352b16cd06.webp?v=1749624395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_d64ca172-58c4-499a-82fa-99958887b4ca.webp?v=1749624395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_b98e70de-052d-4587-b54d-3f077578e5f1.webp?v=1749625174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_d619641e-db5e-4365-bcac-8734e321bb69.webp?v=1749625175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_0f5ea4ab-07e3-4332-bf2e-4a937958a1d1.webp?v=1749625175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_701dcd84-7d7a-4064-8b5a-d61c4834c71b.webp?v=1749625176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_1ca93b88-70ac-4644-b565-d062bea802f1.webp?v=1749694245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_56334865-101c-4018-8813-12a9a49a45bd.webp?v=1749694245"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7.webp?v=1749623116","options":["color"],"media":[{"alt":null,"id":25689492979811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7.webp?v=1749623116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7.webp?v=1749623116","width":2000},{"alt":null,"id":25689493078115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef.webp?v=1749623117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef.webp?v=1749623117","width":2000},{"alt":null,"id":25689493209187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95.webp?v=1749623117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95.webp?v=1749623117","width":2000},{"alt":null,"id":25689493373027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe.webp?v=1749623118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe.webp?v=1749623118","width":2000},{"alt":null,"id":25689706332259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_491205e6-d8b7-4fba-9988-5463ff86bcbe.webp?v=1749624394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_491205e6-d8b7-4fba-9988-5463ff86bcbe.webp?v=1749624394","width":2000},{"alt":null,"id":25689706430563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_2906b204-e406-4951-93f7-ad27076642e2.webp?v=1749624394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_2906b204-e406-4951-93f7-ad27076642e2.webp?v=1749624394","width":2000},{"alt":null,"id":25689706561635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_25dd2699-edd0-4a4b-8a92-1d352b16cd06.webp?v=1749624395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_25dd2699-edd0-4a4b-8a92-1d352b16cd06.webp?v=1749624395","width":2000},{"alt":null,"id":25689706823779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_d64ca172-58c4-499a-82fa-99958887b4ca.webp?v=1749624395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_d64ca172-58c4-499a-82fa-99958887b4ca.webp?v=1749624395","width":2000},{"alt":null,"id":25689882034275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_b98e70de-052d-4587-b54d-3f077578e5f1.webp?v=1749625174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_b98e70de-052d-4587-b54d-3f077578e5f1.webp?v=1749625174","width":2000},{"alt":null,"id":25689882165347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_d619641e-db5e-4365-bcac-8734e321bb69.webp?v=1749625175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_d619641e-db5e-4365-bcac-8734e321bb69.webp?v=1749625175","width":2000},{"alt":null,"id":25689882296419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_0f5ea4ab-07e3-4332-bf2e-4a937958a1d1.webp?v=1749625175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_0f5ea4ab-07e3-4332-bf2e-4a937958a1d1.webp?v=1749625175","width":2000},{"alt":null,"id":25689882427491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_701dcd84-7d7a-4064-8b5a-d61c4834c71b.webp?v=1749625176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_701dcd84-7d7a-4064-8b5a-d61c4834c71b.webp?v=1749625176","width":2000},{"alt":null,"id":25692917268579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244","width":2000},{"alt":null,"id":25692917497955,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244","width":2000},{"alt":null,"id":25692917891171,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_1ca93b88-70ac-4644-b565-d062bea802f1.webp?v=1749694245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7567abb40b40bb804ad5974ac8d20584bf0a64c7_1ca93b88-70ac-4644-b565-d062bea802f1.webp?v=1749694245","width":2000},{"alt":null,"id":25692918251619,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_56334865-101c-4018-8813-12a9a49a45bd.webp?v=1749694245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938580bdf67c5a773fd0cdcd6887974cb1895fbe_56334865-101c-4018-8813-12a9a49a45bd.webp?v=1749694245","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444834992227,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013280G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012386033763,"product_id":7815621935203,"position":13,"created_at":"2025-06-12T10:10:42+08:00","updated_at":"2025-06-12T10:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244","variant_ids":[43444834992227]},"available":true,"name":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013280G-EG10","featured_media":{"alt":null,"id":25692917268579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444836761699,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MJB013280H-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012386394211,"product_id":7815621935203,"position":14,"created_at":"2025-06-12T10:10:42+08:00","updated_at":"2025-06-12T10:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244","variant_ids":[43444836761699]},"available":true,"name":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013280H-EG10","featured_media":{"alt":null,"id":25692917497955,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae228dea409984c4c8fb88d73545781df1dc3e95_0af84ea4-1664-4864-a67e-2a6a7d9876d2.webp?v=1749694244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444834992227,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013280G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012386033763,"product_id":7815621935203,"position":13,"created_at":"2025-06-12T10:10:42+08:00","updated_at":"2025-06-12T10:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244","variant_ids":[43444834992227]},"available":true,"name":"iPhone 16 Pro Max Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013280G-EG10","featured_media":{"alt":null,"id":25692917268579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a78363f103aa1f6dbe788ef1b2d52447a2948ef_698ec5b6-3d74-422f-a943-52a68857d7b2.webp?v=1749694244"}},"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: "停產"
}