$product = {"id":7414079193187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb69","description":null,"published_at":"2024-06-11T17:48:47+08:00","created_at":"2024-05-05T14:08:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41903950757987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632596579,"product_id":7414079193187,"position":7,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336","variant_ids":[41903950757987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB69","featured_media":{"alt":null,"id":23889927733347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903951118435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31484634071139,"product_id":7414079193187,"position":8,"created_at":"2024-05-05T14:08:59+08:00","updated_at":"2024-05-05T14:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339","variant_ids":[41903951118435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB69","featured_media":{"alt":null,"id":23889929273443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094a48347e793dd57df40f8442e3c84950c4adb1_e405017d-c848-49e1-b1d4-375ce011f39b.webp?v=1714889320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92cef4fc9cf5075322c002c985a189e886ec71f_9f19002c-ba60-42cb-a1f1-b04dd00a0311.webp?v=1714889323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155c22fec52205dbbdca3794f37fc8be0294ce09_d53c3e4d-de3e-41b4-8382-60d905929021.webp?v=1714889327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb3637ab392c670bd7d69c44bf4ed9c988d4f8_c5da27e4-0c69-491c-a27c-f845e7e79524.webp?v=1714889330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e1cfb2205101feab6ae03bacf7bbca86e78119_01b3f87b-c9bb-4fc8-8806-1eadbada37c4.webp?v=1714889332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f874f78b155dcf157c6902c9f57428d0819adc_bfa53beb-3d39-41e8-a21f-f6111b62523e.webp?v=1714889334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1885bf68f2f039965e8251cd94d8af3c6fb1264_e0977fc8-07b2-4a4f-9bd9-2005f9a38b27.webp?v=1714889341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247d64756c4bd7e76d116b5028d77d2882428c2d_d6797cb4-6415-49a1-8b1a-3b67fc6d7d24.webp?v=1714889344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46bf128fd1dbef3af07bc83836de1c26df37f3_7e01b464-eef4-4059-adc2-b34ab6d97c6e.webp?v=1714889346"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094a48347e793dd57df40f8442e3c84950c4adb1_e405017d-c848-49e1-b1d4-375ce011f39b.webp?v=1714889320","options":["color"],"media":[{"alt":null,"id":23889918001251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094a48347e793dd57df40f8442e3c84950c4adb1_e405017d-c848-49e1-b1d4-375ce011f39b.webp?v=1714889320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094a48347e793dd57df40f8442e3c84950c4adb1_e405017d-c848-49e1-b1d4-375ce011f39b.webp?v=1714889320","width":2000},{"alt":null,"id":23889920163939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92cef4fc9cf5075322c002c985a189e886ec71f_9f19002c-ba60-42cb-a1f1-b04dd00a0311.webp?v=1714889323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92cef4fc9cf5075322c002c985a189e886ec71f_9f19002c-ba60-42cb-a1f1-b04dd00a0311.webp?v=1714889323","width":2000},{"alt":null,"id":23889922064483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155c22fec52205dbbdca3794f37fc8be0294ce09_d53c3e4d-de3e-41b4-8382-60d905929021.webp?v=1714889327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155c22fec52205dbbdca3794f37fc8be0294ce09_d53c3e4d-de3e-41b4-8382-60d905929021.webp?v=1714889327","width":2000},{"alt":null,"id":23889923604579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb3637ab392c670bd7d69c44bf4ed9c988d4f8_c5da27e4-0c69-491c-a27c-f845e7e79524.webp?v=1714889330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb3637ab392c670bd7d69c44bf4ed9c988d4f8_c5da27e4-0c69-491c-a27c-f845e7e79524.webp?v=1714889330","width":2000},{"alt":null,"id":23889924948067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e1cfb2205101feab6ae03bacf7bbca86e78119_01b3f87b-c9bb-4fc8-8806-1eadbada37c4.webp?v=1714889332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e1cfb2205101feab6ae03bacf7bbca86e78119_01b3f87b-c9bb-4fc8-8806-1eadbada37c4.webp?v=1714889332","width":2000},{"alt":null,"id":23889926291555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f874f78b155dcf157c6902c9f57428d0819adc_bfa53beb-3d39-41e8-a21f-f6111b62523e.webp?v=1714889334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f874f78b155dcf157c6902c9f57428d0819adc_bfa53beb-3d39-41e8-a21f-f6111b62523e.webp?v=1714889334","width":2000},{"alt":null,"id":23889927733347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336","width":2000},{"alt":null,"id":23889929273443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339","width":2000},{"alt":null,"id":23889931042915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1885bf68f2f039965e8251cd94d8af3c6fb1264_e0977fc8-07b2-4a4f-9bd9-2005f9a38b27.webp?v=1714889341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1885bf68f2f039965e8251cd94d8af3c6fb1264_e0977fc8-07b2-4a4f-9bd9-2005f9a38b27.webp?v=1714889341","width":2000},{"alt":null,"id":23889934221411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247d64756c4bd7e76d116b5028d77d2882428c2d_d6797cb4-6415-49a1-8b1a-3b67fc6d7d24.webp?v=1714889344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247d64756c4bd7e76d116b5028d77d2882428c2d_d6797cb4-6415-49a1-8b1a-3b67fc6d7d24.webp?v=1714889344","width":2000},{"alt":null,"id":23889936154723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46bf128fd1dbef3af07bc83836de1c26df37f3_7e01b464-eef4-4059-adc2-b34ab6d97c6e.webp?v=1714889346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46bf128fd1dbef3af07bc83836de1c26df37f3_7e01b464-eef4-4059-adc2-b34ab6d97c6e.webp?v=1714889346","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903950757987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632596579,"product_id":7414079193187,"position":7,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336","variant_ids":[41903950757987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB69","featured_media":{"alt":null,"id":23889927733347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903951118435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31484634071139,"product_id":7414079193187,"position":8,"created_at":"2024-05-05T14:08:59+08:00","updated_at":"2024-05-05T14:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339","variant_ids":[41903951118435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB69","featured_media":{"alt":null,"id":23889929273443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a9564163c67e371a6c822e5cf3f08cb77e13e2_7101d611-a2d2-4a5a-a049-071128044177.webp?v=1714889339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903950757987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632596579,"product_id":7414079193187,"position":7,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336","variant_ids":[41903950757987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB69","featured_media":{"alt":null,"id":23889927733347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bb751fb60894934d6d330ea419703608e3d27b_2bed4784-a5b5-4feb-83ea-87a93198723f.webp?v=1714889336"}},"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: "停產" }