$product = {"id":7411031834723,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火)","handle":"iphone-15-plus-mod-nx-magsafe-printable-af02","description":null,"published_at":"2024-06-11T17:34:31+08:00","created_at":"2024-05-04T22:30:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41894292521059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479335649379,"product_id":7411031834723,"position":6,"created_at":"2024-05-04T22:30:27+08:00","updated_at":"2024-05-04T22:30:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027","variant_ids":[41894292521059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火) - 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":"MPB0129624-AF02","featured_media":{"alt":null,"id":23884582879331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894292652131,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479334600803,"product_id":7411031834723,"position":5,"created_at":"2024-05-04T22:30:23+08:00","updated_at":"2024-05-04T22:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023","variant_ids":[41894292652131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火) - 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":"MPB0129657-AF02","featured_media":{"alt":null,"id":23884581830755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553b585b5d406ba13990c859b41482b95c73cc_8838291e-6a9f-442d-b7d3-ac791ae57060.webp?v=1714833013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ffb9bbdb2bfe881642ef10cacdbb29b32a833d_d1f7a974-a23e-4fcc-9172-25a7db6a8190.webp?v=1714833015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b23015340f48ef04c58d2d9755d23805cea3512_13ca98f1-b269-455e-baf8-0eb712d42a7a.webp?v=1714833018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c4b5f357dae44abc8b9473beb6fc68ffbb9958_eac931ad-96ad-4bc0-a170-f86a2c2063c2.webp?v=1714833020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed50243ce76cdf3c0b6b0615ab02d385668d1a87_3455bf7c-54d7-45a7-ae28-714229eab819.webp?v=1714833030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3adb5110754fe623829d54a2e778731c2bc4a40_052b603a-836d-4904-a807-4f9ec8b68207.webp?v=1714833032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f143c8c4aed622a5af17ddbb3d032f19633550_a658282f-a1f3-4a16-92d0-931e5a093835.webp?v=1714833035"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553b585b5d406ba13990c859b41482b95c73cc_8838291e-6a9f-442d-b7d3-ac791ae57060.webp?v=1714833013","options":["color"],"media":[{"alt":null,"id":23884580356195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553b585b5d406ba13990c859b41482b95c73cc_8838291e-6a9f-442d-b7d3-ac791ae57060.webp?v=1714833013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553b585b5d406ba13990c859b41482b95c73cc_8838291e-6a9f-442d-b7d3-ac791ae57060.webp?v=1714833013","width":2000},{"alt":null,"id":23884580716643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ffb9bbdb2bfe881642ef10cacdbb29b32a833d_d1f7a974-a23e-4fcc-9172-25a7db6a8190.webp?v=1714833015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ffb9bbdb2bfe881642ef10cacdbb29b32a833d_d1f7a974-a23e-4fcc-9172-25a7db6a8190.webp?v=1714833015","width":2000},{"alt":null,"id":23884580913251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b23015340f48ef04c58d2d9755d23805cea3512_13ca98f1-b269-455e-baf8-0eb712d42a7a.webp?v=1714833018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b23015340f48ef04c58d2d9755d23805cea3512_13ca98f1-b269-455e-baf8-0eb712d42a7a.webp?v=1714833018","width":2000},{"alt":null,"id":23884581306467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c4b5f357dae44abc8b9473beb6fc68ffbb9958_eac931ad-96ad-4bc0-a170-f86a2c2063c2.webp?v=1714833020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c4b5f357dae44abc8b9473beb6fc68ffbb9958_eac931ad-96ad-4bc0-a170-f86a2c2063c2.webp?v=1714833020","width":2000},{"alt":null,"id":23884581830755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023","width":2000},{"alt":null,"id":23884582879331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027","width":2000},{"alt":null,"id":23884583403619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed50243ce76cdf3c0b6b0615ab02d385668d1a87_3455bf7c-54d7-45a7-ae28-714229eab819.webp?v=1714833030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed50243ce76cdf3c0b6b0615ab02d385668d1a87_3455bf7c-54d7-45a7-ae28-714229eab819.webp?v=1714833030","width":2000},{"alt":null,"id":23884584058979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3adb5110754fe623829d54a2e778731c2bc4a40_052b603a-836d-4904-a807-4f9ec8b68207.webp?v=1714833032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3adb5110754fe623829d54a2e778731c2bc4a40_052b603a-836d-4904-a807-4f9ec8b68207.webp?v=1714833032","width":2000},{"alt":null,"id":23884584484963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f143c8c4aed622a5af17ddbb3d032f19633550_a658282f-a1f3-4a16-92d0-931e5a093835.webp?v=1714833035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f143c8c4aed622a5af17ddbb3d032f19633550_a658282f-a1f3-4a16-92d0-931e5a093835.webp?v=1714833035","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894292521059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479335649379,"product_id":7411031834723,"position":6,"created_at":"2024-05-04T22:30:27+08:00","updated_at":"2024-05-04T22:30:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027","variant_ids":[41894292521059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火) - 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":"MPB0129624-AF02","featured_media":{"alt":null,"id":23884582879331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894292652131,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479334600803,"product_id":7411031834723,"position":5,"created_at":"2024-05-04T22:30:23+08:00","updated_at":"2024-05-04T22:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023","variant_ids":[41894292652131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火) - 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":"MPB0129657-AF02","featured_media":{"alt":null,"id":23884581830755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1ff494efea855848b42b496cb38009e21840_afa90e9f-b2ac-4d80-be79-c523762eab63.webp?v=1714833023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894292521059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479335649379,"product_id":7411031834723,"position":6,"created_at":"2024-05-04T22:30:27+08:00","updated_at":"2024-05-04T22:30:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027","variant_ids":[41894292521059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(澳洲叢林大火) - 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":"MPB0129624-AF02","featured_media":{"alt":null,"id":23884582879331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98974083a907aa6faf93c390195a0c39f1dedcf7_3cb1c46e-ae59-473f-ad79-cedada8aee71.webp?v=1714833027"}},"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: "停產" }