$product = {"id":7416364728419,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Good Luck Bear","handle":"iphone-8-mod-nx-printable-yb05","description":null,"published_at":"2024-06-11T16:57:03+08:00","created_at":"2024-05-06T14:42:45+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 8","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":41918938120291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491950903395,"product_id":7416364728419,"position":10,"created_at":"2024-05-06T14:43:08+08:00","updated_at":"2024-05-06T14:43:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788","variant_ids":[41918938120291]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Good Luck 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":"NPB0105424-YB05","featured_media":{"alt":null,"id":23897364037731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9093c419f3c135b615fde6de9064e56bb240b_026580b6-898a-4994-a39f-7d0054749278.webp?v=1714977768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b29ff5d06c1e51e50a7a53cc4483e3a22d76ab3_9a82cd28-9570-450c-91fd-993d6ff2f941.webp?v=1714977770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd810e155c242db506453ff4a4ae113de1c66d_847c26f7-d88a-411d-8f91-fa0bceace506.webp?v=1714977772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e693ee5f4ce621e9aa8e931942faa3f7b9307bb_ff75fd8c-4edc-4056-b701-fa53af45e2f7.webp?v=1714977774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aeb496015fdb9c3bc5470c25b279d3ce84c33b_6e764363-1f74-490e-9a9f-140e6a5154c6.webp?v=1714977777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ac61bbbdee13e7d4cc8f9c99bb2112ef12e823_69a23534-2d2a-4370-a8e0-38b26168007f.webp?v=1714977779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5281230efb9adcc86d2446050372342943006e9_9e91587a-a749-494a-9104-ecb331cc911c.webp?v=1714977781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe918b8377dd66da936211322787edbc79a4b2e_fd8206cb-0b7b-4235-ac44-e14abc397c7e.webp?v=1714977784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b821865fa748c1021010c11cb81e1d54521d3e_3bc8733e-5f00-4c6b-8baf-d382f94e13f7.webp?v=1714977786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9093c419f3c135b615fde6de9064e56bb240b_026580b6-898a-4994-a39f-7d0054749278.webp?v=1714977768","options":["color"],"media":[{"alt":null,"id":23897359122531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9093c419f3c135b615fde6de9064e56bb240b_026580b6-898a-4994-a39f-7d0054749278.webp?v=1714977768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9093c419f3c135b615fde6de9064e56bb240b_026580b6-898a-4994-a39f-7d0054749278.webp?v=1714977768","width":2000},{"alt":null,"id":23897359777891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b29ff5d06c1e51e50a7a53cc4483e3a22d76ab3_9a82cd28-9570-450c-91fd-993d6ff2f941.webp?v=1714977770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b29ff5d06c1e51e50a7a53cc4483e3a22d76ab3_9a82cd28-9570-450c-91fd-993d6ff2f941.webp?v=1714977770","width":2000},{"alt":null,"id":23897360269411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd810e155c242db506453ff4a4ae113de1c66d_847c26f7-d88a-411d-8f91-fa0bceace506.webp?v=1714977772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd810e155c242db506453ff4a4ae113de1c66d_847c26f7-d88a-411d-8f91-fa0bceace506.webp?v=1714977772","width":2000},{"alt":null,"id":23897360695395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e693ee5f4ce621e9aa8e931942faa3f7b9307bb_ff75fd8c-4edc-4056-b701-fa53af45e2f7.webp?v=1714977774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e693ee5f4ce621e9aa8e931942faa3f7b9307bb_ff75fd8c-4edc-4056-b701-fa53af45e2f7.webp?v=1714977774","width":2000},{"alt":null,"id":23897361154147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aeb496015fdb9c3bc5470c25b279d3ce84c33b_6e764363-1f74-490e-9a9f-140e6a5154c6.webp?v=1714977777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aeb496015fdb9c3bc5470c25b279d3ce84c33b_6e764363-1f74-490e-9a9f-140e6a5154c6.webp?v=1714977777","width":2000},{"alt":null,"id":23897361711203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ac61bbbdee13e7d4cc8f9c99bb2112ef12e823_69a23534-2d2a-4370-a8e0-38b26168007f.webp?v=1714977779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ac61bbbdee13e7d4cc8f9c99bb2112ef12e823_69a23534-2d2a-4370-a8e0-38b26168007f.webp?v=1714977779","width":2000},{"alt":null,"id":23897362038883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5281230efb9adcc86d2446050372342943006e9_9e91587a-a749-494a-9104-ecb331cc911c.webp?v=1714977781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5281230efb9adcc86d2446050372342943006e9_9e91587a-a749-494a-9104-ecb331cc911c.webp?v=1714977781","width":2000},{"alt":null,"id":23897363087459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe918b8377dd66da936211322787edbc79a4b2e_fd8206cb-0b7b-4235-ac44-e14abc397c7e.webp?v=1714977784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe918b8377dd66da936211322787edbc79a4b2e_fd8206cb-0b7b-4235-ac44-e14abc397c7e.webp?v=1714977784","width":2000},{"alt":null,"id":23897363513443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b821865fa748c1021010c11cb81e1d54521d3e_3bc8733e-5f00-4c6b-8baf-d382f94e13f7.webp?v=1714977786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b821865fa748c1021010c11cb81e1d54521d3e_3bc8733e-5f00-4c6b-8baf-d382f94e13f7.webp?v=1714977786","width":2000},{"alt":null,"id":23897364037731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918938120291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491950903395,"product_id":7416364728419,"position":10,"created_at":"2024-05-06T14:43:08+08:00","updated_at":"2024-05-06T14:43:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788","variant_ids":[41918938120291]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Good Luck 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":"NPB0105424-YB05","featured_media":{"alt":null,"id":23897364037731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918938120291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491950903395,"product_id":7416364728419,"position":10,"created_at":"2024-05-06T14:43:08+08:00","updated_at":"2024-05-06T14:43:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788","variant_ids":[41918938120291]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Good Luck 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":"NPB0105424-YB05","featured_media":{"alt":null,"id":23897364037731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e869d35644c2830a8884cbe92fa08be8ed1703f_91dca131-a2d9-4f6a-976e-da2805f52e54.webp?v=1714977788"}},"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: "停產" }