$product = {"id":7415020814435,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Care Bears - We are together","handle":"iphone-12-mini-mod-nx-magsafe-printable-yb14","description":null,"published_at":"2024-06-11T17:55:50+08:00","created_at":"2024-05-05T20:07:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41911021011043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31487948193891,"product_id":7415020814435,"position":7,"created_at":"2024-05-05T20:08:10+08:00","updated_at":"2024-05-05T20:08:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890","variant_ids":[41911021011043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-YB14","featured_media":{"alt":null,"id":23893292449891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a5a9fd5e9c95087a8d315ee49dfbf1053e0472_e3ad25b3-262a-4bc5-b13a-254e7967cd37.webp?v=1714910875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24736e0752cefd593301a49c61c758d5410fc57_bfbf83f8-f1a9-41eb-9a9b-febc6b0ac44d.webp?v=1714910878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f70157148947abc6091c76ed95dd8ee00178f7c_e1c7afa1-6426-45a5-a738-c2772f0349a5.webp?v=1714910880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693913783dd6a6e7b8a0a650cfa8ed056f5620a4_f9980aa4-226a-4527-a651-3aa52edb6775.webp?v=1714910883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37662c9d8c89e073f7ee1e8a5fc141a163c249e9_648a8854-fef2-43c8-8ca9-931e86f255d9.webp?v=1714910885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7bfbbba3aaf04fc2d79975a372e313253a836f_8dd5104d-39c5-488a-bab6-3c558dbe565a.webp?v=1714910888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a3f5f5f297547627741e438dd73a36676149b4_a934d776-d128-4e9b-970d-be5dd65cd43a.webp?v=1714910893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5ca3a313f5e026d883bcd93b58c5f591a2f998_e88eefa1-fb5b-4902-b72d-dcd180e2e368.webp?v=1714910896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fe442bffd1a2f37c809075eae2ce03977841ec_2944aea1-ac6b-4d44-a8fd-d379ee490a05.webp?v=1714910898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4dec9ec41ff7fa4cf9d3f4c2ce1a333ea157bf_0864f41d-dc1c-4fd3-9e86-484fef155aa5.webp?v=1714910900"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a5a9fd5e9c95087a8d315ee49dfbf1053e0472_e3ad25b3-262a-4bc5-b13a-254e7967cd37.webp?v=1714910875","options":["color"],"media":[{"alt":null,"id":23893288484963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a5a9fd5e9c95087a8d315ee49dfbf1053e0472_e3ad25b3-262a-4bc5-b13a-254e7967cd37.webp?v=1714910875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a5a9fd5e9c95087a8d315ee49dfbf1053e0472_e3ad25b3-262a-4bc5-b13a-254e7967cd37.webp?v=1714910875","width":2000},{"alt":null,"id":23893289009251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24736e0752cefd593301a49c61c758d5410fc57_bfbf83f8-f1a9-41eb-9a9b-febc6b0ac44d.webp?v=1714910878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24736e0752cefd593301a49c61c758d5410fc57_bfbf83f8-f1a9-41eb-9a9b-febc6b0ac44d.webp?v=1714910878","width":2000},{"alt":null,"id":23893289795683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f70157148947abc6091c76ed95dd8ee00178f7c_e1c7afa1-6426-45a5-a738-c2772f0349a5.webp?v=1714910880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f70157148947abc6091c76ed95dd8ee00178f7c_e1c7afa1-6426-45a5-a738-c2772f0349a5.webp?v=1714910880","width":2000},{"alt":null,"id":23893290221667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693913783dd6a6e7b8a0a650cfa8ed056f5620a4_f9980aa4-226a-4527-a651-3aa52edb6775.webp?v=1714910883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693913783dd6a6e7b8a0a650cfa8ed056f5620a4_f9980aa4-226a-4527-a651-3aa52edb6775.webp?v=1714910883","width":2000},{"alt":null,"id":23893290844259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37662c9d8c89e073f7ee1e8a5fc141a163c249e9_648a8854-fef2-43c8-8ca9-931e86f255d9.webp?v=1714910885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37662c9d8c89e073f7ee1e8a5fc141a163c249e9_648a8854-fef2-43c8-8ca9-931e86f255d9.webp?v=1714910885","width":2000},{"alt":null,"id":23893291532387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7bfbbba3aaf04fc2d79975a372e313253a836f_8dd5104d-39c5-488a-bab6-3c558dbe565a.webp?v=1714910888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7bfbbba3aaf04fc2d79975a372e313253a836f_8dd5104d-39c5-488a-bab6-3c558dbe565a.webp?v=1714910888","width":2000},{"alt":null,"id":23893292449891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890","width":2000},{"alt":null,"id":23893293006947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a3f5f5f297547627741e438dd73a36676149b4_a934d776-d128-4e9b-970d-be5dd65cd43a.webp?v=1714910893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a3f5f5f297547627741e438dd73a36676149b4_a934d776-d128-4e9b-970d-be5dd65cd43a.webp?v=1714910893","width":2000},{"alt":null,"id":23893293465699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5ca3a313f5e026d883bcd93b58c5f591a2f998_e88eefa1-fb5b-4902-b72d-dcd180e2e368.webp?v=1714910896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5ca3a313f5e026d883bcd93b58c5f591a2f998_e88eefa1-fb5b-4902-b72d-dcd180e2e368.webp?v=1714910896","width":2000},{"alt":null,"id":23893294317667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fe442bffd1a2f37c809075eae2ce03977841ec_2944aea1-ac6b-4d44-a8fd-d379ee490a05.webp?v=1714910898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fe442bffd1a2f37c809075eae2ce03977841ec_2944aea1-ac6b-4d44-a8fd-d379ee490a05.webp?v=1714910898","width":2000},{"alt":null,"id":23893295366243,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4dec9ec41ff7fa4cf9d3f4c2ce1a333ea157bf_0864f41d-dc1c-4fd3-9e86-484fef155aa5.webp?v=1714910900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4dec9ec41ff7fa4cf9d3f4c2ce1a333ea157bf_0864f41d-dc1c-4fd3-9e86-484fef155aa5.webp?v=1714910900","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911021011043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31487948193891,"product_id":7415020814435,"position":7,"created_at":"2024-05-05T20:08:10+08:00","updated_at":"2024-05-05T20:08:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890","variant_ids":[41911021011043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-YB14","featured_media":{"alt":null,"id":23893292449891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911021011043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31487948193891,"product_id":7415020814435,"position":7,"created_at":"2024-05-05T20:08:10+08:00","updated_at":"2024-05-05T20:08:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890","variant_ids":[41911021011043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-YB14","featured_media":{"alt":null,"id":23893292449891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e3e0f2b3a8c4c902ea2ffeab9f15d78f1fa8cd_6937ce7f-7eaf-4bdf-8262-cf2176cb5494.webp?v=1714910890"}},"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: "停產" }