$product = {"id":7414979133539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - 夜空星語","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yb12","description":null,"published_at":"2024-06-11T17:54:42+08:00","created_at":"2024-05-05T19:59:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41910570778723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31487835013219,"product_id":7414979133539,"position":7,"created_at":"2024-05-05T20:00:07+08:00","updated_at":"2024-05-05T20:00:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407","variant_ids":[41910570778723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - 夜空星語 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB12","featured_media":{"alt":null,"id":23893179007075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ff29b18b6bc5a809ad9901e07cab7624a21a689_b16cf906-abd2-43a1-9e83-96a72a709f9b.webp?v=1714910392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d00ae657d8e154e097efe30eb100e0571384ec4_37f0d77b-c880-4d01-8c63-3b72a506a81a.webp?v=1714910394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd405dbe084ef2ed64a5fa9ca961c493f2fd6a8_ee01cf1f-f536-4050-9b43-183be2112200.webp?v=1714910397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd504d87a9832b534bb80636f9afeb96aebaaf50_4a1e101f-eac0-4edf-9c9b-3445af4ac01e.webp?v=1714910399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4192fa76a493c1d0dc8dab7afff3000d3c388370_28108aba-5ba5-42cd-baca-d975d1601fc6.webp?v=1714910401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a055390145fedcff25a2a9d4541181b0bc0e38c_acf568d5-cf83-49e4-b61b-44320bb6b357.webp?v=1714910404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a6f84cc794b18392b1bae0eb9e48a05dd50193_4e38bcd1-9e1f-4ee7-8813-9361257b774c.webp?v=1714910409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc89ffcb1653bbf3d387c3cf496ae037f74ae5d_7365ddfe-41dd-427c-acaa-5dd525f07c3f.webp?v=1714910411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/009f2ceee668044880730033804e19351b2c66d7_a7515059-5e49-468e-9b8e-07d83f336aed.webp?v=1714910414"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ff29b18b6bc5a809ad9901e07cab7624a21a689_b16cf906-abd2-43a1-9e83-96a72a709f9b.webp?v=1714910392","options":["color"],"media":[{"alt":null,"id":23893175730275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ff29b18b6bc5a809ad9901e07cab7624a21a689_b16cf906-abd2-43a1-9e83-96a72a709f9b.webp?v=1714910392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ff29b18b6bc5a809ad9901e07cab7624a21a689_b16cf906-abd2-43a1-9e83-96a72a709f9b.webp?v=1714910392","width":2000},{"alt":null,"id":23893176287331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d00ae657d8e154e097efe30eb100e0571384ec4_37f0d77b-c880-4d01-8c63-3b72a506a81a.webp?v=1714910394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d00ae657d8e154e097efe30eb100e0571384ec4_37f0d77b-c880-4d01-8c63-3b72a506a81a.webp?v=1714910394","width":2000},{"alt":null,"id":23893176713315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd405dbe084ef2ed64a5fa9ca961c493f2fd6a8_ee01cf1f-f536-4050-9b43-183be2112200.webp?v=1714910397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd405dbe084ef2ed64a5fa9ca961c493f2fd6a8_ee01cf1f-f536-4050-9b43-183be2112200.webp?v=1714910397","width":2000},{"alt":null,"id":23893177237603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd504d87a9832b534bb80636f9afeb96aebaaf50_4a1e101f-eac0-4edf-9c9b-3445af4ac01e.webp?v=1714910399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd504d87a9832b534bb80636f9afeb96aebaaf50_4a1e101f-eac0-4edf-9c9b-3445af4ac01e.webp?v=1714910399","width":2000},{"alt":null,"id":23893177729123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4192fa76a493c1d0dc8dab7afff3000d3c388370_28108aba-5ba5-42cd-baca-d975d1601fc6.webp?v=1714910401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4192fa76a493c1d0dc8dab7afff3000d3c388370_28108aba-5ba5-42cd-baca-d975d1601fc6.webp?v=1714910401","width":2000},{"alt":null,"id":23893178318947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a055390145fedcff25a2a9d4541181b0bc0e38c_acf568d5-cf83-49e4-b61b-44320bb6b357.webp?v=1714910404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a055390145fedcff25a2a9d4541181b0bc0e38c_acf568d5-cf83-49e4-b61b-44320bb6b357.webp?v=1714910404","width":2000},{"alt":null,"id":23893179007075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407","width":2000},{"alt":null,"id":23893179400291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a6f84cc794b18392b1bae0eb9e48a05dd50193_4e38bcd1-9e1f-4ee7-8813-9361257b774c.webp?v=1714910409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a6f84cc794b18392b1bae0eb9e48a05dd50193_4e38bcd1-9e1f-4ee7-8813-9361257b774c.webp?v=1714910409","width":2000},{"alt":null,"id":23893180481635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc89ffcb1653bbf3d387c3cf496ae037f74ae5d_7365ddfe-41dd-427c-acaa-5dd525f07c3f.webp?v=1714910411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc89ffcb1653bbf3d387c3cf496ae037f74ae5d_7365ddfe-41dd-427c-acaa-5dd525f07c3f.webp?v=1714910411","width":2000},{"alt":null,"id":23893181202531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/009f2ceee668044880730033804e19351b2c66d7_a7515059-5e49-468e-9b8e-07d83f336aed.webp?v=1714910414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/009f2ceee668044880730033804e19351b2c66d7_a7515059-5e49-468e-9b8e-07d83f336aed.webp?v=1714910414","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910570778723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31487835013219,"product_id":7414979133539,"position":7,"created_at":"2024-05-05T20:00:07+08:00","updated_at":"2024-05-05T20:00:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407","variant_ids":[41910570778723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - 夜空星語 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB12","featured_media":{"alt":null,"id":23893179007075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910570778723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31487835013219,"product_id":7414979133539,"position":7,"created_at":"2024-05-05T20:00:07+08:00","updated_at":"2024-05-05T20:00:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407","variant_ids":[41910570778723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - 夜空星語 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB12","featured_media":{"alt":null,"id":23893179007075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39b5081c756cc8baeacd1cb62abbc97b40f08a6_c444ce62-14ca-4fa2-9477-ed8adee8541d.webp?v=1714910407"}},"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: "停產" }