$product = {"id":7411300794467,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Logo貼紙款","handle":"iphone-14-plus-mod-nx-magsafe-printable-sb04","description":null,"published_at":"2024-06-11T17:41:14+08:00","created_at":"2024-05-05T00:03:09+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":41897151987811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480085676131,"product_id":7411300794467,"position":6,"created_at":"2024-05-05T00:03:25+08:00","updated_at":"2024-05-05T00:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605","variant_ids":[41897151987811]},"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-SB04","featured_media":{"alt":null,"id":23885336477795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e9d434ff26208b4df2fd3c72039d9a50ccb8a_610a7061-bc05-4e84-8496-9aab21a74cb1.webp?v=1714838592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48135f2d921af277278d426e33bba6ee946da21_1c073e0c-cab5-4bd3-bc1d-bd84d9570714.webp?v=1714838594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0172a3cac33f1138df73fc9987294fc47c88adea_95badc68-bec5-4584-a5b0-4da50c651313.webp?v=1714838597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ac5081ec18555a2469204b2afc2f8952d8f1df_2ea8a0b7-fd42-4ef6-9e80-2612ecf66499.webp?v=1714838599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6806e7a39296294b27b1cc89983ca9ab451d72b_8191e124-74d0-4168-a98d-69464e2c1a96.webp?v=1714838602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a172dedf711e8f0f726b92b008f9446600f83fd2_0a26e3b5-4092-4d33-8c9a-c0b17ed5e6ab.webp?v=1714838607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addcebefcedac320d233902621bf6c0ddc3b0071_fca84183-ce80-4efc-ad9d-dcefcd9b6df2.webp?v=1714838610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aae751f20fe5b7391b9bbe027a65049240235da_2ffbd79d-98e3-4dc2-85a6-ffe46f756148.webp?v=1714838612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd34f2cb8e0614759df06abd18ce5f7609e7162_7762eff2-bed1-42a4-8b8b-6a41b1d696fe.webp?v=1714838615"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e9d434ff26208b4df2fd3c72039d9a50ccb8a_610a7061-bc05-4e84-8496-9aab21a74cb1.webp?v=1714838592","options":["color"],"media":[{"alt":null,"id":23885333594211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e9d434ff26208b4df2fd3c72039d9a50ccb8a_610a7061-bc05-4e84-8496-9aab21a74cb1.webp?v=1714838592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729e9d434ff26208b4df2fd3c72039d9a50ccb8a_610a7061-bc05-4e84-8496-9aab21a74cb1.webp?v=1714838592","width":2000},{"alt":null,"id":23885333987427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48135f2d921af277278d426e33bba6ee946da21_1c073e0c-cab5-4bd3-bc1d-bd84d9570714.webp?v=1714838594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48135f2d921af277278d426e33bba6ee946da21_1c073e0c-cab5-4bd3-bc1d-bd84d9570714.webp?v=1714838594","width":2000},{"alt":null,"id":23885334741091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0172a3cac33f1138df73fc9987294fc47c88adea_95badc68-bec5-4584-a5b0-4da50c651313.webp?v=1714838597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0172a3cac33f1138df73fc9987294fc47c88adea_95badc68-bec5-4584-a5b0-4da50c651313.webp?v=1714838597","width":2000},{"alt":null,"id":23885335167075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ac5081ec18555a2469204b2afc2f8952d8f1df_2ea8a0b7-fd42-4ef6-9e80-2612ecf66499.webp?v=1714838599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ac5081ec18555a2469204b2afc2f8952d8f1df_2ea8a0b7-fd42-4ef6-9e80-2612ecf66499.webp?v=1714838599","width":2000},{"alt":null,"id":23885335887971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6806e7a39296294b27b1cc89983ca9ab451d72b_8191e124-74d0-4168-a98d-69464e2c1a96.webp?v=1714838602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6806e7a39296294b27b1cc89983ca9ab451d72b_8191e124-74d0-4168-a98d-69464e2c1a96.webp?v=1714838602","width":2000},{"alt":null,"id":23885336477795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605","width":2000},{"alt":null,"id":23885337067619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a172dedf711e8f0f726b92b008f9446600f83fd2_0a26e3b5-4092-4d33-8c9a-c0b17ed5e6ab.webp?v=1714838607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a172dedf711e8f0f726b92b008f9446600f83fd2_0a26e3b5-4092-4d33-8c9a-c0b17ed5e6ab.webp?v=1714838607","width":2000},{"alt":null,"id":23885337624675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addcebefcedac320d233902621bf6c0ddc3b0071_fca84183-ce80-4efc-ad9d-dcefcd9b6df2.webp?v=1714838610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addcebefcedac320d233902621bf6c0ddc3b0071_fca84183-ce80-4efc-ad9d-dcefcd9b6df2.webp?v=1714838610","width":2000},{"alt":null,"id":23885338148963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aae751f20fe5b7391b9bbe027a65049240235da_2ffbd79d-98e3-4dc2-85a6-ffe46f756148.webp?v=1714838612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aae751f20fe5b7391b9bbe027a65049240235da_2ffbd79d-98e3-4dc2-85a6-ffe46f756148.webp?v=1714838612","width":2000},{"alt":null,"id":23885338738787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd34f2cb8e0614759df06abd18ce5f7609e7162_7762eff2-bed1-42a4-8b8b-6a41b1d696fe.webp?v=1714838615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd34f2cb8e0614759df06abd18ce5f7609e7162_7762eff2-bed1-42a4-8b8b-6a41b1d696fe.webp?v=1714838615","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897151987811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480085676131,"product_id":7411300794467,"position":6,"created_at":"2024-05-05T00:03:25+08:00","updated_at":"2024-05-05T00:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605","variant_ids":[41897151987811]},"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-SB04","featured_media":{"alt":null,"id":23885336477795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897151987811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480085676131,"product_id":7411300794467,"position":6,"created_at":"2024-05-05T00:03:25+08:00","updated_at":"2024-05-05T00:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605","variant_ids":[41897151987811]},"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-SB04","featured_media":{"alt":null,"id":23885336477795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad22321c0c9760733eb2ffb045be6c4a74180e7_10d09481-2837-4684-a1a9-34e10b533312.webp?v=1714838605"}},"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: "停產" }