$product = {"id":7415075012707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 兔子電腦","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-mw06","description":null,"published_at":"2024-06-11T17:57:17+08:00","created_at":"2024-05-05T20:17:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 12 pro max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41911599136867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31488091095139,"product_id":7415075012707,"position":7,"created_at":"2024-05-05T20:18:12+08:00","updated_at":"2024-05-05T20:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492","variant_ids":[41911599136867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 兔子電腦 - 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":"MPB0118724-MW06","featured_media":{"alt":null,"id":23893435580515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae6d659ad60af6f1c15c1103e41288b58247194_660c4ddc-fb25-40b7-8a84-c3a0e0c80254.webp?v=1714911478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e7b063c1e4b2bbd6f178fb4a66eb2db24d3b98_5506d257-85f2-4d42-ad9a-2e1fbc953d69.webp?v=1714911481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c403f7ba00b62e03c3655547e57fac3f0c6e361_458daace-01c4-4c37-afe3-30da8ee6b07e.webp?v=1714911483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03de50074ce97b9fcd881b7cec3e16ad8ded86_cfcb1ae0-6492-4fd5-a351-3e4479486005.webp?v=1714911485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fb9da1ee86215ad1075cf84f4f3e6c391e2b27_c1f1cd13-6cc9-4690-9e70-860c53512602.webp?v=1714911488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a85599e3bf7a07354b7bead4f17cb90a90265_6d48ccfe-99d6-4e94-a16e-f8ef6fffff44.webp?v=1714911490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1106a7e1a5cd40e36fa126e9061d4f608c9d402_a2e9dac7-62bb-42aa-8663-fe79fe65abfe.webp?v=1714911495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0418c9d9983a2a1a341e4381b871e80f6139936d_13618889-874b-46d8-a94f-a09b128a7096.webp?v=1714911497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5881e9d3dad5e9f90c609086f866566c931cb77f_c654eae6-0e6c-497f-9d57-7cde47c3e952.webp?v=1714911499"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae6d659ad60af6f1c15c1103e41288b58247194_660c4ddc-fb25-40b7-8a84-c3a0e0c80254.webp?v=1714911478","options":["color"],"media":[{"alt":null,"id":23893432369251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae6d659ad60af6f1c15c1103e41288b58247194_660c4ddc-fb25-40b7-8a84-c3a0e0c80254.webp?v=1714911478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae6d659ad60af6f1c15c1103e41288b58247194_660c4ddc-fb25-40b7-8a84-c3a0e0c80254.webp?v=1714911478","width":2000},{"alt":null,"id":23893432828003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e7b063c1e4b2bbd6f178fb4a66eb2db24d3b98_5506d257-85f2-4d42-ad9a-2e1fbc953d69.webp?v=1714911481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e7b063c1e4b2bbd6f178fb4a66eb2db24d3b98_5506d257-85f2-4d42-ad9a-2e1fbc953d69.webp?v=1714911481","width":2000},{"alt":null,"id":23893433352291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c403f7ba00b62e03c3655547e57fac3f0c6e361_458daace-01c4-4c37-afe3-30da8ee6b07e.webp?v=1714911483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c403f7ba00b62e03c3655547e57fac3f0c6e361_458daace-01c4-4c37-afe3-30da8ee6b07e.webp?v=1714911483","width":2000},{"alt":null,"id":23893434335331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03de50074ce97b9fcd881b7cec3e16ad8ded86_cfcb1ae0-6492-4fd5-a351-3e4479486005.webp?v=1714911485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03de50074ce97b9fcd881b7cec3e16ad8ded86_cfcb1ae0-6492-4fd5-a351-3e4479486005.webp?v=1714911485","width":2000},{"alt":null,"id":23893434663011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fb9da1ee86215ad1075cf84f4f3e6c391e2b27_c1f1cd13-6cc9-4690-9e70-860c53512602.webp?v=1714911488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fb9da1ee86215ad1075cf84f4f3e6c391e2b27_c1f1cd13-6cc9-4690-9e70-860c53512602.webp?v=1714911488","width":2000},{"alt":null,"id":23893435285603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a85599e3bf7a07354b7bead4f17cb90a90265_6d48ccfe-99d6-4e94-a16e-f8ef6fffff44.webp?v=1714911490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92a85599e3bf7a07354b7bead4f17cb90a90265_6d48ccfe-99d6-4e94-a16e-f8ef6fffff44.webp?v=1714911490","width":2000},{"alt":null,"id":23893435580515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492","width":2000},{"alt":null,"id":23893436694627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1106a7e1a5cd40e36fa126e9061d4f608c9d402_a2e9dac7-62bb-42aa-8663-fe79fe65abfe.webp?v=1714911495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1106a7e1a5cd40e36fa126e9061d4f608c9d402_a2e9dac7-62bb-42aa-8663-fe79fe65abfe.webp?v=1714911495","width":2000},{"alt":null,"id":23893437153379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0418c9d9983a2a1a341e4381b871e80f6139936d_13618889-874b-46d8-a94f-a09b128a7096.webp?v=1714911497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0418c9d9983a2a1a341e4381b871e80f6139936d_13618889-874b-46d8-a94f-a09b128a7096.webp?v=1714911497","width":2000},{"alt":null,"id":23893437612131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5881e9d3dad5e9f90c609086f866566c931cb77f_c654eae6-0e6c-497f-9d57-7cde47c3e952.webp?v=1714911499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5881e9d3dad5e9f90c609086f866566c931cb77f_c654eae6-0e6c-497f-9d57-7cde47c3e952.webp?v=1714911499","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911599136867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31488091095139,"product_id":7415075012707,"position":7,"created_at":"2024-05-05T20:18:12+08:00","updated_at":"2024-05-05T20:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492","variant_ids":[41911599136867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 兔子電腦 - 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":"MPB0118724-MW06","featured_media":{"alt":null,"id":23893435580515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911599136867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31488091095139,"product_id":7415075012707,"position":7,"created_at":"2024-05-05T20:18:12+08:00","updated_at":"2024-05-05T20:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492","variant_ids":[41911599136867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 兔子電腦 - 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":"MPB0118724-MW06","featured_media":{"alt":null,"id":23893435580515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750512d0e9e9cb7bf460ee8ddea2b086ab710d29_80ca0a64-6a6b-485e-8ec4-b6e477a1f49e.webp?v=1714911492"}},"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: "停產" }