$product = {"id":7415990157411,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 愛心滿天","handle":"iphone-xs-max-mod-nx-printable-yb07","description":null,"published_at":"2024-06-11T16:49:47+08:00","created_at":"2024-05-06T12:38:04+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":41916268773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31490923462755,"product_id":7415990157411,"position":3,"created_at":"2024-05-06T12:38:11+08:00","updated_at":"2024-05-06T12:38:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291","variant_ids":[41916268773475]},"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-YB07","featured_media":{"alt":null,"id":23896330535011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26bc162f5a9b555eba9b8bbca015f94bf1fe6366_c615bc49-91cd-4c91-baad-2d62408d1835.webp?v=1714970286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5666acd020693d31ea891d89b7cd86803fff36d2_685e23e1-b602-4cc7-9ab4-3050742a7d0a.webp?v=1714970289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad789a527e9248ffa7d7472b374438233d014b18_2195f19e-acb0-4ad0-9785-95b1a3c0cbe5.webp?v=1714970294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e049dae70f3e9f47633360ec24abb170541772_40fe8931-4ba9-4296-a092-89e7b12e45ff.webp?v=1714970297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27e53b4e1880f61f0d085d7fa79ae3e58771a71_0b766eb7-5dbb-480c-9633-75d3ef12c008.webp?v=1714970299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef207ab3a5d6e549d43ff0217e40f072b4dfd1a_7ce2c839-851e-497b-8ce9-d473f599394a.webp?v=1714970303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf4b6ef6980ee45326de67f5e10eaff1aec68df_4896cb56-581b-4704-b3df-3eab0c61e381.webp?v=1714970305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb13dedd4aed57b064af9c25b893487c7f914b73_9ebcb148-4ee0-419f-8637-bc57efc3c0ba.webp?v=1714970307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c251095dacdbe9105384ff0e3a3d1e271f0c45d3_7985c1fc-b7d2-4faf-82ef-7d33fa75656d.webp?v=1714970310"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26bc162f5a9b555eba9b8bbca015f94bf1fe6366_c615bc49-91cd-4c91-baad-2d62408d1835.webp?v=1714970286","options":["color"],"media":[{"alt":null,"id":23896329584739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26bc162f5a9b555eba9b8bbca015f94bf1fe6366_c615bc49-91cd-4c91-baad-2d62408d1835.webp?v=1714970286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26bc162f5a9b555eba9b8bbca015f94bf1fe6366_c615bc49-91cd-4c91-baad-2d62408d1835.webp?v=1714970286","width":2000},{"alt":null,"id":23896330141795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5666acd020693d31ea891d89b7cd86803fff36d2_685e23e1-b602-4cc7-9ab4-3050742a7d0a.webp?v=1714970289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5666acd020693d31ea891d89b7cd86803fff36d2_685e23e1-b602-4cc7-9ab4-3050742a7d0a.webp?v=1714970289","width":2000},{"alt":null,"id":23896330535011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291","width":2000},{"alt":null,"id":23896331157603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad789a527e9248ffa7d7472b374438233d014b18_2195f19e-acb0-4ad0-9785-95b1a3c0cbe5.webp?v=1714970294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad789a527e9248ffa7d7472b374438233d014b18_2195f19e-acb0-4ad0-9785-95b1a3c0cbe5.webp?v=1714970294","width":2000},{"alt":null,"id":23896332370019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e049dae70f3e9f47633360ec24abb170541772_40fe8931-4ba9-4296-a092-89e7b12e45ff.webp?v=1714970297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e049dae70f3e9f47633360ec24abb170541772_40fe8931-4ba9-4296-a092-89e7b12e45ff.webp?v=1714970297","width":2000},{"alt":null,"id":23896333418595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27e53b4e1880f61f0d085d7fa79ae3e58771a71_0b766eb7-5dbb-480c-9633-75d3ef12c008.webp?v=1714970299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27e53b4e1880f61f0d085d7fa79ae3e58771a71_0b766eb7-5dbb-480c-9633-75d3ef12c008.webp?v=1714970299","width":2000},{"alt":null,"id":23896334696547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef207ab3a5d6e549d43ff0217e40f072b4dfd1a_7ce2c839-851e-497b-8ce9-d473f599394a.webp?v=1714970303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef207ab3a5d6e549d43ff0217e40f072b4dfd1a_7ce2c839-851e-497b-8ce9-d473f599394a.webp?v=1714970303","width":2000},{"alt":null,"id":23896335089763,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf4b6ef6980ee45326de67f5e10eaff1aec68df_4896cb56-581b-4704-b3df-3eab0c61e381.webp?v=1714970305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf4b6ef6980ee45326de67f5e10eaff1aec68df_4896cb56-581b-4704-b3df-3eab0c61e381.webp?v=1714970305","width":2000},{"alt":null,"id":23896335548515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb13dedd4aed57b064af9c25b893487c7f914b73_9ebcb148-4ee0-419f-8637-bc57efc3c0ba.webp?v=1714970307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb13dedd4aed57b064af9c25b893487c7f914b73_9ebcb148-4ee0-419f-8637-bc57efc3c0ba.webp?v=1714970307","width":2000},{"alt":null,"id":23896335974499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c251095dacdbe9105384ff0e3a3d1e271f0c45d3_7985c1fc-b7d2-4faf-82ef-7d33fa75656d.webp?v=1714970310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c251095dacdbe9105384ff0e3a3d1e271f0c45d3_7985c1fc-b7d2-4faf-82ef-7d33fa75656d.webp?v=1714970310","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916268773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31490923462755,"product_id":7415990157411,"position":3,"created_at":"2024-05-06T12:38:11+08:00","updated_at":"2024-05-06T12:38:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291","variant_ids":[41916268773475]},"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-YB07","featured_media":{"alt":null,"id":23896330535011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916268773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31490923462755,"product_id":7415990157411,"position":3,"created_at":"2024-05-06T12:38:11+08:00","updated_at":"2024-05-06T12:38:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291","variant_ids":[41916268773475]},"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-YB07","featured_media":{"alt":null,"id":23896330535011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a8e876bb47d5dd2601d09b1a8b72a500cb906a_fe9cdf28-a2d0-487b-8d15-e9d7bf10b402.webp?v=1714970291"}},"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: "停產" }