$product = {"id":7413950021731,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款","handle":"iphone-13-mini-mod-nx-magsafe-printable-iv09","description":null,"published_at":"2024-06-11T17:45:53+08:00","created_at":"2024-05-05T13:48:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41902594687075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303835235,"product_id":7413950021731,"position":8,"created_at":"2024-05-05T13:48:58+08:00","updated_at":"2024-05-05T13:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138","variant_ids":[41902594687075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB0122824-IV09","featured_media":{"alt":null,"id":23889597464675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902594752611,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302950499,"product_id":7413950021731,"position":6,"created_at":"2024-05-05T13:48:53+08:00","updated_at":"2024-05-05T13:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133","variant_ids":[41902594752611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB0122804-IV09","featured_media":{"alt":null,"id":23889596547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902594981987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302458979,"product_id":7413950021731,"position":5,"created_at":"2024-05-05T13:48:51+08:00","updated_at":"2024-05-05T13:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131","variant_ids":[41902594981987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB01228J5-IV09","featured_media":{"alt":null,"id":23889596022883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c20b277aede4010837c018f3f8048920aee5c0_ddeb6b54-3d29-41d4-a83d-4a3f05f98d4c.webp?v=1714888122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f136876cb3983f8516e1873736b0a35c9f42b7b_66787e2e-246f-4742-91a5-679d05777508.webp?v=1714888125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac3eef445b73de49676bce291a9818dbe89b866_8e8c355a-2d5f-427a-ba9a-9c1074dd7ec8.webp?v=1714888127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25574effb3f36e3f5f5cf49d1e2be6633a0f7d8_5de37c3b-8e1b-4ced-86e8-b90a4e7c1e43.webp?v=1714888129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cdc3e3548829e27f8f7029542ce581498ecc043_a7a2e601-eb79-46c1-b757-46a68ecac6fc.webp?v=1714888136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c764f54bdabf1aafc7360ed883939e90ed543_6bd41f6e-f678-4ca5-ba5f-9d16bc6cf441.webp?v=1714888140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695000b00e690ed735f1deb1a95797a56aca9bac_ee09f5a9-4d97-4d41-a669-593b201c6dff.webp?v=1714888143"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c20b277aede4010837c018f3f8048920aee5c0_ddeb6b54-3d29-41d4-a83d-4a3f05f98d4c.webp?v=1714888122","options":["color"],"media":[{"alt":null,"id":23889594417251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c20b277aede4010837c018f3f8048920aee5c0_ddeb6b54-3d29-41d4-a83d-4a3f05f98d4c.webp?v=1714888122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c20b277aede4010837c018f3f8048920aee5c0_ddeb6b54-3d29-41d4-a83d-4a3f05f98d4c.webp?v=1714888122","width":2000},{"alt":null,"id":23889594908771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f136876cb3983f8516e1873736b0a35c9f42b7b_66787e2e-246f-4742-91a5-679d05777508.webp?v=1714888125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f136876cb3983f8516e1873736b0a35c9f42b7b_66787e2e-246f-4742-91a5-679d05777508.webp?v=1714888125","width":2000},{"alt":null,"id":23889595203683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac3eef445b73de49676bce291a9818dbe89b866_8e8c355a-2d5f-427a-ba9a-9c1074dd7ec8.webp?v=1714888127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac3eef445b73de49676bce291a9818dbe89b866_8e8c355a-2d5f-427a-ba9a-9c1074dd7ec8.webp?v=1714888127","width":2000},{"alt":null,"id":23889595629667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25574effb3f36e3f5f5cf49d1e2be6633a0f7d8_5de37c3b-8e1b-4ced-86e8-b90a4e7c1e43.webp?v=1714888129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25574effb3f36e3f5f5cf49d1e2be6633a0f7d8_5de37c3b-8e1b-4ced-86e8-b90a4e7c1e43.webp?v=1714888129","width":2000},{"alt":null,"id":23889596022883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131","width":2000},{"alt":null,"id":23889596547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133","width":2000},{"alt":null,"id":23889596940387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cdc3e3548829e27f8f7029542ce581498ecc043_a7a2e601-eb79-46c1-b757-46a68ecac6fc.webp?v=1714888136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cdc3e3548829e27f8f7029542ce581498ecc043_a7a2e601-eb79-46c1-b757-46a68ecac6fc.webp?v=1714888136","width":2000},{"alt":null,"id":23889597464675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138","width":2000},{"alt":null,"id":23889598152803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c764f54bdabf1aafc7360ed883939e90ed543_6bd41f6e-f678-4ca5-ba5f-9d16bc6cf441.webp?v=1714888140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c764f54bdabf1aafc7360ed883939e90ed543_6bd41f6e-f678-4ca5-ba5f-9d16bc6cf441.webp?v=1714888140","width":2000},{"alt":null,"id":23889598742627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695000b00e690ed735f1deb1a95797a56aca9bac_ee09f5a9-4d97-4d41-a669-593b201c6dff.webp?v=1714888143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695000b00e690ed735f1deb1a95797a56aca9bac_ee09f5a9-4d97-4d41-a669-593b201c6dff.webp?v=1714888143","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902594687075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303835235,"product_id":7413950021731,"position":8,"created_at":"2024-05-05T13:48:58+08:00","updated_at":"2024-05-05T13:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138","variant_ids":[41902594687075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB0122824-IV09","featured_media":{"alt":null,"id":23889597464675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902594752611,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302950499,"product_id":7413950021731,"position":6,"created_at":"2024-05-05T13:48:53+08:00","updated_at":"2024-05-05T13:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133","variant_ids":[41902594752611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB0122804-IV09","featured_media":{"alt":null,"id":23889596547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccebdaa0374382a93c3c0aa2e8a91daf8d66d75_909f6782-0b6d-45da-89d3-444e0ce5e478.webp?v=1714888133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902594981987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302458979,"product_id":7413950021731,"position":5,"created_at":"2024-05-05T13:48:51+08:00","updated_at":"2024-05-05T13:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131","variant_ids":[41902594981987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB01228J5-IV09","featured_media":{"alt":null,"id":23889596022883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865fc4834303f8cae804ad41bebff4fdb6ed1941_76e6f7ba-dac1-466d-82f2-e1b3b08586e2.webp?v=1714888131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902594687075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303835235,"product_id":7413950021731,"position":8,"created_at":"2024-05-05T13:48:58+08:00","updated_at":"2024-05-05T13:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138","variant_ids":[41902594687075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - yaya款 - 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":"MPB0122824-IV09","featured_media":{"alt":null,"id":23889597464675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9eac3601df2fa48dc94a77f69987b289f8ca90_766bce11-4f78-453c-be91-3d84878956a9.webp?v=1714888138"}},"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: "停產" }