$product = {"id":7411173687395,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-15-plus-mod-nx-magsafe-printable-ae06","description":null,"published_at":"2024-06-11T17:38:14+08:00","created_at":"2024-05-04T22:57:19+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":41895711277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479712612451,"product_id":7411173687395,"position":4,"created_at":"2024-05-04T22:57:28+08:00","updated_at":"2024-05-04T22:57:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648","variant_ids":[41895711277155]},"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-AE06","featured_media":{"alt":null,"id":23884960628835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895711440995,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479711662179,"product_id":7411173687395,"position":2,"created_at":"2024-05-04T22:57:24+08:00","updated_at":"2024-05-04T22:57:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644","variant_ids":[41895711440995]},"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-AE06","featured_media":{"alt":null,"id":23884959678563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6bb4d5a701dbd4c64a308582e287dff84bf34_a404249f-9cf2-4698-b524-2a72e9b7d4dc.webp?v=1714834641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70978333b467344eaac8eb8a8a6e48d604ba77ae_1c9b1510-f28f-4279-ba94-16215d934611.webp?v=1714834646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8bf2e47b5e3bee8c0eb6069e18cb23cc7b700f_f36c34af-f0a7-4770-bf67-c20bd0944892.webp?v=1714834651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d4e490d3c424eab7df66318545738ac6eb5a32_d885c15d-b199-4ff1-8241-a1f39abe5c60.webp?v=1714834653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada4aaf1c10c0a50e65e86e6dd43fc29007cf135_ac585cda-c486-4a50-af6f-b75a48b579b7.webp?v=1714834655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8e0fbaa39dbe3be5fb320f765caab83f2eea7_12232560-6bf7-49ea-b80f-8832c0d8115b.webp?v=1714834657","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6ddc41d7f95540bdfdb571f31aa9a4bd15d71_2b2b53b8-63d3-4f17-af96-e38b2b2dcf1f.webp?v=1714834660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a68b36279e9c243e9c33c05fb8f7ae92d55939_45288574-0148-4dd7-86cd-172c16bd19eb.webp?v=1714834662"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6bb4d5a701dbd4c64a308582e287dff84bf34_a404249f-9cf2-4698-b524-2a72e9b7d4dc.webp?v=1714834641","options":["color"],"media":[{"alt":null,"id":23884959285347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6bb4d5a701dbd4c64a308582e287dff84bf34_a404249f-9cf2-4698-b524-2a72e9b7d4dc.webp?v=1714834641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6bb4d5a701dbd4c64a308582e287dff84bf34_a404249f-9cf2-4698-b524-2a72e9b7d4dc.webp?v=1714834641","width":2000},{"alt":null,"id":23884959678563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644","width":2000},{"alt":null,"id":23884960104547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70978333b467344eaac8eb8a8a6e48d604ba77ae_1c9b1510-f28f-4279-ba94-16215d934611.webp?v=1714834646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70978333b467344eaac8eb8a8a6e48d604ba77ae_1c9b1510-f28f-4279-ba94-16215d934611.webp?v=1714834646","width":2000},{"alt":null,"id":23884960628835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648","width":2000},{"alt":null,"id":23884960989283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8bf2e47b5e3bee8c0eb6069e18cb23cc7b700f_f36c34af-f0a7-4770-bf67-c20bd0944892.webp?v=1714834651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8bf2e47b5e3bee8c0eb6069e18cb23cc7b700f_f36c34af-f0a7-4770-bf67-c20bd0944892.webp?v=1714834651","width":2000},{"alt":null,"id":23884961513571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d4e490d3c424eab7df66318545738ac6eb5a32_d885c15d-b199-4ff1-8241-a1f39abe5c60.webp?v=1714834653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d4e490d3c424eab7df66318545738ac6eb5a32_d885c15d-b199-4ff1-8241-a1f39abe5c60.webp?v=1714834653","width":2000},{"alt":null,"id":23884961808483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada4aaf1c10c0a50e65e86e6dd43fc29007cf135_ac585cda-c486-4a50-af6f-b75a48b579b7.webp?v=1714834655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada4aaf1c10c0a50e65e86e6dd43fc29007cf135_ac585cda-c486-4a50-af6f-b75a48b579b7.webp?v=1714834655","width":2000},{"alt":null,"id":23884962267235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8e0fbaa39dbe3be5fb320f765caab83f2eea7_12232560-6bf7-49ea-b80f-8832c0d8115b.webp?v=1714834657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/def8e0fbaa39dbe3be5fb320f765caab83f2eea7_12232560-6bf7-49ea-b80f-8832c0d8115b.webp?v=1714834657","width":2000},{"alt":null,"id":23884962824291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6ddc41d7f95540bdfdb571f31aa9a4bd15d71_2b2b53b8-63d3-4f17-af96-e38b2b2dcf1f.webp?v=1714834660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6ddc41d7f95540bdfdb571f31aa9a4bd15d71_2b2b53b8-63d3-4f17-af96-e38b2b2dcf1f.webp?v=1714834660","width":2000},{"alt":null,"id":23884963151971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a68b36279e9c243e9c33c05fb8f7ae92d55939_45288574-0148-4dd7-86cd-172c16bd19eb.webp?v=1714834662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a68b36279e9c243e9c33c05fb8f7ae92d55939_45288574-0148-4dd7-86cd-172c16bd19eb.webp?v=1714834662","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895711277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479712612451,"product_id":7411173687395,"position":4,"created_at":"2024-05-04T22:57:28+08:00","updated_at":"2024-05-04T22:57:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648","variant_ids":[41895711277155]},"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-AE06","featured_media":{"alt":null,"id":23884960628835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895711440995,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479711662179,"product_id":7411173687395,"position":2,"created_at":"2024-05-04T22:57:24+08:00","updated_at":"2024-05-04T22:57:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644","variant_ids":[41895711440995]},"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-AE06","featured_media":{"alt":null,"id":23884959678563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b845b221c186b7e3f5576edf8e75019d3e26af_494576ac-7ce8-4204-b1b8-73c30aa44cb8.webp?v=1714834644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895711277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479712612451,"product_id":7411173687395,"position":4,"created_at":"2024-05-04T22:57:28+08:00","updated_at":"2024-05-04T22:57:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648","variant_ids":[41895711277155]},"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-AE06","featured_media":{"alt":null,"id":23884960628835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778f93d325ef38cc731ce477f7f3d5f8b2f315ee_6e1652ad-4359-425f-b446-84d8e56a8cff.webp?v=1714834648"}},"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: "停產" }