$product = {"id":7408489496675,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 左看看","handle":"iphone-12-pro-max-mod-nx-printable-iv05","description":null,"published_at":"2024-06-11T16:38:40+08:00","created_at":"2024-05-03T15:36:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41886062641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472407576675,"product_id":7408489496675,"position":4,"created_at":"2024-05-03T15:36:50+08:00","updated_at":"2024-05-03T15:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810","variant_ids":[41886062641251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 左看看 - 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":"NPB0118724-IV05","featured_media":{"alt":null,"id":23877324537955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8301ad54fbdebf647de8b4b6ea601bae20d0f35b_97a30054-2e3e-4b1f-878d-149bb2daf65c.webp?v=1714721803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a01258de4a9787787321c69cd578d5fd23b3d20_40a71399-7f4a-4bde-be9b-5afbf24d90e2.webp?v=1714721805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8486b349919b5b76ddace68b393a8373a4cc55cc_15b31157-da54-4a9f-832d-dbf139cc5677.webp?v=1714721807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23989deb52be73046d8e8bd92d429b9fcdb5cb7f_1d9b3ff8-7515-4c07-bf53-a38e9406798b.webp?v=1714721812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74929f0fe7bc3595c2587f72afd0c619b842ed1b_ef7da61d-2f22-454b-bf63-3687924f26b2.webp?v=1714721814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52712a668afa852358e5e98ad43b3dcae8437bc_7a7876cf-8627-4cf5-b6be-94c6d8b68293.webp?v=1714721817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d4a15ac39f9b38df33916bce4324685f33be78_e255f8a0-6e6c-4dcb-ba99-0e124502ab03.webp?v=1714721819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca3eb557588c4a81c49cf9317eaf82974bc3a16_89ddfa21-a072-4db2-9ba4-dfab8d478c5f.webp?v=1714721821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcf1e7c7f4ffd15428cb04b74ac469fa5d82e1f_4190b8a3-0aa5-4008-a249-553e8be68ec4.webp?v=1714721823"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8301ad54fbdebf647de8b4b6ea601bae20d0f35b_97a30054-2e3e-4b1f-878d-149bb2daf65c.webp?v=1714721803","options":["color"],"media":[{"alt":null,"id":23877322932323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8301ad54fbdebf647de8b4b6ea601bae20d0f35b_97a30054-2e3e-4b1f-878d-149bb2daf65c.webp?v=1714721803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8301ad54fbdebf647de8b4b6ea601bae20d0f35b_97a30054-2e3e-4b1f-878d-149bb2daf65c.webp?v=1714721803","width":2000},{"alt":null,"id":23877323358307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a01258de4a9787787321c69cd578d5fd23b3d20_40a71399-7f4a-4bde-be9b-5afbf24d90e2.webp?v=1714721805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a01258de4a9787787321c69cd578d5fd23b3d20_40a71399-7f4a-4bde-be9b-5afbf24d90e2.webp?v=1714721805","width":2000},{"alt":null,"id":23877323980899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8486b349919b5b76ddace68b393a8373a4cc55cc_15b31157-da54-4a9f-832d-dbf139cc5677.webp?v=1714721807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8486b349919b5b76ddace68b393a8373a4cc55cc_15b31157-da54-4a9f-832d-dbf139cc5677.webp?v=1714721807","width":2000},{"alt":null,"id":23877324537955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810","width":2000},{"alt":null,"id":23877324963939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23989deb52be73046d8e8bd92d429b9fcdb5cb7f_1d9b3ff8-7515-4c07-bf53-a38e9406798b.webp?v=1714721812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23989deb52be73046d8e8bd92d429b9fcdb5cb7f_1d9b3ff8-7515-4c07-bf53-a38e9406798b.webp?v=1714721812","width":2000},{"alt":null,"id":23877325619299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74929f0fe7bc3595c2587f72afd0c619b842ed1b_ef7da61d-2f22-454b-bf63-3687924f26b2.webp?v=1714721814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74929f0fe7bc3595c2587f72afd0c619b842ed1b_ef7da61d-2f22-454b-bf63-3687924f26b2.webp?v=1714721814","width":2000},{"alt":null,"id":23877326143587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52712a668afa852358e5e98ad43b3dcae8437bc_7a7876cf-8627-4cf5-b6be-94c6d8b68293.webp?v=1714721817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52712a668afa852358e5e98ad43b3dcae8437bc_7a7876cf-8627-4cf5-b6be-94c6d8b68293.webp?v=1714721817","width":2000},{"alt":null,"id":23877326635107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d4a15ac39f9b38df33916bce4324685f33be78_e255f8a0-6e6c-4dcb-ba99-0e124502ab03.webp?v=1714721819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d4a15ac39f9b38df33916bce4324685f33be78_e255f8a0-6e6c-4dcb-ba99-0e124502ab03.webp?v=1714721819","width":2000},{"alt":null,"id":23877327126627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca3eb557588c4a81c49cf9317eaf82974bc3a16_89ddfa21-a072-4db2-9ba4-dfab8d478c5f.webp?v=1714721821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca3eb557588c4a81c49cf9317eaf82974bc3a16_89ddfa21-a072-4db2-9ba4-dfab8d478c5f.webp?v=1714721821","width":2000},{"alt":null,"id":23877327683683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcf1e7c7f4ffd15428cb04b74ac469fa5d82e1f_4190b8a3-0aa5-4008-a249-553e8be68ec4.webp?v=1714721823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcf1e7c7f4ffd15428cb04b74ac469fa5d82e1f_4190b8a3-0aa5-4008-a249-553e8be68ec4.webp?v=1714721823","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886062641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472407576675,"product_id":7408489496675,"position":4,"created_at":"2024-05-03T15:36:50+08:00","updated_at":"2024-05-03T15:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810","variant_ids":[41886062641251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 左看看 - 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":"NPB0118724-IV05","featured_media":{"alt":null,"id":23877324537955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886062641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472407576675,"product_id":7408489496675,"position":4,"created_at":"2024-05-03T15:36:50+08:00","updated_at":"2024-05-03T15:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810","variant_ids":[41886062641251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 左看看 - 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":"NPB0118724-IV05","featured_media":{"alt":null,"id":23877324537955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e006f32accb3b215a535869d62b243b3a6e16bf_fb99bc98-ffcc-46a8-b85d-2448c86f6496.webp?v=1714721810"}},"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: "停產" }