$product = {"id":7414984114275,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb64","description":null,"published_at":"2024-06-11T17:54:50+08:00","created_at":"2024-05-05T20:00:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41910625927267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31487850053731,"product_id":7414984114275,"position":6,"created_at":"2024-05-05T20:01:04+08:00","updated_at":"2024-05-05T20:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464","variant_ids":[41910625927267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB64","featured_media":{"alt":null,"id":23893194014819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4cfc24c02ebd6a5d247512d078f411927e41d4_79bedbe6-58db-4fed-ac90-491bff801755.webp?v=1714910452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e03ec5fcf948d63d377fadfa4e3d5875882cb831_a54037f5-8f7f-411a-ac58-575999dc504b.webp?v=1714910454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5be5cea40057df98d2129cef612b01d3141628f_9bd0dde9-f552-45f0-be71-0fb76e6f3991.webp?v=1714910457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bdb5be621f7738ba89c781cf65c256c7b9aa7b_cb806436-4e29-46b9-a11e-6f11a3cf422b.webp?v=1714910460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e0f579a6fed1c9667c6a36099a590c921de2b1_96976df5-4fa2-41d1-a707-6a11a1e7b7d5.webp?v=1714910462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb4d3d87c6c3adb8bbc70d8f3b01e31bc3c7f11_160f16c4-1c60-4165-9651-6803bb0d004e.webp?v=1714910467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1512db19ce06733e72e54f1c4e22c639d8cff55f_94048299-922c-4bf4-bfa3-d94e41665b9f.webp?v=1714910469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3b8dd6d73d56f403202198ce65a6613ded3a93_767a30c2-b861-4475-bf9d-fc6e77a8f2af.webp?v=1714910471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9422cf3832fe5e686d678aa5a967050913de56a1_7b16aeae-433d-43ef-a8f6-bedd57ab93b5.webp?v=1714910474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7a1bd5b1413a4ce67785e5995086ddb5f6cae_03c56eef-4809-4f5d-bd5d-b37666f9edd4.webp?v=1714910476"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4cfc24c02ebd6a5d247512d078f411927e41d4_79bedbe6-58db-4fed-ac90-491bff801755.webp?v=1714910452","options":["color"],"media":[{"alt":null,"id":23893190836323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4cfc24c02ebd6a5d247512d078f411927e41d4_79bedbe6-58db-4fed-ac90-491bff801755.webp?v=1714910452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4cfc24c02ebd6a5d247512d078f411927e41d4_79bedbe6-58db-4fed-ac90-491bff801755.webp?v=1714910452","width":2000},{"alt":null,"id":23893191327843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e03ec5fcf948d63d377fadfa4e3d5875882cb831_a54037f5-8f7f-411a-ac58-575999dc504b.webp?v=1714910454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e03ec5fcf948d63d377fadfa4e3d5875882cb831_a54037f5-8f7f-411a-ac58-575999dc504b.webp?v=1714910454","width":2000},{"alt":null,"id":23893191983203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5be5cea40057df98d2129cef612b01d3141628f_9bd0dde9-f552-45f0-be71-0fb76e6f3991.webp?v=1714910457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5be5cea40057df98d2129cef612b01d3141628f_9bd0dde9-f552-45f0-be71-0fb76e6f3991.webp?v=1714910457","width":2000},{"alt":null,"id":23893192999011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bdb5be621f7738ba89c781cf65c256c7b9aa7b_cb806436-4e29-46b9-a11e-6f11a3cf422b.webp?v=1714910460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bdb5be621f7738ba89c781cf65c256c7b9aa7b_cb806436-4e29-46b9-a11e-6f11a3cf422b.webp?v=1714910460","width":2000},{"alt":null,"id":23893193588835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e0f579a6fed1c9667c6a36099a590c921de2b1_96976df5-4fa2-41d1-a707-6a11a1e7b7d5.webp?v=1714910462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e0f579a6fed1c9667c6a36099a590c921de2b1_96976df5-4fa2-41d1-a707-6a11a1e7b7d5.webp?v=1714910462","width":2000},{"alt":null,"id":23893194014819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464","width":2000},{"alt":null,"id":23893194670179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb4d3d87c6c3adb8bbc70d8f3b01e31bc3c7f11_160f16c4-1c60-4165-9651-6803bb0d004e.webp?v=1714910467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb4d3d87c6c3adb8bbc70d8f3b01e31bc3c7f11_160f16c4-1c60-4165-9651-6803bb0d004e.webp?v=1714910467","width":2000},{"alt":null,"id":23893195161699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1512db19ce06733e72e54f1c4e22c639d8cff55f_94048299-922c-4bf4-bfa3-d94e41665b9f.webp?v=1714910469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1512db19ce06733e72e54f1c4e22c639d8cff55f_94048299-922c-4bf4-bfa3-d94e41665b9f.webp?v=1714910469","width":2000},{"alt":null,"id":23893195915363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3b8dd6d73d56f403202198ce65a6613ded3a93_767a30c2-b861-4475-bf9d-fc6e77a8f2af.webp?v=1714910471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3b8dd6d73d56f403202198ce65a6613ded3a93_767a30c2-b861-4475-bf9d-fc6e77a8f2af.webp?v=1714910471","width":2000},{"alt":null,"id":23893196275811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9422cf3832fe5e686d678aa5a967050913de56a1_7b16aeae-433d-43ef-a8f6-bedd57ab93b5.webp?v=1714910474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9422cf3832fe5e686d678aa5a967050913de56a1_7b16aeae-433d-43ef-a8f6-bedd57ab93b5.webp?v=1714910474","width":2000},{"alt":null,"id":23893197095011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7a1bd5b1413a4ce67785e5995086ddb5f6cae_03c56eef-4809-4f5d-bd5d-b37666f9edd4.webp?v=1714910476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7a1bd5b1413a4ce67785e5995086ddb5f6cae_03c56eef-4809-4f5d-bd5d-b37666f9edd4.webp?v=1714910476","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910625927267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31487850053731,"product_id":7414984114275,"position":6,"created_at":"2024-05-05T20:01:04+08:00","updated_at":"2024-05-05T20:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464","variant_ids":[41910625927267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB64","featured_media":{"alt":null,"id":23893194014819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910625927267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31487850053731,"product_id":7414984114275,"position":6,"created_at":"2024-05-05T20:01:04+08:00","updated_at":"2024-05-05T20:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464","variant_ids":[41910625927267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB64","featured_media":{"alt":null,"id":23893194014819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f6d95fa59c5f76fb1f405a1912215c39508033_68d0ed8d-da24-422b-9ab9-42d6aad9d5bd.webp?v=1714910464"}},"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: "停產" }