$product = {"id":7408550314083,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 復古版","handle":"iphone-12-mini-mod-nx-printable-sb01","description":null,"published_at":"2024-06-11T16:40:26+08:00","created_at":"2024-05-03T15:48:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41886763253859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472566829155,"product_id":7408550314083,"position":6,"created_at":"2024-05-03T15:48:58+08:00","updated_at":"2024-05-03T15:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538","variant_ids":[41886763253859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-SB01","featured_media":{"alt":null,"id":23877484150883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e9820b53c87ef4146f6d2074da6ccc9b3bc637_cbe18186-81bd-4ba4-beda-8179f88195ad.webp?v=1714722526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6b8f332926cea48a8ed88ad92d8d07df5521957_fb1614d0-3ba7-4a6a-bd38-6995a208c5e9.webp?v=1714722529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f72c0df132271976eadbd799e437537f650c3a_5e4643fb-22e2-4e82-b3fa-aa4f40e4e98c.webp?v=1714722531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348be66f69f28351795da05654f1c13fc901db28_d1f4ee1b-369d-414c-a446-c403984ae2c8.webp?v=1714722533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1a75abb4f75775d0c82cba8ad8e28bb0aca87_8bc551f7-fc4a-4aa4-bbec-d6291cbf5cd7.webp?v=1714722536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc855112785cb635464cce09303229b5d83951_dae80cae-8541-41c7-9f8a-340f59c29f63.webp?v=1714722540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3ae2ccbf6b3fd299964084f6d63b01f422105a_a4f9fb73-813d-4255-811e-e59362088684.webp?v=1714722542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9fd94fa7593c7dd354a36fbeb80dcf3f1229d_88de5984-3337-4edc-ac9e-5a7863d841eb.webp?v=1714722545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881c7c81875b517da06eeda5a1d445d4ce74bf61_ea41bfe4-a476-4e97-bec3-1b1010bf8e9b.webp?v=1714722547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dba28fd1e3c6b23794ad7f2a62de5bd2a9420735_346260cb-0e58-4fb8-b3fb-6b66d7b3305d.webp?v=1714722550"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e9820b53c87ef4146f6d2074da6ccc9b3bc637_cbe18186-81bd-4ba4-beda-8179f88195ad.webp?v=1714722526","options":["color"],"media":[{"alt":null,"id":23877481594979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e9820b53c87ef4146f6d2074da6ccc9b3bc637_cbe18186-81bd-4ba4-beda-8179f88195ad.webp?v=1714722526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e9820b53c87ef4146f6d2074da6ccc9b3bc637_cbe18186-81bd-4ba4-beda-8179f88195ad.webp?v=1714722526","width":2000},{"alt":null,"id":23877482119267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6b8f332926cea48a8ed88ad92d8d07df5521957_fb1614d0-3ba7-4a6a-bd38-6995a208c5e9.webp?v=1714722529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6b8f332926cea48a8ed88ad92d8d07df5521957_fb1614d0-3ba7-4a6a-bd38-6995a208c5e9.webp?v=1714722529","width":2000},{"alt":null,"id":23877482774627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f72c0df132271976eadbd799e437537f650c3a_5e4643fb-22e2-4e82-b3fa-aa4f40e4e98c.webp?v=1714722531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f72c0df132271976eadbd799e437537f650c3a_5e4643fb-22e2-4e82-b3fa-aa4f40e4e98c.webp?v=1714722531","width":2000},{"alt":null,"id":23877483200611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348be66f69f28351795da05654f1c13fc901db28_d1f4ee1b-369d-414c-a446-c403984ae2c8.webp?v=1714722533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348be66f69f28351795da05654f1c13fc901db28_d1f4ee1b-369d-414c-a446-c403984ae2c8.webp?v=1714722533","width":2000},{"alt":null,"id":23877483757667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1a75abb4f75775d0c82cba8ad8e28bb0aca87_8bc551f7-fc4a-4aa4-bbec-d6291cbf5cd7.webp?v=1714722536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1a75abb4f75775d0c82cba8ad8e28bb0aca87_8bc551f7-fc4a-4aa4-bbec-d6291cbf5cd7.webp?v=1714722536","width":2000},{"alt":null,"id":23877484150883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538","width":2000},{"alt":null,"id":23877484642403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc855112785cb635464cce09303229b5d83951_dae80cae-8541-41c7-9f8a-340f59c29f63.webp?v=1714722540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc855112785cb635464cce09303229b5d83951_dae80cae-8541-41c7-9f8a-340f59c29f63.webp?v=1714722540","width":2000},{"alt":null,"id":23877485002851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3ae2ccbf6b3fd299964084f6d63b01f422105a_a4f9fb73-813d-4255-811e-e59362088684.webp?v=1714722542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3ae2ccbf6b3fd299964084f6d63b01f422105a_a4f9fb73-813d-4255-811e-e59362088684.webp?v=1714722542","width":2000},{"alt":null,"id":23877485527139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9fd94fa7593c7dd354a36fbeb80dcf3f1229d_88de5984-3337-4edc-ac9e-5a7863d841eb.webp?v=1714722545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9fd94fa7593c7dd354a36fbeb80dcf3f1229d_88de5984-3337-4edc-ac9e-5a7863d841eb.webp?v=1714722545","width":2000},{"alt":null,"id":23877485887587,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881c7c81875b517da06eeda5a1d445d4ce74bf61_ea41bfe4-a476-4e97-bec3-1b1010bf8e9b.webp?v=1714722547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881c7c81875b517da06eeda5a1d445d4ce74bf61_ea41bfe4-a476-4e97-bec3-1b1010bf8e9b.webp?v=1714722547","width":2000},{"alt":null,"id":23877486608483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dba28fd1e3c6b23794ad7f2a62de5bd2a9420735_346260cb-0e58-4fb8-b3fb-6b66d7b3305d.webp?v=1714722550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dba28fd1e3c6b23794ad7f2a62de5bd2a9420735_346260cb-0e58-4fb8-b3fb-6b66d7b3305d.webp?v=1714722550","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886763253859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472566829155,"product_id":7408550314083,"position":6,"created_at":"2024-05-03T15:48:58+08:00","updated_at":"2024-05-03T15:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538","variant_ids":[41886763253859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-SB01","featured_media":{"alt":null,"id":23877484150883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886763253859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472566829155,"product_id":7408550314083,"position":6,"created_at":"2024-05-03T15:48:58+08:00","updated_at":"2024-05-03T15:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538","variant_ids":[41886763253859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-SB01","featured_media":{"alt":null,"id":23877484150883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7706bda700c420a4593f97f2f24e3fe4203ca6a_2dc84d53-bb99-4b68-9f16-09766e5bb43c.webp?v=1714722538"}},"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: "停產" }