$product = {"id":7411360563299,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 大自然的傑作(大堡礁)","handle":"iphone-14-pro-mod-nx-magsafe-printable-af11","description":null,"published_at":"2024-06-11T17:42:52+08:00","created_at":"2024-05-05T00:14:43+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 14 Pro","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":41897915973731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227758179,"product_id":7411360563299,"position":2,"created_at":"2024-05-05T00:14:48+08:00","updated_at":"2024-05-05T00:14:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288","variant_ids":[41897915973731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB0126224-AF11","featured_media":{"alt":null,"id":23885478953059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897916039267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229757027,"product_id":7411360563299,"position":6,"created_at":"2024-05-05T00:14:57+08:00","updated_at":"2024-05-05T00:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297","variant_ids":[41897916039267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB0126204-AF11","featured_media":{"alt":null,"id":23885481017443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897916301411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229265507,"product_id":7411360563299,"position":5,"created_at":"2024-05-05T00:14:55+08:00","updated_at":"2024-05-05T00:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295","variant_ids":[41897916301411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB01262J5-AF11","featured_media":{"alt":null,"id":23885480460387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704cf4319a67d2460dabb38beeb73741080d4307_64d443e6-9a92-48c7-bac6-1d0b075a4c4d.webp?v=1714839285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b461b60be2c6513afdc684abf60b95ce882ac5_37ae7d8e-b202-4db1-8eaf-b6328e20e7b8.webp?v=1714839290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc69b3879dffaa626283508c4ceb1409f6206cf_34964e11-a0f9-4708-87de-6354bc826a92.webp?v=1714839293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f03ac0a637de436ef21bf9b6fd7c1f0c9f90cd_9fbca760-de5d-4424-b5ca-8c8634968bc7.webp?v=1714839300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8217b78474d6e812c8286e1f671e4bf613b4bb02_b4d6dba3-df4f-4147-a859-3f455bc4e5c9.webp?v=1714839302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b732cd5195f90518b010e2889d8625a82a88b8a3_8a3e7d9c-1ab5-490e-b18a-7fe1c5f718d4.webp?v=1714839305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37bff7714e2916257c17fb2722931edde6d8dc7_3232c10c-9c9a-49b1-a084-2d486ce6a1d7.webp?v=1714839308"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704cf4319a67d2460dabb38beeb73741080d4307_64d443e6-9a92-48c7-bac6-1d0b075a4c4d.webp?v=1714839285","options":["color"],"media":[{"alt":null,"id":23885478461539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704cf4319a67d2460dabb38beeb73741080d4307_64d443e6-9a92-48c7-bac6-1d0b075a4c4d.webp?v=1714839285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704cf4319a67d2460dabb38beeb73741080d4307_64d443e6-9a92-48c7-bac6-1d0b075a4c4d.webp?v=1714839285","width":2000},{"alt":null,"id":23885478953059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288","width":2000},{"alt":null,"id":23885479477347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b461b60be2c6513afdc684abf60b95ce882ac5_37ae7d8e-b202-4db1-8eaf-b6328e20e7b8.webp?v=1714839290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b461b60be2c6513afdc684abf60b95ce882ac5_37ae7d8e-b202-4db1-8eaf-b6328e20e7b8.webp?v=1714839290","width":2000},{"alt":null,"id":23885479968867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc69b3879dffaa626283508c4ceb1409f6206cf_34964e11-a0f9-4708-87de-6354bc826a92.webp?v=1714839293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc69b3879dffaa626283508c4ceb1409f6206cf_34964e11-a0f9-4708-87de-6354bc826a92.webp?v=1714839293","width":2000},{"alt":null,"id":23885480460387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295","width":2000},{"alt":null,"id":23885481017443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297","width":2000},{"alt":null,"id":23885481508963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f03ac0a637de436ef21bf9b6fd7c1f0c9f90cd_9fbca760-de5d-4424-b5ca-8c8634968bc7.webp?v=1714839300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f03ac0a637de436ef21bf9b6fd7c1f0c9f90cd_9fbca760-de5d-4424-b5ca-8c8634968bc7.webp?v=1714839300","width":2000},{"alt":null,"id":23885482000483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8217b78474d6e812c8286e1f671e4bf613b4bb02_b4d6dba3-df4f-4147-a859-3f455bc4e5c9.webp?v=1714839302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8217b78474d6e812c8286e1f671e4bf613b4bb02_b4d6dba3-df4f-4147-a859-3f455bc4e5c9.webp?v=1714839302","width":2000},{"alt":null,"id":23885482655843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b732cd5195f90518b010e2889d8625a82a88b8a3_8a3e7d9c-1ab5-490e-b18a-7fe1c5f718d4.webp?v=1714839305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b732cd5195f90518b010e2889d8625a82a88b8a3_8a3e7d9c-1ab5-490e-b18a-7fe1c5f718d4.webp?v=1714839305","width":2000},{"alt":null,"id":23885483180131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37bff7714e2916257c17fb2722931edde6d8dc7_3232c10c-9c9a-49b1-a084-2d486ce6a1d7.webp?v=1714839308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37bff7714e2916257c17fb2722931edde6d8dc7_3232c10c-9c9a-49b1-a084-2d486ce6a1d7.webp?v=1714839308","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897915973731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227758179,"product_id":7411360563299,"position":2,"created_at":"2024-05-05T00:14:48+08:00","updated_at":"2024-05-05T00:14:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288","variant_ids":[41897915973731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB0126224-AF11","featured_media":{"alt":null,"id":23885478953059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897916039267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229757027,"product_id":7411360563299,"position":6,"created_at":"2024-05-05T00:14:57+08:00","updated_at":"2024-05-05T00:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297","variant_ids":[41897916039267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB0126204-AF11","featured_media":{"alt":null,"id":23885481017443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f1c80f489137e91025a3a029e223eac3defbcb_735f5dbc-abf0-424d-a150-edffe0529df2.webp?v=1714839297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897916301411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229265507,"product_id":7411360563299,"position":5,"created_at":"2024-05-05T00:14:55+08:00","updated_at":"2024-05-05T00:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295","variant_ids":[41897916301411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB01262J5-AF11","featured_media":{"alt":null,"id":23885480460387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3e20dedd4df0508bec442ccb7d6164ef85e212_2fdae362-c7fe-4cc1-b411-10f086a90dc5.webp?v=1714839295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897915973731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227758179,"product_id":7411360563299,"position":2,"created_at":"2024-05-05T00:14:48+08:00","updated_at":"2024-05-05T00:14:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288","variant_ids":[41897915973731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 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":"MPB0126224-AF11","featured_media":{"alt":null,"id":23885478953059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462f64843478fbecda58b6707d3c9701e4da9fd_2704c7db-31b6-4c44-8762-708014528ef4.webp?v=1714839288"}},"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: "停產" }