$product = {"id":7408373432419,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Bedtime Bear","handle":"iphone-12-pro-max-mod-nx-printable-yb04","description":null,"published_at":"2024-06-11T16:35:27+08:00","created_at":"2024-05-03T15:13:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","Top50","type-Mod NX Printable"],"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":41884768075875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472100114531,"product_id":7408373432419,"position":9,"created_at":"2024-05-03T15:14:21+08:00","updated_at":"2024-05-03T15:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461","variant_ids":[41884768075875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB04","featured_media":{"alt":null,"id":23877015568483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc968855b936831137d692622c72608c8149718_a14f0f63-e93a-49bb-a25d-f8a92ec1f26b.webp?v=1714720441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f205ddf685aefcc17973de1ce44286468c331d_0b5b1a48-49ea-4d51-9756-2a429e0741e9.webp?v=1714720444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0fa4dddfce75424315c8b25e027e441993590af_fad7171f-cb3b-4cfa-a1cd-7d59d5de46c9.webp?v=1714720446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175ac6bcb0de6e331c4d2681c678c0df00e75045_9b5406f6-c39c-427c-9f59-6f36650091d7.webp?v=1714720449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d00fd7341fbf313795d861223b306589a899c4_d9ce3f01-8d14-49c1-b61a-223f454672f5.webp?v=1714720451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9d62519f28777a84bfd81e42e03f2704669a43_06820fa2-7f54-439f-8ac9-37535ee41197.webp?v=1714720453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac97efac56a3b477e47526ae2517b674d0e43bdb_8a55d644-72ee-4dbc-beee-b115fc2c6ea9.webp?v=1714720456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a45f3689639f94071625141c7c4ed4f3b4a27de_c61454a3-e031-4f4e-8303-9ed158385937.webp?v=1714720458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e883d2927ae2104f9a9ad42ee5f316c85e2968_c2f8adb2-e4c1-4ee5-a7f6-5c9a61fed214.webp?v=1714720463"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc968855b936831137d692622c72608c8149718_a14f0f63-e93a-49bb-a25d-f8a92ec1f26b.webp?v=1714720441","options":["color"],"media":[{"alt":null,"id":23877011865699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc968855b936831137d692622c72608c8149718_a14f0f63-e93a-49bb-a25d-f8a92ec1f26b.webp?v=1714720441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc968855b936831137d692622c72608c8149718_a14f0f63-e93a-49bb-a25d-f8a92ec1f26b.webp?v=1714720441","width":2000},{"alt":null,"id":23877012291683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f205ddf685aefcc17973de1ce44286468c331d_0b5b1a48-49ea-4d51-9756-2a429e0741e9.webp?v=1714720444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f205ddf685aefcc17973de1ce44286468c331d_0b5b1a48-49ea-4d51-9756-2a429e0741e9.webp?v=1714720444","width":2000},{"alt":null,"id":23877012455523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0fa4dddfce75424315c8b25e027e441993590af_fad7171f-cb3b-4cfa-a1cd-7d59d5de46c9.webp?v=1714720446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0fa4dddfce75424315c8b25e027e441993590af_fad7171f-cb3b-4cfa-a1cd-7d59d5de46c9.webp?v=1714720446","width":2000},{"alt":null,"id":23877013307491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175ac6bcb0de6e331c4d2681c678c0df00e75045_9b5406f6-c39c-427c-9f59-6f36650091d7.webp?v=1714720449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175ac6bcb0de6e331c4d2681c678c0df00e75045_9b5406f6-c39c-427c-9f59-6f36650091d7.webp?v=1714720449","width":2000},{"alt":null,"id":23877013471331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d00fd7341fbf313795d861223b306589a899c4_d9ce3f01-8d14-49c1-b61a-223f454672f5.webp?v=1714720451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d00fd7341fbf313795d861223b306589a899c4_d9ce3f01-8d14-49c1-b61a-223f454672f5.webp?v=1714720451","width":2000},{"alt":null,"id":23877013962851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9d62519f28777a84bfd81e42e03f2704669a43_06820fa2-7f54-439f-8ac9-37535ee41197.webp?v=1714720453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9d62519f28777a84bfd81e42e03f2704669a43_06820fa2-7f54-439f-8ac9-37535ee41197.webp?v=1714720453","width":2000},{"alt":null,"id":23877014552675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac97efac56a3b477e47526ae2517b674d0e43bdb_8a55d644-72ee-4dbc-beee-b115fc2c6ea9.webp?v=1714720456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac97efac56a3b477e47526ae2517b674d0e43bdb_8a55d644-72ee-4dbc-beee-b115fc2c6ea9.webp?v=1714720456","width":2000},{"alt":null,"id":23877015142499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a45f3689639f94071625141c7c4ed4f3b4a27de_c61454a3-e031-4f4e-8303-9ed158385937.webp?v=1714720458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a45f3689639f94071625141c7c4ed4f3b4a27de_c61454a3-e031-4f4e-8303-9ed158385937.webp?v=1714720458","width":2000},{"alt":null,"id":23877015568483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461","width":2000},{"alt":null,"id":23877016125539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e883d2927ae2104f9a9ad42ee5f316c85e2968_c2f8adb2-e4c1-4ee5-a7f6-5c9a61fed214.webp?v=1714720463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e883d2927ae2104f9a9ad42ee5f316c85e2968_c2f8adb2-e4c1-4ee5-a7f6-5c9a61fed214.webp?v=1714720463","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884768075875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472100114531,"product_id":7408373432419,"position":9,"created_at":"2024-05-03T15:14:21+08:00","updated_at":"2024-05-03T15:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461","variant_ids":[41884768075875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB04","featured_media":{"alt":null,"id":23877015568483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884768075875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472100114531,"product_id":7408373432419,"position":9,"created_at":"2024-05-03T15:14:21+08:00","updated_at":"2024-05-03T15:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461","variant_ids":[41884768075875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB04","featured_media":{"alt":null,"id":23877015568483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/963292a1c15bfe9bc5159265057b675222b53949_45ef124f-0a93-4a87-aa60-08067c235a0c.webp?v=1714720461"}},"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: "停產" }