$product = {"id":7411137347683,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-15-plus-mod-nx-magsafe-printable-ae05","description":null,"published_at":"2024-06-11T17:37:16+08:00","created_at":"2024-05-04T22:50:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 15 Plus","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":41895335264355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479619354723,"product_id":7411137347683,"position":10,"created_at":"2024-05-04T22:50:41+08:00","updated_at":"2024-05-04T22:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241","variant_ids":[41895335264355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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":"MPB0129624-AE05","featured_media":{"alt":null,"id":23884867174499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895335395427,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479618994275,"product_id":7411137347683,"position":9,"created_at":"2024-05-04T22:50:38+08:00","updated_at":"2024-05-04T22:50:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238","variant_ids":[41895335395427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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":"MPB0129657-AE05","featured_media":{"alt":null,"id":23884866912355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7225f42a8dc3b692669dc20fb22caab1a8d5551a_ca64a329-8bcf-4084-bca3-bc92acb77ef8.webp?v=1714834218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f8d0ba8b03e302d748552555850a95584bfd04_ae3b3fa5-4f4a-430a-a677-52aee804d462.webp?v=1714834221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f748e6cd7c91f1b701ae0a6ea67919b160cab_0e1d4060-ffc7-4326-8378-8addec405bb0.webp?v=1714834223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55bf1366aea984515c3babebc7e68ef42ce8c141_a0f58543-8786-4eb4-b08d-24fa4a270ac0.webp?v=1714834226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f2f5c28ae4fbc107788f6e8f65a17bd1efdb9d_ad770e57-379c-4026-8d88-36aab445f232.webp?v=1714834228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cab0b75a897f5b4d101c04dabe3cb290960ff0f_67c4fd59-c69f-49f7-b19a-7fc125a8abbf.webp?v=1714834231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb4ff886428db0e06f73d71d30698cd74183070_33f07cce-c23b-4f38-b5b0-5a889f813bb1.webp?v=1714834233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd44f011c88d63a01a160497efd660061a069eac_1631f678-8f1f-4672-b93e-85d484c13f3f.webp?v=1714834236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7225f42a8dc3b692669dc20fb22caab1a8d5551a_ca64a329-8bcf-4084-bca3-bc92acb77ef8.webp?v=1714834218","options":["color"],"media":[{"alt":null,"id":23884862226531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7225f42a8dc3b692669dc20fb22caab1a8d5551a_ca64a329-8bcf-4084-bca3-bc92acb77ef8.webp?v=1714834218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7225f42a8dc3b692669dc20fb22caab1a8d5551a_ca64a329-8bcf-4084-bca3-bc92acb77ef8.webp?v=1714834218","width":2000},{"alt":null,"id":23884862718051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f8d0ba8b03e302d748552555850a95584bfd04_ae3b3fa5-4f4a-430a-a677-52aee804d462.webp?v=1714834221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f8d0ba8b03e302d748552555850a95584bfd04_ae3b3fa5-4f4a-430a-a677-52aee804d462.webp?v=1714834221","width":2000},{"alt":null,"id":23884863373411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f748e6cd7c91f1b701ae0a6ea67919b160cab_0e1d4060-ffc7-4326-8378-8addec405bb0.webp?v=1714834223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f748e6cd7c91f1b701ae0a6ea67919b160cab_0e1d4060-ffc7-4326-8378-8addec405bb0.webp?v=1714834223","width":2000},{"alt":null,"id":23884863996003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55bf1366aea984515c3babebc7e68ef42ce8c141_a0f58543-8786-4eb4-b08d-24fa4a270ac0.webp?v=1714834226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55bf1366aea984515c3babebc7e68ef42ce8c141_a0f58543-8786-4eb4-b08d-24fa4a270ac0.webp?v=1714834226","width":2000},{"alt":null,"id":23884864815203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f2f5c28ae4fbc107788f6e8f65a17bd1efdb9d_ad770e57-379c-4026-8d88-36aab445f232.webp?v=1714834228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f2f5c28ae4fbc107788f6e8f65a17bd1efdb9d_ad770e57-379c-4026-8d88-36aab445f232.webp?v=1714834228","width":2000},{"alt":null,"id":23884865273955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cab0b75a897f5b4d101c04dabe3cb290960ff0f_67c4fd59-c69f-49f7-b19a-7fc125a8abbf.webp?v=1714834231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cab0b75a897f5b4d101c04dabe3cb290960ff0f_67c4fd59-c69f-49f7-b19a-7fc125a8abbf.webp?v=1714834231","width":2000},{"alt":null,"id":23884865896547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb4ff886428db0e06f73d71d30698cd74183070_33f07cce-c23b-4f38-b5b0-5a889f813bb1.webp?v=1714834233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb4ff886428db0e06f73d71d30698cd74183070_33f07cce-c23b-4f38-b5b0-5a889f813bb1.webp?v=1714834233","width":2000},{"alt":null,"id":23884866158691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd44f011c88d63a01a160497efd660061a069eac_1631f678-8f1f-4672-b93e-85d484c13f3f.webp?v=1714834236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd44f011c88d63a01a160497efd660061a069eac_1631f678-8f1f-4672-b93e-85d484c13f3f.webp?v=1714834236","width":2000},{"alt":null,"id":23884866912355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238","width":2000},{"alt":null,"id":23884867174499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895335264355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479619354723,"product_id":7411137347683,"position":10,"created_at":"2024-05-04T22:50:41+08:00","updated_at":"2024-05-04T22:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241","variant_ids":[41895335264355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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":"MPB0129624-AE05","featured_media":{"alt":null,"id":23884867174499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895335395427,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479618994275,"product_id":7411137347683,"position":9,"created_at":"2024-05-04T22:50:38+08:00","updated_at":"2024-05-04T22:50:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238","variant_ids":[41895335395427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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":"MPB0129657-AE05","featured_media":{"alt":null,"id":23884866912355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989c5d48dfd55b010fffe20f7e91765838de1dd_c4310b0a-99b1-41bb-afe2-ba50b98342bf.webp?v=1714834238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895335264355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479619354723,"product_id":7411137347683,"position":10,"created_at":"2024-05-04T22:50:41+08:00","updated_at":"2024-05-04T22:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241","variant_ids":[41895335264355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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":"MPB0129624-AE05","featured_media":{"alt":null,"id":23884867174499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e35a8c6d9b9a4d01a990ebe83eabe7b5ce6998a8_96d05ffc-0664-4f45-a213-834b4680dfd9.webp?v=1714834241"}},"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: "停產" }