$product = {"id":7411259932771,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Logo","handle":"iphone-14-plus-mod-nx-magsafe-printable-sb16","description":null,"published_at":"2024-06-11T17:40:09+08:00","created_at":"2024-05-04T23:55:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41896647295075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980720227,"product_id":7411259932771,"position":2,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130","variant_ids":[41896647295075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23885231194211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32277c9a7b6dd4b05dfb1b9ef252b69f2bd5495_aadf5925-fecd-413f-b209-11921aae290a.webp?v=1714838126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde40c56c0128f2dd79a4626c81ad98939d86c45_3d73a019-5a63-4d79-9916-4896d86bfe80.webp?v=1714838132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3782d532502d740d73ed6df9cc338ae7d0f96047_943338c2-8e04-47d4-8baa-4e31f3a8565e.webp?v=1714838134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/880120719c973f3d1567ed22a162cebf324f8a48_bfdefae9-2e14-4943-9fb6-bb49dfb0ed0c.webp?v=1714838137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0782a3dfe112fe4dbd9dc64e16fbbf7f33af3e8_bf43281f-f8ae-4b09-beb4-5f5d613c66c8.webp?v=1714838140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03cc63e0528167e6a599266e8b7aa0b33a023570_dcce8750-f07e-47db-9515-8d710df30237.webp?v=1714838142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/280f07cd87a4faf0a4cacf133a68e4352c0ed6a9_a7b500d0-633f-43fa-a5b5-ef7fce850a30.webp?v=1714838144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24391d8b97ee08cdda46b95a83c2c8f32c781738_2f013b00-bc09-483a-8b89-73ce8e40aae0.webp?v=1714838147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af3a7f38f5afcd961b3738f50afc685f1b408ed_987970c5-2073-4931-881c-958121008e4b.webp?v=1714838149"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32277c9a7b6dd4b05dfb1b9ef252b69f2bd5495_aadf5925-fecd-413f-b209-11921aae290a.webp?v=1714838126","options":["color"],"media":[{"alt":null,"id":23885230604387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32277c9a7b6dd4b05dfb1b9ef252b69f2bd5495_aadf5925-fecd-413f-b209-11921aae290a.webp?v=1714838126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32277c9a7b6dd4b05dfb1b9ef252b69f2bd5495_aadf5925-fecd-413f-b209-11921aae290a.webp?v=1714838126","width":2000},{"alt":null,"id":23885231194211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130","width":2000},{"alt":null,"id":23885231816803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde40c56c0128f2dd79a4626c81ad98939d86c45_3d73a019-5a63-4d79-9916-4896d86bfe80.webp?v=1714838132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde40c56c0128f2dd79a4626c81ad98939d86c45_3d73a019-5a63-4d79-9916-4896d86bfe80.webp?v=1714838132","width":2000},{"alt":null,"id":23885232341091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3782d532502d740d73ed6df9cc338ae7d0f96047_943338c2-8e04-47d4-8baa-4e31f3a8565e.webp?v=1714838134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3782d532502d740d73ed6df9cc338ae7d0f96047_943338c2-8e04-47d4-8baa-4e31f3a8565e.webp?v=1714838134","width":2000},{"alt":null,"id":23885232996451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/880120719c973f3d1567ed22a162cebf324f8a48_bfdefae9-2e14-4943-9fb6-bb49dfb0ed0c.webp?v=1714838137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/880120719c973f3d1567ed22a162cebf324f8a48_bfdefae9-2e14-4943-9fb6-bb49dfb0ed0c.webp?v=1714838137","width":2000},{"alt":null,"id":23885233422435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0782a3dfe112fe4dbd9dc64e16fbbf7f33af3e8_bf43281f-f8ae-4b09-beb4-5f5d613c66c8.webp?v=1714838140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0782a3dfe112fe4dbd9dc64e16fbbf7f33af3e8_bf43281f-f8ae-4b09-beb4-5f5d613c66c8.webp?v=1714838140","width":2000},{"alt":null,"id":23885233946723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03cc63e0528167e6a599266e8b7aa0b33a023570_dcce8750-f07e-47db-9515-8d710df30237.webp?v=1714838142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03cc63e0528167e6a599266e8b7aa0b33a023570_dcce8750-f07e-47db-9515-8d710df30237.webp?v=1714838142","width":2000},{"alt":null,"id":23885234405475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/280f07cd87a4faf0a4cacf133a68e4352c0ed6a9_a7b500d0-633f-43fa-a5b5-ef7fce850a30.webp?v=1714838144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/280f07cd87a4faf0a4cacf133a68e4352c0ed6a9_a7b500d0-633f-43fa-a5b5-ef7fce850a30.webp?v=1714838144","width":2000},{"alt":null,"id":23885235093603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24391d8b97ee08cdda46b95a83c2c8f32c781738_2f013b00-bc09-483a-8b89-73ce8e40aae0.webp?v=1714838147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24391d8b97ee08cdda46b95a83c2c8f32c781738_2f013b00-bc09-483a-8b89-73ce8e40aae0.webp?v=1714838147","width":2000},{"alt":null,"id":23885235355747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af3a7f38f5afcd961b3738f50afc685f1b408ed_987970c5-2073-4931-881c-958121008e4b.webp?v=1714838149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af3a7f38f5afcd961b3738f50afc685f1b408ed_987970c5-2073-4931-881c-958121008e4b.webp?v=1714838149","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896647295075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980720227,"product_id":7411259932771,"position":2,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130","variant_ids":[41896647295075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23885231194211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896647295075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980720227,"product_id":7411259932771,"position":2,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130","variant_ids":[41896647295075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23885231194211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86e1fd98b019d2a30a3fcf7fc22327387b792e7_5b0ae7bb-ad70-4661-bd25-7ff520707988.webp?v=1714838130"}},"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: "停產" }