$product = {"id":7414426796131,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8","handle":"iphone-13-mini-mod-nx-magsafe-printable-iv02","description":null,"published_at":"2024-06-11T17:51:15+08:00","created_at":"2024-05-05T14:25:07+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":41906414190691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485438034019,"product_id":7414426796131,"position":7,"created_at":"2024-05-05T14:25:22+08:00","updated_at":"2024-05-05T14:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323","variant_ids":[41906414190691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890755354723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906414256227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485428400227,"product_id":7414426796131,"position":4,"created_at":"2024-05-05T14:25:16+08:00","updated_at":"2024-05-05T14:25:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316","variant_ids":[41906414256227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890745917539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906414780515,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485422403683,"product_id":7414426796131,"position":2,"created_at":"2024-05-05T14:25:11+08:00","updated_at":"2024-05-05T14:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311","variant_ids":[41906414780515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890739888227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99937e9e1d2bffa2c30706b9b7c62acc79a442ce_4a3d9659-87f4-48ee-b538-0bc3eba1b0d7.webp?v=1714890309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa78ba82e8fdb33a375f2eb0d77c730d7e5292_3cad473c-14ed-4ec3-a872-1fc5c0d0ea37.webp?v=1714890313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6bc29a38ebb20102af7082d8d125032f001828_fc555d17-4208-4bdc-b9f9-0e9883c24280.webp?v=1714890318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73cfeb757d9512fc9c09472a29ee422d97e53837_8a580de6-3f73-43ad-9132-72fb68f2f106.webp?v=1714890320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc9995a2bfababe263d050788d54dbfb01b7d87_dd909f03-54e9-4e16-a555-e9631b447ec5.webp?v=1714890325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5097cfc3bd1f5aef5e83c3dc90f55d142cf39e41_fc05dbc0-ba81-4206-ba33-1788e3919e05.webp?v=1714890327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8b2f8e3b4778fa843429d67f8dd72d23e88156_192bd082-bdcb-4402-8634-851ceb1d8d97.webp?v=1714890330"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99937e9e1d2bffa2c30706b9b7c62acc79a442ce_4a3d9659-87f4-48ee-b538-0bc3eba1b0d7.webp?v=1714890309","options":["color"],"media":[{"alt":null,"id":23890737070179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99937e9e1d2bffa2c30706b9b7c62acc79a442ce_4a3d9659-87f4-48ee-b538-0bc3eba1b0d7.webp?v=1714890309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99937e9e1d2bffa2c30706b9b7c62acc79a442ce_4a3d9659-87f4-48ee-b538-0bc3eba1b0d7.webp?v=1714890309","width":2000},{"alt":null,"id":23890739888227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311","width":2000},{"alt":null,"id":23890742575203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa78ba82e8fdb33a375f2eb0d77c730d7e5292_3cad473c-14ed-4ec3-a872-1fc5c0d0ea37.webp?v=1714890313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa78ba82e8fdb33a375f2eb0d77c730d7e5292_3cad473c-14ed-4ec3-a872-1fc5c0d0ea37.webp?v=1714890313","width":2000},{"alt":null,"id":23890745917539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316","width":2000},{"alt":null,"id":23890748735587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6bc29a38ebb20102af7082d8d125032f001828_fc555d17-4208-4bdc-b9f9-0e9883c24280.webp?v=1714890318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6bc29a38ebb20102af7082d8d125032f001828_fc555d17-4208-4bdc-b9f9-0e9883c24280.webp?v=1714890318","width":2000},{"alt":null,"id":23890752372835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73cfeb757d9512fc9c09472a29ee422d97e53837_8a580de6-3f73-43ad-9132-72fb68f2f106.webp?v=1714890320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73cfeb757d9512fc9c09472a29ee422d97e53837_8a580de6-3f73-43ad-9132-72fb68f2f106.webp?v=1714890320","width":2000},{"alt":null,"id":23890755354723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323","width":2000},{"alt":null,"id":23890758533219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc9995a2bfababe263d050788d54dbfb01b7d87_dd909f03-54e9-4e16-a555-e9631b447ec5.webp?v=1714890325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc9995a2bfababe263d050788d54dbfb01b7d87_dd909f03-54e9-4e16-a555-e9631b447ec5.webp?v=1714890325","width":2000},{"alt":null,"id":23890762268771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5097cfc3bd1f5aef5e83c3dc90f55d142cf39e41_fc05dbc0-ba81-4206-ba33-1788e3919e05.webp?v=1714890327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5097cfc3bd1f5aef5e83c3dc90f55d142cf39e41_fc05dbc0-ba81-4206-ba33-1788e3919e05.webp?v=1714890327","width":2000},{"alt":null,"id":23890765840483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8b2f8e3b4778fa843429d67f8dd72d23e88156_192bd082-bdcb-4402-8634-851ceb1d8d97.webp?v=1714890330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af8b2f8e3b4778fa843429d67f8dd72d23e88156_192bd082-bdcb-4402-8634-851ceb1d8d97.webp?v=1714890330","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906414190691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485438034019,"product_id":7414426796131,"position":7,"created_at":"2024-05-05T14:25:22+08:00","updated_at":"2024-05-05T14:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323","variant_ids":[41906414190691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890755354723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906414256227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485428400227,"product_id":7414426796131,"position":4,"created_at":"2024-05-05T14:25:16+08:00","updated_at":"2024-05-05T14:25:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316","variant_ids":[41906414256227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890745917539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/157a19781084fdb07c0b0e84023baa6b8f096eac_b713194a-672f-482a-b23e-ec5ae7240092.webp?v=1714890316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906414780515,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485422403683,"product_id":7414426796131,"position":2,"created_at":"2024-05-05T14:25:11+08:00","updated_at":"2024-05-05T14:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311","variant_ids":[41906414780515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890739888227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71d41e9070d5c64ca9418569db8f9d5a13c82fa_d9a18413-06b4-43b4-b574-cfe31b667f74.webp?v=1714890311"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906414190691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485438034019,"product_id":7414426796131,"position":7,"created_at":"2024-05-05T14:25:22+08:00","updated_at":"2024-05-05T14:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323","variant_ids":[41906414190691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23890755354723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b880efd393dff7cb69c206d1766f7238b1c2ca_5b9558a8-2eea-4a9f-831b-05d426d880d7.webp?v=1714890323"}},"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: "停產" }