$product = {"id":7408445816931,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 經典Logo","handle":"iphone-12-mini-mod-nx-printable-sb11","description":null,"published_at":"2024-06-11T16:37:26+08:00","created_at":"2024-05-03T15:27:54+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":41885560340579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472299245667,"product_id":7408445816931,"position":6,"created_at":"2024-05-03T15:28:08+08:00","updated_at":"2024-05-03T15:28:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288","variant_ids":[41885560340579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23877215617123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3225f43158a54de358823ece5aa05fe3e0fc0f6f_7644d8c5-c77a-4f6e-98a9-582dd5fc0c59.webp?v=1714721277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1aa23e4709e16eab4635ca7a9e2ce67d8923c2e_5a9d8ef0-e752-486a-99ff-81cd342a78b5.webp?v=1714721279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b68aacb32a85708702827bc1cbb49d5d5045d37_9bff1f97-05d3-4a0b-91e3-664edc9be666.webp?v=1714721282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/991b9dac20fa75c1ec84a9bc90c5108ac406d110_7ba1d473-8a37-4a1d-85ab-3a3500e0b376.webp?v=1714721284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7081d7559323db0064d1507b2bd7dc6d37513e17_36e70928-a433-41e4-92ff-d9efb450800f.webp?v=1714721286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd97341e5e39148512c004554d73b202b43b768_975c7af8-ef13-40cf-a414-25844af27ac9.webp?v=1714721291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56ab08e98cc8f8a3c4d2ffc54444cdf6c71e829_87950290-0c86-4245-a6ec-d6a3f9b9f317.webp?v=1714721293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeebecf720ad94395b9b202cd0d530543304ebe_0ec38b96-e482-46c5-b5dd-8630b644e9f0.webp?v=1714721295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0cfc5b5473e050174d7b5029bf0843739b028f4_b77af1fe-819a-42d8-a70d-ecad0b3d58b8.webp?v=1714721297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20451b7f1b3f51b6a59e539bc9d9498029f0d91_5d8eacd9-09fc-418c-8d57-a0d490c7196f.webp?v=1714721300"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3225f43158a54de358823ece5aa05fe3e0fc0f6f_7644d8c5-c77a-4f6e-98a9-582dd5fc0c59.webp?v=1714721277","options":["color"],"media":[{"alt":null,"id":23877213061219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3225f43158a54de358823ece5aa05fe3e0fc0f6f_7644d8c5-c77a-4f6e-98a9-582dd5fc0c59.webp?v=1714721277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3225f43158a54de358823ece5aa05fe3e0fc0f6f_7644d8c5-c77a-4f6e-98a9-582dd5fc0c59.webp?v=1714721277","width":2000},{"alt":null,"id":23877213552739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1aa23e4709e16eab4635ca7a9e2ce67d8923c2e_5a9d8ef0-e752-486a-99ff-81cd342a78b5.webp?v=1714721279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1aa23e4709e16eab4635ca7a9e2ce67d8923c2e_5a9d8ef0-e752-486a-99ff-81cd342a78b5.webp?v=1714721279","width":2000},{"alt":null,"id":23877214044259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b68aacb32a85708702827bc1cbb49d5d5045d37_9bff1f97-05d3-4a0b-91e3-664edc9be666.webp?v=1714721282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b68aacb32a85708702827bc1cbb49d5d5045d37_9bff1f97-05d3-4a0b-91e3-664edc9be666.webp?v=1714721282","width":2000},{"alt":null,"id":23877214503011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/991b9dac20fa75c1ec84a9bc90c5108ac406d110_7ba1d473-8a37-4a1d-85ab-3a3500e0b376.webp?v=1714721284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/991b9dac20fa75c1ec84a9bc90c5108ac406d110_7ba1d473-8a37-4a1d-85ab-3a3500e0b376.webp?v=1714721284","width":2000},{"alt":null,"id":23877214994531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7081d7559323db0064d1507b2bd7dc6d37513e17_36e70928-a433-41e4-92ff-d9efb450800f.webp?v=1714721286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7081d7559323db0064d1507b2bd7dc6d37513e17_36e70928-a433-41e4-92ff-d9efb450800f.webp?v=1714721286","width":2000},{"alt":null,"id":23877215617123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288","width":2000},{"alt":null,"id":23877216075875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd97341e5e39148512c004554d73b202b43b768_975c7af8-ef13-40cf-a414-25844af27ac9.webp?v=1714721291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd97341e5e39148512c004554d73b202b43b768_975c7af8-ef13-40cf-a414-25844af27ac9.webp?v=1714721291","width":2000},{"alt":null,"id":23877216567395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56ab08e98cc8f8a3c4d2ffc54444cdf6c71e829_87950290-0c86-4245-a6ec-d6a3f9b9f317.webp?v=1714721293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56ab08e98cc8f8a3c4d2ffc54444cdf6c71e829_87950290-0c86-4245-a6ec-d6a3f9b9f317.webp?v=1714721293","width":2000},{"alt":null,"id":23877216993379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeebecf720ad94395b9b202cd0d530543304ebe_0ec38b96-e482-46c5-b5dd-8630b644e9f0.webp?v=1714721295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeebecf720ad94395b9b202cd0d530543304ebe_0ec38b96-e482-46c5-b5dd-8630b644e9f0.webp?v=1714721295","width":2000},{"alt":null,"id":23877217583203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0cfc5b5473e050174d7b5029bf0843739b028f4_b77af1fe-819a-42d8-a70d-ecad0b3d58b8.webp?v=1714721297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0cfc5b5473e050174d7b5029bf0843739b028f4_b77af1fe-819a-42d8-a70d-ecad0b3d58b8.webp?v=1714721297","width":2000},{"alt":null,"id":23877218041955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20451b7f1b3f51b6a59e539bc9d9498029f0d91_5d8eacd9-09fc-418c-8d57-a0d490c7196f.webp?v=1714721300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20451b7f1b3f51b6a59e539bc9d9498029f0d91_5d8eacd9-09fc-418c-8d57-a0d490c7196f.webp?v=1714721300","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885560340579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472299245667,"product_id":7408445816931,"position":6,"created_at":"2024-05-03T15:28:08+08:00","updated_at":"2024-05-03T15:28:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288","variant_ids":[41885560340579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23877215617123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885560340579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472299245667,"product_id":7408445816931,"position":6,"created_at":"2024-05-03T15:28:08+08:00","updated_at":"2024-05-03T15:28:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288","variant_ids":[41885560340579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23877215617123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c2f6ff9d71a1d322fd7e3e8a094d27d111b8db_83593749-6a69-44a9-8096-a49874edb97d.webp?v=1714721288"}},"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: "停產" }