$product = {"id":7866445004899,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold","handle":"iphone-14-pro-mod-nx-magsafe-printable-mj65","description":"","published_at":"2025-08-25T10:52:59+08:00","created_at":"2025-08-25T10:45:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-noreason","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-noreason","reseller-modnx_magsafe-noreason","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":43621906382947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373772083299,"product_id":7866445004899,"position":4,"created_at":"2025-08-25T10:46:01+08:00","updated_at":"2025-08-25T10:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963","variant_ids":[43621906382947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MJ65","featured_media":{"alt":null,"id":25951034540131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43621910249571,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373772869731,"product_id":7866445004899,"position":8,"created_at":"2025-08-25T10:46:03+08:00","updated_at":"2025-08-25T10:46:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965","variant_ids":[43621910249571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-MJ65","featured_media":{"alt":null,"id":25951035326563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43621910315107,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373773066339,"product_id":7866445004899,"position":9,"created_at":"2025-08-25T10:46:04+08:00","updated_at":"2025-08-25T10:46:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966","variant_ids":[43621910315107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-MJ65","featured_media":{"alt":null,"id":25951035523171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aae06cf225a5dab82693a3dab8e2ea60c22fc665.webp?v=1756089962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b676000e5ddb90a81e73bb4282d238e8fa50c3.webp?v=1756089962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d212c51d0e647d76b3e0e116df8b39dcbb62207.webp?v=1756089963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab831d029c6d4cb42e38871e98c1618101d6584.webp?v=1756089964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c79dc88031c4d09d3517df206775076394a118.webp?v=1756089964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4162082009346f99e407ad52d35138de09d71162.webp?v=1756089965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5606e4e9cc3d07c7487318fa04b517e0f3943ad7.webp?v=1756089967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dcc34243fb271e6fd03b04839f41127303df72.webp?v=1756089968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df459ace78836ecebb4321bc8e578410c808576.webp?v=1756089969"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aae06cf225a5dab82693a3dab8e2ea60c22fc665.webp?v=1756089962","options":["color"],"media":[{"alt":null,"id":25951033983075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aae06cf225a5dab82693a3dab8e2ea60c22fc665.webp?v=1756089962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aae06cf225a5dab82693a3dab8e2ea60c22fc665.webp?v=1756089962","width":2000},{"alt":null,"id":25951034114147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b676000e5ddb90a81e73bb4282d238e8fa50c3.webp?v=1756089962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b676000e5ddb90a81e73bb4282d238e8fa50c3.webp?v=1756089962","width":2000},{"alt":null,"id":25951034310755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d212c51d0e647d76b3e0e116df8b39dcbb62207.webp?v=1756089963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d212c51d0e647d76b3e0e116df8b39dcbb62207.webp?v=1756089963","width":2000},{"alt":null,"id":25951034540131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963","width":2000},{"alt":null,"id":25951034802275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab831d029c6d4cb42e38871e98c1618101d6584.webp?v=1756089964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab831d029c6d4cb42e38871e98c1618101d6584.webp?v=1756089964","width":2000},{"alt":null,"id":25951034998883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c79dc88031c4d09d3517df206775076394a118.webp?v=1756089964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c79dc88031c4d09d3517df206775076394a118.webp?v=1756089964","width":2000},{"alt":null,"id":25951035162723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4162082009346f99e407ad52d35138de09d71162.webp?v=1756089965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4162082009346f99e407ad52d35138de09d71162.webp?v=1756089965","width":2000},{"alt":null,"id":25951035326563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965","width":2000},{"alt":null,"id":25951035523171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966","width":2000},{"alt":null,"id":25951035654243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5606e4e9cc3d07c7487318fa04b517e0f3943ad7.webp?v=1756089967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5606e4e9cc3d07c7487318fa04b517e0f3943ad7.webp?v=1756089967","width":2000},{"alt":null,"id":25951036080227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dcc34243fb271e6fd03b04839f41127303df72.webp?v=1756089968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dcc34243fb271e6fd03b04839f41127303df72.webp?v=1756089968","width":2000},{"alt":null,"id":25951036342371,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df459ace78836ecebb4321bc8e578410c808576.webp?v=1756089969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df459ace78836ecebb4321bc8e578410c808576.webp?v=1756089969","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":43621906382947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373772083299,"product_id":7866445004899,"position":4,"created_at":"2025-08-25T10:46:01+08:00","updated_at":"2025-08-25T10:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963","variant_ids":[43621906382947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MJ65","featured_media":{"alt":null,"id":25951034540131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43621910249571,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373772869731,"product_id":7866445004899,"position":8,"created_at":"2025-08-25T10:46:03+08:00","updated_at":"2025-08-25T10:46:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965","variant_ids":[43621910249571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-MJ65","featured_media":{"alt":null,"id":25951035326563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237f2d73c6befc9c6618e56c8f9a741af48586c8.webp?v=1756089965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43621910315107,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373773066339,"product_id":7866445004899,"position":9,"created_at":"2025-08-25T10:46:04+08:00","updated_at":"2025-08-25T10:46:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966","variant_ids":[43621910315107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-MJ65","featured_media":{"alt":null,"id":25951035523171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34af2fb41494a28c01520800afdb60e1bcc2db04.webp?v=1756089966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43621906382947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34373772083299,"product_id":7866445004899,"position":4,"created_at":"2025-08-25T10:46:01+08:00","updated_at":"2025-08-25T10:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963","variant_ids":[43621906382947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MJ65","featured_media":{"alt":null,"id":25951034540131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f98ec54b5371cffb706e5a99554613d9a5e50ca.webp?v=1756089963"}},"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: "停產" }