$product = {"id":7414109438051,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf01","description":null,"published_at":"2024-06-11T17:49:03+08:00","created_at":"2024-05-05T14:10:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41904168108131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694134883,"product_id":7414109438051,"position":5,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433","variant_ids":[41904168108131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0123224-YF01","featured_media":{"alt":null,"id":23889989435491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904168697955,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484704063587,"product_id":7414109438051,"position":11,"created_at":"2024-05-05T14:10:48+08:00","updated_at":"2024-05-05T14:10:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448","variant_ids":[41904168697955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB01232J5-YF01","featured_media":{"alt":null,"id":23889999265891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c17ed395e5a268eae5df1bc73fc3165f2806b8c_02b8f63d-64f7-4c57-8956-27b946938367.webp?v=1714889424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e3e2e18bb3f5be1b4519c8bd83e084b2e480d_d8c450f7-b166-4a10-8a4b-62116df775ec.webp?v=1714889427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f0c8f70f14b51edc9b45048497a882790d4f3b_0bba155d-e9d0-4c39-b05f-a5d04280c07e.webp?v=1714889429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec498ef829965df691b7d62620e7e43cd91b4f1c_7cab79ef-47aa-4f14-8d4d-1ed9c97d3309.webp?v=1714889431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c9ae0a746f62cf42b4c78a77d85323f10e1ee43_73dfcfbc-c00d-417e-8488-0a53b7204f43.webp?v=1714889436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/884d456ee9ce7d87515c9c3b1ed32ddc4e97ddc2_4427fc07-304a-40f3-8ff9-4da5c80cf79a.webp?v=1714889438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7736834047952ed1f1a961fb54effcb73bb1470a_c39f6704-505d-42bc-b893-2c14771a9c21.webp?v=1714889440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a3ad27a7aeb71c6cef56647b503998eccb5db8_c573aeac-c02b-42c9-a919-8171c5967423.webp?v=1714889443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac2d4496707deabec22b652c4ac49b32fe9712_1bc0862e-c4ce-44ed-bf14-587fbce83d58.webp?v=1714889446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c17ed395e5a268eae5df1bc73fc3165f2806b8c_02b8f63d-64f7-4c57-8956-27b946938367.webp?v=1714889424","options":["color"],"media":[{"alt":null,"id":23889983242339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c17ed395e5a268eae5df1bc73fc3165f2806b8c_02b8f63d-64f7-4c57-8956-27b946938367.webp?v=1714889424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c17ed395e5a268eae5df1bc73fc3165f2806b8c_02b8f63d-64f7-4c57-8956-27b946938367.webp?v=1714889424","width":2000},{"alt":null,"id":23889984880739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e3e2e18bb3f5be1b4519c8bd83e084b2e480d_d8c450f7-b166-4a10-8a4b-62116df775ec.webp?v=1714889427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e3e2e18bb3f5be1b4519c8bd83e084b2e480d_d8c450f7-b166-4a10-8a4b-62116df775ec.webp?v=1714889427","width":2000},{"alt":null,"id":23889986420835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f0c8f70f14b51edc9b45048497a882790d4f3b_0bba155d-e9d0-4c39-b05f-a5d04280c07e.webp?v=1714889429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f0c8f70f14b51edc9b45048497a882790d4f3b_0bba155d-e9d0-4c39-b05f-a5d04280c07e.webp?v=1714889429","width":2000},{"alt":null,"id":23889987928163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec498ef829965df691b7d62620e7e43cd91b4f1c_7cab79ef-47aa-4f14-8d4d-1ed9c97d3309.webp?v=1714889431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec498ef829965df691b7d62620e7e43cd91b4f1c_7cab79ef-47aa-4f14-8d4d-1ed9c97d3309.webp?v=1714889431","width":2000},{"alt":null,"id":23889989435491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433","width":2000},{"alt":null,"id":23889990910051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c9ae0a746f62cf42b4c78a77d85323f10e1ee43_73dfcfbc-c00d-417e-8488-0a53b7204f43.webp?v=1714889436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c9ae0a746f62cf42b4c78a77d85323f10e1ee43_73dfcfbc-c00d-417e-8488-0a53b7204f43.webp?v=1714889436","width":2000},{"alt":null,"id":23889992351843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/884d456ee9ce7d87515c9c3b1ed32ddc4e97ddc2_4427fc07-304a-40f3-8ff9-4da5c80cf79a.webp?v=1714889438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/884d456ee9ce7d87515c9c3b1ed32ddc4e97ddc2_4427fc07-304a-40f3-8ff9-4da5c80cf79a.webp?v=1714889438","width":2000},{"alt":null,"id":23889993957475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7736834047952ed1f1a961fb54effcb73bb1470a_c39f6704-505d-42bc-b893-2c14771a9c21.webp?v=1714889440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7736834047952ed1f1a961fb54effcb73bb1470a_c39f6704-505d-42bc-b893-2c14771a9c21.webp?v=1714889440","width":2000},{"alt":null,"id":23889995628643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a3ad27a7aeb71c6cef56647b503998eccb5db8_c573aeac-c02b-42c9-a919-8171c5967423.webp?v=1714889443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a3ad27a7aeb71c6cef56647b503998eccb5db8_c573aeac-c02b-42c9-a919-8171c5967423.webp?v=1714889443","width":2000},{"alt":null,"id":23889997594723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac2d4496707deabec22b652c4ac49b32fe9712_1bc0862e-c4ce-44ed-bf14-587fbce83d58.webp?v=1714889446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac2d4496707deabec22b652c4ac49b32fe9712_1bc0862e-c4ce-44ed-bf14-587fbce83d58.webp?v=1714889446","width":2000},{"alt":null,"id":23889999265891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904168108131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694134883,"product_id":7414109438051,"position":5,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433","variant_ids":[41904168108131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0123224-YF01","featured_media":{"alt":null,"id":23889989435491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904168697955,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484704063587,"product_id":7414109438051,"position":11,"created_at":"2024-05-05T14:10:48+08:00","updated_at":"2024-05-05T14:10:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448","variant_ids":[41904168697955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB01232J5-YF01","featured_media":{"alt":null,"id":23889999265891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89d90bf1e93f809aae8b6a40aed56f1fefcf6b1_a2ff325a-c59b-4faf-993e-6058e89ebc52.webp?v=1714889448"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904168108131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694134883,"product_id":7414109438051,"position":5,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433","variant_ids":[41904168108131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0123224-YF01","featured_media":{"alt":null,"id":23889989435491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5aeb051b8333ca80c8e37e18799da1fb91d4260_4319c6b4-e4ba-496b-bd9a-2679755e1cc1.webp?v=1714889433"}},"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: "停產" }