$product = {"id":7411359744099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-每天搞怪","handle":"iphone-14-plus-mod-nx-magsafe-printable-yf06","description":null,"published_at":"2024-06-11T17:42:50+08:00","created_at":"2024-05-05T00:14:36+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 14 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":41897907617891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227135587,"product_id":7411359744099,"position":4,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285","variant_ids":[41897907617891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF06","featured_media":{"alt":null,"id":23885478396003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ec1a904d69436010a29f33227e508405f96e6_f3ca678a-8747-40fd-947c-fe7600d606bd.webp?v=1714839279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d2ece1e8aa4670a8c760f561667c0984b72a1b_da1d3cab-40e3-4b14-9f0f-dc2f72bce1ae.webp?v=1714839281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330af288eb43f4b81301ec50dbcc85804583e4a2_be45f0ca-feac-4321-a2ca-ad9a73c4d8fa.webp?v=1714839283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20225e4ef51acf35b3fa80b75ab57b1d57d702f_120a1936-4f5c-4c2f-9d3e-f4dd594b4dd9.webp?v=1714839288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8520e38eded38211b599aa5b2e03fc94ad6456_010a12a0-58f5-4cd3-a4c9-d66a4786d476.webp?v=1714839290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9aa05232cd9a516591b9d71dfde4b63daf6a9b5_148df995-f780-45f8-a9ca-c6b1a0b57209.webp?v=1714839292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153db47e2ed5685963780342fc2fb0bffff75b96_0354035c-01bf-4a50-a447-7591da26e5f0.webp?v=1714839294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345384645b9abeff59827caef1d998a4211d4208_0aa806b7-2652-4a1b-9b62-c4309b737b41.webp?v=1714839297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318b627bb1fade0c76773a8162e369523079ad84_2d91348e-2492-4625-862b-31924a9f0426.webp?v=1714839299"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ec1a904d69436010a29f33227e508405f96e6_f3ca678a-8747-40fd-947c-fe7600d606bd.webp?v=1714839279","options":["color"],"media":[{"alt":null,"id":23885477150819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ec1a904d69436010a29f33227e508405f96e6_f3ca678a-8747-40fd-947c-fe7600d606bd.webp?v=1714839279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ec1a904d69436010a29f33227e508405f96e6_f3ca678a-8747-40fd-947c-fe7600d606bd.webp?v=1714839279","width":2000},{"alt":null,"id":23885477576803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d2ece1e8aa4670a8c760f561667c0984b72a1b_da1d3cab-40e3-4b14-9f0f-dc2f72bce1ae.webp?v=1714839281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d2ece1e8aa4670a8c760f561667c0984b72a1b_da1d3cab-40e3-4b14-9f0f-dc2f72bce1ae.webp?v=1714839281","width":2000},{"alt":null,"id":23885478068323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330af288eb43f4b81301ec50dbcc85804583e4a2_be45f0ca-feac-4321-a2ca-ad9a73c4d8fa.webp?v=1714839283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330af288eb43f4b81301ec50dbcc85804583e4a2_be45f0ca-feac-4321-a2ca-ad9a73c4d8fa.webp?v=1714839283","width":2000},{"alt":null,"id":23885478396003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285","width":2000},{"alt":null,"id":23885478854755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20225e4ef51acf35b3fa80b75ab57b1d57d702f_120a1936-4f5c-4c2f-9d3e-f4dd594b4dd9.webp?v=1714839288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20225e4ef51acf35b3fa80b75ab57b1d57d702f_120a1936-4f5c-4c2f-9d3e-f4dd594b4dd9.webp?v=1714839288","width":2000},{"alt":null,"id":23885479280739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8520e38eded38211b599aa5b2e03fc94ad6456_010a12a0-58f5-4cd3-a4c9-d66a4786d476.webp?v=1714839290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8520e38eded38211b599aa5b2e03fc94ad6456_010a12a0-58f5-4cd3-a4c9-d66a4786d476.webp?v=1714839290","width":2000},{"alt":null,"id":23885479903331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9aa05232cd9a516591b9d71dfde4b63daf6a9b5_148df995-f780-45f8-a9ca-c6b1a0b57209.webp?v=1714839292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9aa05232cd9a516591b9d71dfde4b63daf6a9b5_148df995-f780-45f8-a9ca-c6b1a0b57209.webp?v=1714839292","width":2000},{"alt":null,"id":23885480231011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153db47e2ed5685963780342fc2fb0bffff75b96_0354035c-01bf-4a50-a447-7591da26e5f0.webp?v=1714839294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153db47e2ed5685963780342fc2fb0bffff75b96_0354035c-01bf-4a50-a447-7591da26e5f0.webp?v=1714839294","width":2000},{"alt":null,"id":23885480853603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345384645b9abeff59827caef1d998a4211d4208_0aa806b7-2652-4a1b-9b62-c4309b737b41.webp?v=1714839297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345384645b9abeff59827caef1d998a4211d4208_0aa806b7-2652-4a1b-9b62-c4309b737b41.webp?v=1714839297","width":2000},{"alt":null,"id":23885481312355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318b627bb1fade0c76773a8162e369523079ad84_2d91348e-2492-4625-862b-31924a9f0426.webp?v=1714839299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318b627bb1fade0c76773a8162e369523079ad84_2d91348e-2492-4625-862b-31924a9f0426.webp?v=1714839299","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897907617891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227135587,"product_id":7411359744099,"position":4,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285","variant_ids":[41897907617891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF06","featured_media":{"alt":null,"id":23885478396003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897907617891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227135587,"product_id":7411359744099,"position":4,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285","variant_ids":[41897907617891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF06","featured_media":{"alt":null,"id":23885478396003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3264b2cdbe2a9ebd0bc6700a651ad07594d8c27f_507c41ff-fc97-4414-9729-2a28706655fb.webp?v=1714839285"}},"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: "停產" }