$product = {"id":7414962389091,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf02","description":null,"published_at":"2024-06-11T17:54:15+08:00","created_at":"2024-05-05T19:56:37+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 12 pro max","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":41910393897059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487788220515,"product_id":7414962389091,"position":4,"created_at":"2024-05-05T19:56:46+08:00","updated_at":"2024-05-05T19:56:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206","variant_ids":[41910393897059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0118724-YF02","featured_media":{"alt":null,"id":23893132148835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37103a99ea5b29896f89fca55245cff7842ef7a9_f09e7264-ead3-4934-a91a-ae68665c63a4.webp?v=1714910199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a79f456b07a67402f5b60d490335640e0933c24_68194d8d-cf5e-4291-a736-c496f1a91c35.webp?v=1714910202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09819a9b3315be6b2510331362554a6217119e8d_64a64ce6-bb2e-4128-bacc-4c172b96fb13.webp?v=1714910204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfcc1c48b68277c15ce5db26546c4ef43a9e8304_9ec4c642-be4b-44eb-a364-dfe6eb36204a.webp?v=1714910209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822644bc43fed13579eacf3aa21f23edbc2914e6_92e0e715-2ebf-4ca3-9442-6438607682d2.webp?v=1714910211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ced13f17c9b894573d5a69954cbd53b925f943_0b8d3b8c-ab79-4d73-8031-6288dd1f53f9.webp?v=1714910213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a88f25e7063c58bfe17c89dfecdf2913f8494dc_488eebe9-f0ef-4100-94b2-c77137664de8.webp?v=1714910216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37a2d5bcdc8a3a2fd12deec5ac04a6d477528bd_c6dec14e-5165-4b8d-b542-2b20d24a7b1f.webp?v=1714910219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8206750a80c466fa5520e551d44ee3cf98207_eaf2cc02-9f0f-4155-9935-4347106b4954.webp?v=1714910221"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37103a99ea5b29896f89fca55245cff7842ef7a9_f09e7264-ead3-4934-a91a-ae68665c63a4.webp?v=1714910199","options":["color"],"media":[{"alt":null,"id":23893130936419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37103a99ea5b29896f89fca55245cff7842ef7a9_f09e7264-ead3-4934-a91a-ae68665c63a4.webp?v=1714910199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37103a99ea5b29896f89fca55245cff7842ef7a9_f09e7264-ead3-4934-a91a-ae68665c63a4.webp?v=1714910199","width":2000},{"alt":null,"id":23893131427939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a79f456b07a67402f5b60d490335640e0933c24_68194d8d-cf5e-4291-a736-c496f1a91c35.webp?v=1714910202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a79f456b07a67402f5b60d490335640e0933c24_68194d8d-cf5e-4291-a736-c496f1a91c35.webp?v=1714910202","width":2000},{"alt":null,"id":23893131919459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09819a9b3315be6b2510331362554a6217119e8d_64a64ce6-bb2e-4128-bacc-4c172b96fb13.webp?v=1714910204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09819a9b3315be6b2510331362554a6217119e8d_64a64ce6-bb2e-4128-bacc-4c172b96fb13.webp?v=1714910204","width":2000},{"alt":null,"id":23893132148835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206","width":2000},{"alt":null,"id":23893133164643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfcc1c48b68277c15ce5db26546c4ef43a9e8304_9ec4c642-be4b-44eb-a364-dfe6eb36204a.webp?v=1714910209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfcc1c48b68277c15ce5db26546c4ef43a9e8304_9ec4c642-be4b-44eb-a364-dfe6eb36204a.webp?v=1714910209","width":2000},{"alt":null,"id":23893133525091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822644bc43fed13579eacf3aa21f23edbc2914e6_92e0e715-2ebf-4ca3-9442-6438607682d2.webp?v=1714910211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822644bc43fed13579eacf3aa21f23edbc2914e6_92e0e715-2ebf-4ca3-9442-6438607682d2.webp?v=1714910211","width":2000},{"alt":null,"id":23893134049379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ced13f17c9b894573d5a69954cbd53b925f943_0b8d3b8c-ab79-4d73-8031-6288dd1f53f9.webp?v=1714910213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ced13f17c9b894573d5a69954cbd53b925f943_0b8d3b8c-ab79-4d73-8031-6288dd1f53f9.webp?v=1714910213","width":2000},{"alt":null,"id":23893134573667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a88f25e7063c58bfe17c89dfecdf2913f8494dc_488eebe9-f0ef-4100-94b2-c77137664de8.webp?v=1714910216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a88f25e7063c58bfe17c89dfecdf2913f8494dc_488eebe9-f0ef-4100-94b2-c77137664de8.webp?v=1714910216","width":2000},{"alt":null,"id":23893135491171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37a2d5bcdc8a3a2fd12deec5ac04a6d477528bd_c6dec14e-5165-4b8d-b542-2b20d24a7b1f.webp?v=1714910219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37a2d5bcdc8a3a2fd12deec5ac04a6d477528bd_c6dec14e-5165-4b8d-b542-2b20d24a7b1f.webp?v=1714910219","width":2000},{"alt":null,"id":23893135851619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8206750a80c466fa5520e551d44ee3cf98207_eaf2cc02-9f0f-4155-9935-4347106b4954.webp?v=1714910221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8206750a80c466fa5520e551d44ee3cf98207_eaf2cc02-9f0f-4155-9935-4347106b4954.webp?v=1714910221","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910393897059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487788220515,"product_id":7414962389091,"position":4,"created_at":"2024-05-05T19:56:46+08:00","updated_at":"2024-05-05T19:56:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206","variant_ids":[41910393897059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0118724-YF02","featured_media":{"alt":null,"id":23893132148835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910393897059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31487788220515,"product_id":7414962389091,"position":4,"created_at":"2024-05-05T19:56:46+08:00","updated_at":"2024-05-05T19:56:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206","variant_ids":[41910393897059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0118724-YF02","featured_media":{"alt":null,"id":23893132148835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304e87d6556aa817e6388e666093272fbe012aba_691e6beb-e79c-4b86-b9aa-783fe6b7842f.webp?v=1714910206"}},"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: "停產" }