$product = {"id":7415952244835,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 雲朵綿綿","handle":"iphone-xs-max-mod-nx-printable-yb10","description":null,"published_at":"2024-06-11T16:48:46+08:00","created_at":"2024-05-06T12:30:53+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 XS 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":41915867463779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820538467,"product_id":7415952244835,"position":3,"created_at":"2024-05-06T12:31:00+08:00","updated_at":"2024-05-06T12:31:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860","variant_ids":[41915867463779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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":"NPB0108624-YB10","featured_media":{"alt":null,"id":23896227381347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a392a89fb9b3b5b456921da18596af8b0c2144a_e4c935fe-aef4-43b2-9563-00eaa7692426.webp?v=1714969856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dfee24dabe4fc86cb802050aef2744838fe1d6d_5d8f5c5a-a3d2-40e5-9c2f-c9aa57f5c4e1.webp?v=1714969858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4210355fcc6fd510ca8b277b0068ab7e668133a0_b48c2819-df21-433c-bb9e-f1e7e392576f.webp?v=1714969863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a333e0f7cb84b846ae2fefdbfa5c19daffee6497_7a5f0023-2be9-4d57-875c-7420e3ee27f5.webp?v=1714969865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d37ed3efbe1d75522ced6ef0a6eb8035c9fa50e1_5cafdc46-b05c-4dc3-ac3f-92eb0d3f9b89.webp?v=1714969867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a692af97b86e078576aaa635b144639afcf86758_d817ddb0-f26e-4f9e-8f6e-c757a4734f18.webp?v=1714969870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595d84b8408a879cf38100c5359699a76779d4c8_6a3052ab-14a5-40f4-8564-35136f299562.webp?v=1714969873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded890aa14de03597822093370a4d9bf519b9d31_a55cb7f6-c8e6-47d8-a701-91411a470b71.webp?v=1714969875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973d711042c6b3ec99ef44231057671d1e96538_d0313f61-b066-4a38-b8f0-214bea09c746.webp?v=1714969877"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a392a89fb9b3b5b456921da18596af8b0c2144a_e4c935fe-aef4-43b2-9563-00eaa7692426.webp?v=1714969856","options":["color"],"media":[{"alt":null,"id":23896225677411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a392a89fb9b3b5b456921da18596af8b0c2144a_e4c935fe-aef4-43b2-9563-00eaa7692426.webp?v=1714969856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a392a89fb9b3b5b456921da18596af8b0c2144a_e4c935fe-aef4-43b2-9563-00eaa7692426.webp?v=1714969856","width":2000},{"alt":null,"id":23896226431075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dfee24dabe4fc86cb802050aef2744838fe1d6d_5d8f5c5a-a3d2-40e5-9c2f-c9aa57f5c4e1.webp?v=1714969858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dfee24dabe4fc86cb802050aef2744838fe1d6d_5d8f5c5a-a3d2-40e5-9c2f-c9aa57f5c4e1.webp?v=1714969858","width":2000},{"alt":null,"id":23896227381347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860","width":2000},{"alt":null,"id":23896227872867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4210355fcc6fd510ca8b277b0068ab7e668133a0_b48c2819-df21-433c-bb9e-f1e7e392576f.webp?v=1714969863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4210355fcc6fd510ca8b277b0068ab7e668133a0_b48c2819-df21-433c-bb9e-f1e7e392576f.webp?v=1714969863","width":2000},{"alt":null,"id":23896228298851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a333e0f7cb84b846ae2fefdbfa5c19daffee6497_7a5f0023-2be9-4d57-875c-7420e3ee27f5.webp?v=1714969865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a333e0f7cb84b846ae2fefdbfa5c19daffee6497_7a5f0023-2be9-4d57-875c-7420e3ee27f5.webp?v=1714969865","width":2000},{"alt":null,"id":23896228692067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d37ed3efbe1d75522ced6ef0a6eb8035c9fa50e1_5cafdc46-b05c-4dc3-ac3f-92eb0d3f9b89.webp?v=1714969867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d37ed3efbe1d75522ced6ef0a6eb8035c9fa50e1_5cafdc46-b05c-4dc3-ac3f-92eb0d3f9b89.webp?v=1714969867","width":2000},{"alt":null,"id":23896229412963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a692af97b86e078576aaa635b144639afcf86758_d817ddb0-f26e-4f9e-8f6e-c757a4734f18.webp?v=1714969870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a692af97b86e078576aaa635b144639afcf86758_d817ddb0-f26e-4f9e-8f6e-c757a4734f18.webp?v=1714969870","width":2000},{"alt":null,"id":23896229871715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595d84b8408a879cf38100c5359699a76779d4c8_6a3052ab-14a5-40f4-8564-35136f299562.webp?v=1714969873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595d84b8408a879cf38100c5359699a76779d4c8_6a3052ab-14a5-40f4-8564-35136f299562.webp?v=1714969873","width":2000},{"alt":null,"id":23896230330467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded890aa14de03597822093370a4d9bf519b9d31_a55cb7f6-c8e6-47d8-a701-91411a470b71.webp?v=1714969875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded890aa14de03597822093370a4d9bf519b9d31_a55cb7f6-c8e6-47d8-a701-91411a470b71.webp?v=1714969875","width":2000},{"alt":null,"id":23896230756451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973d711042c6b3ec99ef44231057671d1e96538_d0313f61-b066-4a38-b8f0-214bea09c746.webp?v=1714969877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973d711042c6b3ec99ef44231057671d1e96538_d0313f61-b066-4a38-b8f0-214bea09c746.webp?v=1714969877","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915867463779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820538467,"product_id":7415952244835,"position":3,"created_at":"2024-05-06T12:31:00+08:00","updated_at":"2024-05-06T12:31:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860","variant_ids":[41915867463779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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":"NPB0108624-YB10","featured_media":{"alt":null,"id":23896227381347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915867463779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820538467,"product_id":7415952244835,"position":3,"created_at":"2024-05-06T12:31:00+08:00","updated_at":"2024-05-06T12:31:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860","variant_ids":[41915867463779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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":"NPB0108624-YB10","featured_media":{"alt":null,"id":23896227381347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a470e417038f91507022bd507a02b138716b1_82e3049a-e85f-41ef-b1df-ae63e088f761.webp?v=1714969860"}},"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: "停產" }