$product = {"id":7414985031779,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - G本款","handle":"iphone-12-mini-mod-nx-magsafe-printable-iv07","description":null,"published_at":"2024-06-11T17:54:52+08:00","created_at":"2024-05-05T20:01:03+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 12 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":41910642049123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487855165539,"product_id":7414985031779,"position":10,"created_at":"2024-05-05T20:01:28+08:00","updated_at":"2024-05-05T20:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488","variant_ids":[41910642049123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - G本款 - 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":"MPB0118424-IV07","featured_media":{"alt":null,"id":23893199192163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f851febad4db4e9945f750166449be2d3e8a26f_83a119ee-f17a-4ddf-b49c-71239c75acff.webp?v=1714910466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22f03ceff7890e518c8fd2366da0a6c1693c153_4a9fd4a2-38f1-426b-992b-4d99f8790148.webp?v=1714910468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfdb1f5b6dab01758cec3e2b092c981e93ee574_ef5745d7-0eb6-4a3e-8674-6883dcfcde0f.webp?v=1714910470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45875780040f9444b66fabc386129d43b8b84d6e_4cb398b8-3632-4d26-b1f0-f0a59a98a22a.webp?v=1714910473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba90dcc79f213165ca27c999a28ecd9fafd9f7_57fac135-98ee-43b7-a689-70ee6c85714b.webp?v=1714910476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1231bd805c9d9e2a508a98f2c8b78b96f5c2f4c_d356998b-0da3-4892-aee1-51cf2bed2265.webp?v=1714910478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2ce17c3e2580fe28ca2ceda2cdb5446ea86ef1_1185fc17-19f2-4cc5-8544-b1e01a700220.webp?v=1714910481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8455d200af85d2ea6f1cf3bc5ed93d8eae623891_9772a897-9fa3-4aae-b8a0-1195623898ce.webp?v=1714910483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a74bc8b7f6a53c829067412e0bf15902a60abb_015da2bc-6445-437d-8132-b2e98e566953.webp?v=1714910486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91361d0f1c94028d40bfece11e83e89933c70d3_a9faec7d-3f9a-45e8-8fb1-9af96e914be1.webp?v=1714910491"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f851febad4db4e9945f750166449be2d3e8a26f_83a119ee-f17a-4ddf-b49c-71239c75acff.webp?v=1714910466","options":["color"],"media":[{"alt":null,"id":23893194539107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f851febad4db4e9945f750166449be2d3e8a26f_83a119ee-f17a-4ddf-b49c-71239c75acff.webp?v=1714910466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f851febad4db4e9945f750166449be2d3e8a26f_83a119ee-f17a-4ddf-b49c-71239c75acff.webp?v=1714910466","width":2000},{"alt":null,"id":23893194997859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22f03ceff7890e518c8fd2366da0a6c1693c153_4a9fd4a2-38f1-426b-992b-4d99f8790148.webp?v=1714910468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22f03ceff7890e518c8fd2366da0a6c1693c153_4a9fd4a2-38f1-426b-992b-4d99f8790148.webp?v=1714910468","width":2000},{"alt":null,"id":23893195489379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfdb1f5b6dab01758cec3e2b092c981e93ee574_ef5745d7-0eb6-4a3e-8674-6883dcfcde0f.webp?v=1714910470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfdb1f5b6dab01758cec3e2b092c981e93ee574_ef5745d7-0eb6-4a3e-8674-6883dcfcde0f.webp?v=1714910470","width":2000},{"alt":null,"id":23893196210275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45875780040f9444b66fabc386129d43b8b84d6e_4cb398b8-3632-4d26-b1f0-f0a59a98a22a.webp?v=1714910473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45875780040f9444b66fabc386129d43b8b84d6e_4cb398b8-3632-4d26-b1f0-f0a59a98a22a.webp?v=1714910473","width":2000},{"alt":null,"id":23893196734563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba90dcc79f213165ca27c999a28ecd9fafd9f7_57fac135-98ee-43b7-a689-70ee6c85714b.webp?v=1714910476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba90dcc79f213165ca27c999a28ecd9fafd9f7_57fac135-98ee-43b7-a689-70ee6c85714b.webp?v=1714910476","width":2000},{"alt":null,"id":23893197455459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1231bd805c9d9e2a508a98f2c8b78b96f5c2f4c_d356998b-0da3-4892-aee1-51cf2bed2265.webp?v=1714910478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1231bd805c9d9e2a508a98f2c8b78b96f5c2f4c_d356998b-0da3-4892-aee1-51cf2bed2265.webp?v=1714910478","width":2000},{"alt":null,"id":23893197848675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2ce17c3e2580fe28ca2ceda2cdb5446ea86ef1_1185fc17-19f2-4cc5-8544-b1e01a700220.webp?v=1714910481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2ce17c3e2580fe28ca2ceda2cdb5446ea86ef1_1185fc17-19f2-4cc5-8544-b1e01a700220.webp?v=1714910481","width":2000},{"alt":null,"id":23893198176355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8455d200af85d2ea6f1cf3bc5ed93d8eae623891_9772a897-9fa3-4aae-b8a0-1195623898ce.webp?v=1714910483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8455d200af85d2ea6f1cf3bc5ed93d8eae623891_9772a897-9fa3-4aae-b8a0-1195623898ce.webp?v=1714910483","width":2000},{"alt":null,"id":23893198700643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a74bc8b7f6a53c829067412e0bf15902a60abb_015da2bc-6445-437d-8132-b2e98e566953.webp?v=1714910486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a74bc8b7f6a53c829067412e0bf15902a60abb_015da2bc-6445-437d-8132-b2e98e566953.webp?v=1714910486","width":2000},{"alt":null,"id":23893199192163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488","width":2000},{"alt":null,"id":23893199716451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91361d0f1c94028d40bfece11e83e89933c70d3_a9faec7d-3f9a-45e8-8fb1-9af96e914be1.webp?v=1714910491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91361d0f1c94028d40bfece11e83e89933c70d3_a9faec7d-3f9a-45e8-8fb1-9af96e914be1.webp?v=1714910491","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910642049123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487855165539,"product_id":7414985031779,"position":10,"created_at":"2024-05-05T20:01:28+08:00","updated_at":"2024-05-05T20:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488","variant_ids":[41910642049123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - G本款 - 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":"MPB0118424-IV07","featured_media":{"alt":null,"id":23893199192163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910642049123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487855165539,"product_id":7414985031779,"position":10,"created_at":"2024-05-05T20:01:28+08:00","updated_at":"2024-05-05T20:01:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488","variant_ids":[41910642049123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - G本款 - 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":"MPB0118424-IV07","featured_media":{"alt":null,"id":23893199192163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e11e4def9146aecc53e88bd85382fb8e1c2ee_9eab7692-3716-4758-b2a1-227c02fff4d0.webp?v=1714910488"}},"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: "停產" }