$product = {"id":7411273039971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-14-plus-mod-nx-magsafe-printable-ae06","description":null,"published_at":"2024-06-11T17:40:30+08:00","created_at":"2024-05-04T23:57:59+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":41896811266147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480020271203,"product_id":7411273039971,"position":9,"created_at":"2024-05-04T23:58:21+08:00","updated_at":"2024-05-04T23:58:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301","variant_ids":[41896811266147]},"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-AE06","featured_media":{"alt":null,"id":23885271040099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45eaf2652c6b644af8fa266632a8553ef78bcf65_c7348b82-9927-4776-bbc4-e640331d32ec.webp?v=1714838281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0dff9afa32a110a6028b351a8e9ce29028ed6_40059a1f-213c-4cc4-91b1-dbf8b7e1901e.webp?v=1714838284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4e463f805c9cc4f63f792ff9f9d750fc0d6de8_bd43db11-971a-4cc0-9151-289f38e4aefc.webp?v=1714838286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be2373901e750ff1e1c4a595f06378d166aac69_b0f88972-eb0d-46cf-b442-48fa9ab9cb97.webp?v=1714838289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aafc4a2c766f0dc90c56dc4e5be843769dea1cd_e73b5e28-c0f6-4de4-ab7f-b5ff14bc85aa.webp?v=1714838291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3c0edcb91a9a352ee7e97981084569646ff113_8af94652-4769-4657-aeea-57ac0baf72ea.webp?v=1714838294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27f8704dd6bf3341b52b2a02e95657f9dc99379_cdd82586-a505-4ec8-b2e9-3c430d123bed.webp?v=1714838296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6cf6b467b18198f4308df1dea057f8e3b3c415_8560fd67-71fc-44a9-bf2e-d7def03f2317.webp?v=1714838299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58859a4737015454590e58e11162c7cf5e218baa_cef81127-3be7-490d-a060-a0832214949b.webp?v=1714838304"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45eaf2652c6b644af8fa266632a8553ef78bcf65_c7348b82-9927-4776-bbc4-e640331d32ec.webp?v=1714838281","options":["color"],"media":[{"alt":null,"id":23885265666147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45eaf2652c6b644af8fa266632a8553ef78bcf65_c7348b82-9927-4776-bbc4-e640331d32ec.webp?v=1714838281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45eaf2652c6b644af8fa266632a8553ef78bcf65_c7348b82-9927-4776-bbc4-e640331d32ec.webp?v=1714838281","width":2000},{"alt":null,"id":23885266223203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0dff9afa32a110a6028b351a8e9ce29028ed6_40059a1f-213c-4cc4-91b1-dbf8b7e1901e.webp?v=1714838284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0dff9afa32a110a6028b351a8e9ce29028ed6_40059a1f-213c-4cc4-91b1-dbf8b7e1901e.webp?v=1714838284","width":2000},{"alt":null,"id":23885266944099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4e463f805c9cc4f63f792ff9f9d750fc0d6de8_bd43db11-971a-4cc0-9151-289f38e4aefc.webp?v=1714838286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4e463f805c9cc4f63f792ff9f9d750fc0d6de8_bd43db11-971a-4cc0-9151-289f38e4aefc.webp?v=1714838286","width":2000},{"alt":null,"id":23885267533923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be2373901e750ff1e1c4a595f06378d166aac69_b0f88972-eb0d-46cf-b442-48fa9ab9cb97.webp?v=1714838289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be2373901e750ff1e1c4a595f06378d166aac69_b0f88972-eb0d-46cf-b442-48fa9ab9cb97.webp?v=1714838289","width":2000},{"alt":null,"id":23885268156515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aafc4a2c766f0dc90c56dc4e5be843769dea1cd_e73b5e28-c0f6-4de4-ab7f-b5ff14bc85aa.webp?v=1714838291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aafc4a2c766f0dc90c56dc4e5be843769dea1cd_e73b5e28-c0f6-4de4-ab7f-b5ff14bc85aa.webp?v=1714838291","width":2000},{"alt":null,"id":23885268746339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3c0edcb91a9a352ee7e97981084569646ff113_8af94652-4769-4657-aeea-57ac0baf72ea.webp?v=1714838294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3c0edcb91a9a352ee7e97981084569646ff113_8af94652-4769-4657-aeea-57ac0baf72ea.webp?v=1714838294","width":2000},{"alt":null,"id":23885269696611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27f8704dd6bf3341b52b2a02e95657f9dc99379_cdd82586-a505-4ec8-b2e9-3c430d123bed.webp?v=1714838296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27f8704dd6bf3341b52b2a02e95657f9dc99379_cdd82586-a505-4ec8-b2e9-3c430d123bed.webp?v=1714838296","width":2000},{"alt":null,"id":23885270384739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6cf6b467b18198f4308df1dea057f8e3b3c415_8560fd67-71fc-44a9-bf2e-d7def03f2317.webp?v=1714838299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6cf6b467b18198f4308df1dea057f8e3b3c415_8560fd67-71fc-44a9-bf2e-d7def03f2317.webp?v=1714838299","width":2000},{"alt":null,"id":23885271040099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301","width":2000},{"alt":null,"id":23885271629923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58859a4737015454590e58e11162c7cf5e218baa_cef81127-3be7-490d-a060-a0832214949b.webp?v=1714838304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58859a4737015454590e58e11162c7cf5e218baa_cef81127-3be7-490d-a060-a0832214949b.webp?v=1714838304","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896811266147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480020271203,"product_id":7411273039971,"position":9,"created_at":"2024-05-04T23:58:21+08:00","updated_at":"2024-05-04T23:58:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301","variant_ids":[41896811266147]},"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-AE06","featured_media":{"alt":null,"id":23885271040099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896811266147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480020271203,"product_id":7411273039971,"position":9,"created_at":"2024-05-04T23:58:21+08:00","updated_at":"2024-05-04T23:58:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301","variant_ids":[41896811266147]},"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-AE06","featured_media":{"alt":null,"id":23885271040099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b73ed9cb4dddb911037aad862d3178ca5e1ab27d_db5f5c20-d7e4-493d-ac2e-df01a60e5416.webp?v=1714838301"}},"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: "停產" }