$product = {"id":7413987737699,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af03","description":null,"published_at":"2024-06-11T17:46:59+08:00","created_at":"2024-05-05T13:56:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41903032500323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398043235,"product_id":7413987737699,"position":4,"created_at":"2024-05-05T13:56:16+08:00","updated_at":"2024-05-05T13:56:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576","variant_ids":[41903032500323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF03","featured_media":{"alt":null,"id":23889692000355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903032795235,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401647715,"product_id":7413987737699,"position":11,"created_at":"2024-05-05T13:56:32+08:00","updated_at":"2024-05-05T13:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592","variant_ids":[41903032795235]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF03","featured_media":{"alt":null,"id":23889695572067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664ab1872db9ed8a607a0f2171c97fe167bdd204_0b747883-f4e9-4223-95a8-f6f84c9d41d0.webp?v=1714888569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f948c6ec97e875e00ac789fb0e966cadf37c259_59101390-f287-4aac-b45d-daea78522fc9.webp?v=1714888571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec76148c6a3e6331be5df92989e26b0d5a2d7f_792823ee-772a-4ae3-81cd-32016c5f2c9b.webp?v=1714888573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3a58a0ed507e859a000deebc434f4dd755656f_95d20b4f-6c6f-4bcd-bced-4e2ba9547ead.webp?v=1714888578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f63a1f5d873c460e8a27fb897f8892b37d5999bf_171de160-45f8-4c51-b39e-4d67f67ce71b.webp?v=1714888580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0251928921b3f69f4f4e4eef62553b92e1aa52_1c5357d1-cc87-4a32-b7d0-6d86f94ad592.webp?v=1714888583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb9c347a67da4e28ae39681dd5f5e1ec5300fd_2cacff4c-91ee-4410-8ce7-502f7062a6c5.webp?v=1714888585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55ec6af37e8f2e74830d4807491ffe80c1c40424_1927f709-1495-434f-81a8-60157ede0a6f.webp?v=1714888588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b037f20f26217a69198d201174811ce35c41802_9368dff7-0ac3-4b13-b0bc-5471b1ace61a.webp?v=1714888590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664ab1872db9ed8a607a0f2171c97fe167bdd204_0b747883-f4e9-4223-95a8-f6f84c9d41d0.webp?v=1714888569","options":["color"],"media":[{"alt":null,"id":23889690591331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664ab1872db9ed8a607a0f2171c97fe167bdd204_0b747883-f4e9-4223-95a8-f6f84c9d41d0.webp?v=1714888569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664ab1872db9ed8a607a0f2171c97fe167bdd204_0b747883-f4e9-4223-95a8-f6f84c9d41d0.webp?v=1714888569","width":2000},{"alt":null,"id":23889691050083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f948c6ec97e875e00ac789fb0e966cadf37c259_59101390-f287-4aac-b45d-daea78522fc9.webp?v=1714888571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f948c6ec97e875e00ac789fb0e966cadf37c259_59101390-f287-4aac-b45d-daea78522fc9.webp?v=1714888571","width":2000},{"alt":null,"id":23889691476067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec76148c6a3e6331be5df92989e26b0d5a2d7f_792823ee-772a-4ae3-81cd-32016c5f2c9b.webp?v=1714888573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec76148c6a3e6331be5df92989e26b0d5a2d7f_792823ee-772a-4ae3-81cd-32016c5f2c9b.webp?v=1714888573","width":2000},{"alt":null,"id":23889692000355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576","width":2000},{"alt":null,"id":23889692459107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3a58a0ed507e859a000deebc434f4dd755656f_95d20b4f-6c6f-4bcd-bced-4e2ba9547ead.webp?v=1714888578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e3a58a0ed507e859a000deebc434f4dd755656f_95d20b4f-6c6f-4bcd-bced-4e2ba9547ead.webp?v=1714888578","width":2000},{"alt":null,"id":23889693016163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f63a1f5d873c460e8a27fb897f8892b37d5999bf_171de160-45f8-4c51-b39e-4d67f67ce71b.webp?v=1714888580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f63a1f5d873c460e8a27fb897f8892b37d5999bf_171de160-45f8-4c51-b39e-4d67f67ce71b.webp?v=1714888580","width":2000},{"alt":null,"id":23889693540451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0251928921b3f69f4f4e4eef62553b92e1aa52_1c5357d1-cc87-4a32-b7d0-6d86f94ad592.webp?v=1714888583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0251928921b3f69f4f4e4eef62553b92e1aa52_1c5357d1-cc87-4a32-b7d0-6d86f94ad592.webp?v=1714888583","width":2000},{"alt":null,"id":23889694064739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb9c347a67da4e28ae39681dd5f5e1ec5300fd_2cacff4c-91ee-4410-8ce7-502f7062a6c5.webp?v=1714888585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb9c347a67da4e28ae39681dd5f5e1ec5300fd_2cacff4c-91ee-4410-8ce7-502f7062a6c5.webp?v=1714888585","width":2000},{"alt":null,"id":23889694556259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55ec6af37e8f2e74830d4807491ffe80c1c40424_1927f709-1495-434f-81a8-60157ede0a6f.webp?v=1714888588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55ec6af37e8f2e74830d4807491ffe80c1c40424_1927f709-1495-434f-81a8-60157ede0a6f.webp?v=1714888588","width":2000},{"alt":null,"id":23889695146083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b037f20f26217a69198d201174811ce35c41802_9368dff7-0ac3-4b13-b0bc-5471b1ace61a.webp?v=1714888590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b037f20f26217a69198d201174811ce35c41802_9368dff7-0ac3-4b13-b0bc-5471b1ace61a.webp?v=1714888590","width":2000},{"alt":null,"id":23889695572067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903032500323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398043235,"product_id":7413987737699,"position":4,"created_at":"2024-05-05T13:56:16+08:00","updated_at":"2024-05-05T13:56:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576","variant_ids":[41903032500323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF03","featured_media":{"alt":null,"id":23889692000355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903032795235,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401647715,"product_id":7413987737699,"position":11,"created_at":"2024-05-05T13:56:32+08:00","updated_at":"2024-05-05T13:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592","variant_ids":[41903032795235]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF03","featured_media":{"alt":null,"id":23889695572067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6296d050bda239f5cf5a2994ee8b3abd5a2b5ab2_aad01f3f-55be-4c9f-a1ed-6d334a5c9bd9.webp?v=1714888592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903032500323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398043235,"product_id":7413987737699,"position":4,"created_at":"2024-05-05T13:56:16+08:00","updated_at":"2024-05-05T13:56:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576","variant_ids":[41903032500323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF03","featured_media":{"alt":null,"id":23889692000355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2fdc2b3828b2fd64110d4f3dc986bdbc8da0a8e_8bd0db74-e2cb-469b-be6c-9fde91689493.webp?v=1714888576"}},"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: "停產" }