$product = {"id":7410997559395,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(花蓮)","handle":"iphone-15-plus-mod-nx-magsafe-printable-ae02","description":null,"published_at":"2024-06-11T17:33:36+08:00","created_at":"2024-05-04T22:23:48+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":41893952684131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479245865059,"product_id":7410997559395,"position":3,"created_at":"2024-05-04T22:23:55+08:00","updated_at":"2024-05-04T22:23:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635","variant_ids":[41893952684131]},"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-AE02","featured_media":{"alt":null,"id":23884493029475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893952847971,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479247077475,"product_id":7410997559395,"position":5,"created_at":"2024-05-04T22:24:00+08:00","updated_at":"2024-05-04T22:24:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640","variant_ids":[41893952847971]},"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-AE02","featured_media":{"alt":null,"id":23884494307427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db449fff083820971dd748232cefa6837de452_29346bab-4b9e-4b27-b44b-5979f1508c71.webp?v=1714832630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29482fd2f334f5a908b68e910aad727503efc6c5_ff09cae1-f35b-428a-9e23-92c3024fb60c.webp?v=1714832633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e30b124799ee5a13cfab624df5de08aeb92a00_b0b649bc-32e2-4442-b0a2-f433177979cb.webp?v=1714832637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c45f3740e0dd60762b89a18621d1e38ca7a953_7c2e1be7-a144-4e29-84ae-37f81d2dedaf.webp?v=1714832642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c4fe29c378cb3885601fd298ba0517305c8b2d_a45f64c1-0e94-49a9-bb80-cbe21a4708b9.webp?v=1714832645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fddaff176b4d846a11f54599ece1d6cbfabf40_57828b2b-ccf6-464d-8f45-e4ace72096f7.webp?v=1714832647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0662302bfb25196d07618cf4ca0108be6fbaadea_da8b2fd3-a56e-4f9a-a5a2-cda8e0d592b6.webp?v=1714832649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4c6441679d1c0244e035116caa33b0fb86f1e2_9a522122-256a-4def-853a-8256ebacc08c.webp?v=1714832651"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db449fff083820971dd748232cefa6837de452_29346bab-4b9e-4b27-b44b-5979f1508c71.webp?v=1714832630","options":["color"],"media":[{"alt":null,"id":23884492013667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db449fff083820971dd748232cefa6837de452_29346bab-4b9e-4b27-b44b-5979f1508c71.webp?v=1714832630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db449fff083820971dd748232cefa6837de452_29346bab-4b9e-4b27-b44b-5979f1508c71.webp?v=1714832630","width":2000},{"alt":null,"id":23884492505187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29482fd2f334f5a908b68e910aad727503efc6c5_ff09cae1-f35b-428a-9e23-92c3024fb60c.webp?v=1714832633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29482fd2f334f5a908b68e910aad727503efc6c5_ff09cae1-f35b-428a-9e23-92c3024fb60c.webp?v=1714832633","width":2000},{"alt":null,"id":23884493029475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635","width":2000},{"alt":null,"id":23884493750371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e30b124799ee5a13cfab624df5de08aeb92a00_b0b649bc-32e2-4442-b0a2-f433177979cb.webp?v=1714832637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e30b124799ee5a13cfab624df5de08aeb92a00_b0b649bc-32e2-4442-b0a2-f433177979cb.webp?v=1714832637","width":2000},{"alt":null,"id":23884494307427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640","width":2000},{"alt":null,"id":23884494798947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c45f3740e0dd60762b89a18621d1e38ca7a953_7c2e1be7-a144-4e29-84ae-37f81d2dedaf.webp?v=1714832642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c45f3740e0dd60762b89a18621d1e38ca7a953_7c2e1be7-a144-4e29-84ae-37f81d2dedaf.webp?v=1714832642","width":2000},{"alt":null,"id":23884495487075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c4fe29c378cb3885601fd298ba0517305c8b2d_a45f64c1-0e94-49a9-bb80-cbe21a4708b9.webp?v=1714832645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c4fe29c378cb3885601fd298ba0517305c8b2d_a45f64c1-0e94-49a9-bb80-cbe21a4708b9.webp?v=1714832645","width":2000},{"alt":null,"id":23884495945827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fddaff176b4d846a11f54599ece1d6cbfabf40_57828b2b-ccf6-464d-8f45-e4ace72096f7.webp?v=1714832647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fddaff176b4d846a11f54599ece1d6cbfabf40_57828b2b-ccf6-464d-8f45-e4ace72096f7.webp?v=1714832647","width":2000},{"alt":null,"id":23884496470115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0662302bfb25196d07618cf4ca0108be6fbaadea_da8b2fd3-a56e-4f9a-a5a2-cda8e0d592b6.webp?v=1714832649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0662302bfb25196d07618cf4ca0108be6fbaadea_da8b2fd3-a56e-4f9a-a5a2-cda8e0d592b6.webp?v=1714832649","width":2000},{"alt":null,"id":23884497420387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4c6441679d1c0244e035116caa33b0fb86f1e2_9a522122-256a-4def-853a-8256ebacc08c.webp?v=1714832651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4c6441679d1c0244e035116caa33b0fb86f1e2_9a522122-256a-4def-853a-8256ebacc08c.webp?v=1714832651","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41893952684131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479245865059,"product_id":7410997559395,"position":3,"created_at":"2024-05-04T22:23:55+08:00","updated_at":"2024-05-04T22:23:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635","variant_ids":[41893952684131]},"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-AE02","featured_media":{"alt":null,"id":23884493029475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893952847971,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479247077475,"product_id":7410997559395,"position":5,"created_at":"2024-05-04T22:24:00+08:00","updated_at":"2024-05-04T22:24:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640","variant_ids":[41893952847971]},"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-AE02","featured_media":{"alt":null,"id":23884494307427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624678e2fc2889eba9a629ff4ef232b0ee7b390a_711dde61-ed7b-44b0-b878-0122c906468d.webp?v=1714832640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41893952684131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479245865059,"product_id":7410997559395,"position":3,"created_at":"2024-05-04T22:23:55+08:00","updated_at":"2024-05-04T22:23:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635","variant_ids":[41893952684131]},"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-AE02","featured_media":{"alt":null,"id":23884493029475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37bfd8255b34ca1c032d3c81e2a87271157189f9_9f122d00-03bb-44a5-aa0f-0fa6ac086139.webp?v=1714832635"}},"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: "停產" }