$product = {"id":7414927523939,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭狗狗","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-hq02","description":null,"published_at":"2024-06-11T17:53:17+08:00","created_at":"2024-05-05T19:50:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41910020112483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487705415779,"product_id":7414927523939,"position":7,"created_at":"2024-05-05T19:50:48+08:00","updated_at":"2024-05-05T19:50:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848","variant_ids":[41910020112483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭狗狗 - 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-HQ02","featured_media":{"alt":null,"id":23893049344099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767a982ccd86df70d5fb649d47dcfd5f8fc4968_82adfb34-6015-4c62-9e74-56861c73b3a5.webp?v=1714909834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea0b87b7d5ad86c79e090c30144c5bcf029c540_5d090694-5736-4af5-817f-d7dbd1d5d9ba.webp?v=1714909836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53efa989a29584bbc74ef7ade2b80790c0268e18_fffd36c7-c924-4f6e-aea9-fd2efcc4d223.webp?v=1714909838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdd12ead6a8194a9a61b88755276b57dad5aec2_bd965d54-97f5-4ed7-b74c-7dc81dd9c9c3.webp?v=1714909841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b61ee4df3224560fa454eab0026f88404ef880_b271fcc2-19dc-419a-9303-d03763b4284f.webp?v=1714909843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb91982f0f72f4052ce477f6aaae7184da6fb0a2_ae8c8759-dde9-4a36-ab2d-4f726b5d0adb.webp?v=1714909846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c223c565322aedddff7f527d24d09610ff743792_f8009ca4-5980-4f70-9aaf-88c55d1b7c18.webp?v=1714909850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafdd697125e0f8c9b1df7841b5db1784e8bdcc9_5bce0f75-99a4-4ce5-acb3-d6bbbc57b8b5.webp?v=1714909853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a45cdbcb73b5086d393e939c5ddab8141d9a7bd_735efc47-0c07-495b-bbe3-a10eaf6a4feb.webp?v=1714909855"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767a982ccd86df70d5fb649d47dcfd5f8fc4968_82adfb34-6015-4c62-9e74-56861c73b3a5.webp?v=1714909834","options":["color"],"media":[{"alt":null,"id":23893045936227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767a982ccd86df70d5fb649d47dcfd5f8fc4968_82adfb34-6015-4c62-9e74-56861c73b3a5.webp?v=1714909834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767a982ccd86df70d5fb649d47dcfd5f8fc4968_82adfb34-6015-4c62-9e74-56861c73b3a5.webp?v=1714909834","width":2000},{"alt":null,"id":23893046296675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea0b87b7d5ad86c79e090c30144c5bcf029c540_5d090694-5736-4af5-817f-d7dbd1d5d9ba.webp?v=1714909836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea0b87b7d5ad86c79e090c30144c5bcf029c540_5d090694-5736-4af5-817f-d7dbd1d5d9ba.webp?v=1714909836","width":2000},{"alt":null,"id":23893046853731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53efa989a29584bbc74ef7ade2b80790c0268e18_fffd36c7-c924-4f6e-aea9-fd2efcc4d223.webp?v=1714909838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53efa989a29584bbc74ef7ade2b80790c0268e18_fffd36c7-c924-4f6e-aea9-fd2efcc4d223.webp?v=1714909838","width":2000},{"alt":null,"id":23893047378019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdd12ead6a8194a9a61b88755276b57dad5aec2_bd965d54-97f5-4ed7-b74c-7dc81dd9c9c3.webp?v=1714909841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdd12ead6a8194a9a61b88755276b57dad5aec2_bd965d54-97f5-4ed7-b74c-7dc81dd9c9c3.webp?v=1714909841","width":2000},{"alt":null,"id":23893048426595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b61ee4df3224560fa454eab0026f88404ef880_b271fcc2-19dc-419a-9303-d03763b4284f.webp?v=1714909843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b61ee4df3224560fa454eab0026f88404ef880_b271fcc2-19dc-419a-9303-d03763b4284f.webp?v=1714909843","width":2000},{"alt":null,"id":23893048787043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb91982f0f72f4052ce477f6aaae7184da6fb0a2_ae8c8759-dde9-4a36-ab2d-4f726b5d0adb.webp?v=1714909846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb91982f0f72f4052ce477f6aaae7184da6fb0a2_ae8c8759-dde9-4a36-ab2d-4f726b5d0adb.webp?v=1714909846","width":2000},{"alt":null,"id":23893049344099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848","width":2000},{"alt":null,"id":23893049639011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c223c565322aedddff7f527d24d09610ff743792_f8009ca4-5980-4f70-9aaf-88c55d1b7c18.webp?v=1714909850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c223c565322aedddff7f527d24d09610ff743792_f8009ca4-5980-4f70-9aaf-88c55d1b7c18.webp?v=1714909850","width":2000},{"alt":null,"id":23893050294371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafdd697125e0f8c9b1df7841b5db1784e8bdcc9_5bce0f75-99a4-4ce5-acb3-d6bbbc57b8b5.webp?v=1714909853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafdd697125e0f8c9b1df7841b5db1784e8bdcc9_5bce0f75-99a4-4ce5-acb3-d6bbbc57b8b5.webp?v=1714909853","width":2000},{"alt":null,"id":23893050589283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a45cdbcb73b5086d393e939c5ddab8141d9a7bd_735efc47-0c07-495b-bbe3-a10eaf6a4feb.webp?v=1714909855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a45cdbcb73b5086d393e939c5ddab8141d9a7bd_735efc47-0c07-495b-bbe3-a10eaf6a4feb.webp?v=1714909855","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910020112483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487705415779,"product_id":7414927523939,"position":7,"created_at":"2024-05-05T19:50:48+08:00","updated_at":"2024-05-05T19:50:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848","variant_ids":[41910020112483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭狗狗 - 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-HQ02","featured_media":{"alt":null,"id":23893049344099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910020112483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487705415779,"product_id":7414927523939,"position":7,"created_at":"2024-05-05T19:50:48+08:00","updated_at":"2024-05-05T19:50:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848","variant_ids":[41910020112483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭狗狗 - 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-HQ02","featured_media":{"alt":null,"id":23893049344099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d11081c42b306e153e29c135c284b592c011b7_9c7c769b-d184-4152-b618-d6682679e821.webp?v=1714909848"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }