$product = {"id":7411179159651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha!","handle":"iphone-15-plus-mod-nx-magsafe-printable-yf08","description":null,"published_at":"2024-06-11T17:38:23+08:00","created_at":"2024-05-04T22:58:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41895765278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479726342243,"product_id":7411179159651,"position":5,"created_at":"2024-05-04T22:58:30+08:00","updated_at":"2024-05-04T22:58:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710","variant_ids":[41895765278819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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-YF08","featured_media":{"alt":null,"id":23884974424163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895765409891,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479727161443,"product_id":7411179159651,"position":6,"created_at":"2024-05-04T22:58:35+08:00","updated_at":"2024-05-04T22:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715","variant_ids":[41895765409891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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-YF08","featured_media":{"alt":null,"id":23884975243363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedccf4edc2908783fd6fece40fe8c739f879a65_c6932c9f-361d-4563-a528-b7de3fa00bed.webp?v=1714834701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc9c4f0df27677bb22290c4a218f7ba6fc03d3d_3d29bfac-a236-401b-b9a6-a4d45f963ae0.webp?v=1714834703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442cbc7e8a9daa691872dfab12ca449a2a76e28_5007dba7-c775-4377-90af-a56fdd02daaf.webp?v=1714834706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23b0d2143ba661cc2d7a28456fc7bcd9bfd24c93_969eb11b-0935-4b64-b89f-0ca2ae7928b9.webp?v=1714834708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9e1ef608dad66be60e2d97a2b56d5bc00c958a_0bcbba9a-e3a5-4ca4-9fc4-dabe6a4c4190.webp?v=1714834717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/567af9708a617160bc73e9306d6fabd979f11cd3_9a6542de-c4bb-4212-870f-c9bdf9660aa9.webp?v=1714834720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19329aad19a258224dbab4f254172c9425ae2af2_0b7e98ba-d0d7-4478-9dd5-0093e4ca43b5.webp?v=1714834722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedccf4edc2908783fd6fece40fe8c739f879a65_c6932c9f-361d-4563-a528-b7de3fa00bed.webp?v=1714834701","options":["color"],"media":[{"alt":null,"id":23884972294243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedccf4edc2908783fd6fece40fe8c739f879a65_c6932c9f-361d-4563-a528-b7de3fa00bed.webp?v=1714834701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedccf4edc2908783fd6fece40fe8c739f879a65_c6932c9f-361d-4563-a528-b7de3fa00bed.webp?v=1714834701","width":2000},{"alt":null,"id":23884972884067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc9c4f0df27677bb22290c4a218f7ba6fc03d3d_3d29bfac-a236-401b-b9a6-a4d45f963ae0.webp?v=1714834703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc9c4f0df27677bb22290c4a218f7ba6fc03d3d_3d29bfac-a236-401b-b9a6-a4d45f963ae0.webp?v=1714834703","width":2000},{"alt":null,"id":23884973375587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442cbc7e8a9daa691872dfab12ca449a2a76e28_5007dba7-c775-4377-90af-a56fdd02daaf.webp?v=1714834706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442cbc7e8a9daa691872dfab12ca449a2a76e28_5007dba7-c775-4377-90af-a56fdd02daaf.webp?v=1714834706","width":2000},{"alt":null,"id":23884973965411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23b0d2143ba661cc2d7a28456fc7bcd9bfd24c93_969eb11b-0935-4b64-b89f-0ca2ae7928b9.webp?v=1714834708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23b0d2143ba661cc2d7a28456fc7bcd9bfd24c93_969eb11b-0935-4b64-b89f-0ca2ae7928b9.webp?v=1714834708","width":2000},{"alt":null,"id":23884974424163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710","width":2000},{"alt":null,"id":23884975243363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715","width":2000},{"alt":null,"id":23884976062563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9e1ef608dad66be60e2d97a2b56d5bc00c958a_0bcbba9a-e3a5-4ca4-9fc4-dabe6a4c4190.webp?v=1714834717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9e1ef608dad66be60e2d97a2b56d5bc00c958a_0bcbba9a-e3a5-4ca4-9fc4-dabe6a4c4190.webp?v=1714834717","width":2000},{"alt":null,"id":23884976521315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/567af9708a617160bc73e9306d6fabd979f11cd3_9a6542de-c4bb-4212-870f-c9bdf9660aa9.webp?v=1714834720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/567af9708a617160bc73e9306d6fabd979f11cd3_9a6542de-c4bb-4212-870f-c9bdf9660aa9.webp?v=1714834720","width":2000},{"alt":null,"id":23884977078371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19329aad19a258224dbab4f254172c9425ae2af2_0b7e98ba-d0d7-4478-9dd5-0093e4ca43b5.webp?v=1714834722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19329aad19a258224dbab4f254172c9425ae2af2_0b7e98ba-d0d7-4478-9dd5-0093e4ca43b5.webp?v=1714834722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895765278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479726342243,"product_id":7411179159651,"position":5,"created_at":"2024-05-04T22:58:30+08:00","updated_at":"2024-05-04T22:58:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710","variant_ids":[41895765278819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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-YF08","featured_media":{"alt":null,"id":23884974424163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895765409891,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479727161443,"product_id":7411179159651,"position":6,"created_at":"2024-05-04T22:58:35+08:00","updated_at":"2024-05-04T22:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715","variant_ids":[41895765409891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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-YF08","featured_media":{"alt":null,"id":23884975243363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874619517e96ab071e78586e22aef692f0fe8a8c_2ea62cf6-d35b-4535-bacd-15cdab7c18eb.webp?v=1714834715"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895765278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479726342243,"product_id":7411179159651,"position":5,"created_at":"2024-05-04T22:58:30+08:00","updated_at":"2024-05-04T22:58:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710","variant_ids":[41895765278819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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-YF08","featured_media":{"alt":null,"id":23884974424163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec0dbe46004f82386331758f8de579586eea832_58f4f138-3625-4ed0-8c40-f319c1981432.webp?v=1714834710"}},"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: "停產" }