$product = {"id":7411298926691,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦","handle":"iphone-14-plus-mod-nx-magsafe-printable-mw06","description":null,"published_at":"2024-06-11T17:41:11+08:00","created_at":"2024-05-05T00:02:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Plus","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41897131802723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480082432099,"product_id":7411298926691,"position":10,"created_at":"2024-05-05T00:03:11+08:00","updated_at":"2024-05-05T00:03:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591","variant_ids":[41897131802723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"MPB0126124-MW06","featured_media":{"alt":null,"id":23885333266531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb040eb149a70f382fcb52f691165131d5c551a_83376145-65e5-4279-99c3-fa6c37feaac5.webp?v=1714838570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab3d7af50ab14400956734b61b3d1d7ace7427_8a4bcc93-404d-49a0-bc74-7356cd9ee908.webp?v=1714838572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94b30792623b3bcd3d4c3ac9da5247407a67872_d96e6202-e246-4ee6-8a08-f4734e2491c6.webp?v=1714838574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e435682c38a38d90418795e45c759e3866b03b_8d6e55d4-2e60-4113-ad13-9f41acfd919b.webp?v=1714838577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e19f91421d0c7bece5c30f8cce0a67683533a_ca135c11-baea-4633-80cf-55c0135a4f66.webp?v=1714838579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059cc72f3d27d5975f27dbddce30824ab02fb000_5fd60bc0-bf4c-40a9-b91e-797998c25bdb.webp?v=1714838581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ffec225d1d7705c38ddf8966d40623b717550_86f094a1-f8e0-44c3-9e52-37c3dd86c12b.webp?v=1714838584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aed1f73464522f75d171b881c8eb0f8353e3a0fd_9cb9544e-6a57-4316-9add-c64ec887ea4d.webp?v=1714838586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55235d7541a344fb3803aab3730fac69f79330b1_e7090d64-f729-42c3-b38b-8d098424817c.webp?v=1714838589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb040eb149a70f382fcb52f691165131d5c551a_83376145-65e5-4279-99c3-fa6c37feaac5.webp?v=1714838570","options":["color"],"media":[{"alt":null,"id":23885328941155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb040eb149a70f382fcb52f691165131d5c551a_83376145-65e5-4279-99c3-fa6c37feaac5.webp?v=1714838570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb040eb149a70f382fcb52f691165131d5c551a_83376145-65e5-4279-99c3-fa6c37feaac5.webp?v=1714838570","width":2000},{"alt":null,"id":23885329399907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab3d7af50ab14400956734b61b3d1d7ace7427_8a4bcc93-404d-49a0-bc74-7356cd9ee908.webp?v=1714838572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edab3d7af50ab14400956734b61b3d1d7ace7427_8a4bcc93-404d-49a0-bc74-7356cd9ee908.webp?v=1714838572","width":2000},{"alt":null,"id":23885329956963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94b30792623b3bcd3d4c3ac9da5247407a67872_d96e6202-e246-4ee6-8a08-f4734e2491c6.webp?v=1714838574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94b30792623b3bcd3d4c3ac9da5247407a67872_d96e6202-e246-4ee6-8a08-f4734e2491c6.webp?v=1714838574","width":2000},{"alt":null,"id":23885330382947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e435682c38a38d90418795e45c759e3866b03b_8d6e55d4-2e60-4113-ad13-9f41acfd919b.webp?v=1714838577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e435682c38a38d90418795e45c759e3866b03b_8d6e55d4-2e60-4113-ad13-9f41acfd919b.webp?v=1714838577","width":2000},{"alt":null,"id":23885330874467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e19f91421d0c7bece5c30f8cce0a67683533a_ca135c11-baea-4633-80cf-55c0135a4f66.webp?v=1714838579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e19f91421d0c7bece5c30f8cce0a67683533a_ca135c11-baea-4633-80cf-55c0135a4f66.webp?v=1714838579","width":2000},{"alt":null,"id":23885331431523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059cc72f3d27d5975f27dbddce30824ab02fb000_5fd60bc0-bf4c-40a9-b91e-797998c25bdb.webp?v=1714838581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059cc72f3d27d5975f27dbddce30824ab02fb000_5fd60bc0-bf4c-40a9-b91e-797998c25bdb.webp?v=1714838581","width":2000},{"alt":null,"id":23885331857507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ffec225d1d7705c38ddf8966d40623b717550_86f094a1-f8e0-44c3-9e52-37c3dd86c12b.webp?v=1714838584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ffec225d1d7705c38ddf8966d40623b717550_86f094a1-f8e0-44c3-9e52-37c3dd86c12b.webp?v=1714838584","width":2000},{"alt":null,"id":23885332283491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aed1f73464522f75d171b881c8eb0f8353e3a0fd_9cb9544e-6a57-4316-9add-c64ec887ea4d.webp?v=1714838586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aed1f73464522f75d171b881c8eb0f8353e3a0fd_9cb9544e-6a57-4316-9add-c64ec887ea4d.webp?v=1714838586","width":2000},{"alt":null,"id":23885332742243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55235d7541a344fb3803aab3730fac69f79330b1_e7090d64-f729-42c3-b38b-8d098424817c.webp?v=1714838589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55235d7541a344fb3803aab3730fac69f79330b1_e7090d64-f729-42c3-b38b-8d098424817c.webp?v=1714838589","width":2000},{"alt":null,"id":23885333266531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897131802723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480082432099,"product_id":7411298926691,"position":10,"created_at":"2024-05-05T00:03:11+08:00","updated_at":"2024-05-05T00:03:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591","variant_ids":[41897131802723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"MPB0126124-MW06","featured_media":{"alt":null,"id":23885333266531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897131802723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480082432099,"product_id":7411298926691,"position":10,"created_at":"2024-05-05T00:03:11+08:00","updated_at":"2024-05-05T00:03:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591","variant_ids":[41897131802723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"MPB0126124-MW06","featured_media":{"alt":null,"id":23885333266531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a007008b7222c8e016ade452aac2da2a91f14b37_3ccc5286-99e6-472d-8230-568c81a8aefa.webp?v=1714838591"}},"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: "停產" }