$product = {"id":7416367677539,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 兔子電腦","handle":"iphone-8-mod-nx-printable-mw06","description":null,"published_at":"2024-06-11T16:57:08+08:00","created_at":"2024-05-06T14:43:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 8","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41918971215971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954704483,"product_id":7416367677539,"position":3,"created_at":"2024-05-06T14:43:27+08:00","updated_at":"2024-05-06T14:43:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807","variant_ids":[41918971215971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-MW06","featured_media":{"alt":null,"id":23897367904355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ec9133d610df03813d4296fb36a8d6de5b4167_94f443ae-5965-49b4-9ea9-330ea34bf89e.webp?v=1714977802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872dbf4f4dc190cc4521f102daf480a5ab0cabbd_d12164f5-5fb0-4b70-8195-a2fa9e592cb8.webp?v=1714977804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d007f93a62cbfd246320e5aba16f9f6dee395fb_16912551-ac9f-4d07-a937-c5104ad983ba.webp?v=1714977809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8470954b65e554a572acc0109f3c3c790166fde1_24a7594a-35ff-4c1f-a629-ad070880b8c8.webp?v=1714977811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63e5e3257ca1dfd1b0f39abfd90819a8f2d5a99_864eb9fe-7883-403d-8fc0-15fae939a3d1.webp?v=1714977814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce753c2f8e8c372d4e60ba4c41ab84c4cfa16a5_115a6d74-0f9b-4510-9a3b-e3e328308770.webp?v=1714977816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e29b49f4e84e7dfbf3c55d127ad450f2d2800_88c4777b-4bcf-41ed-ab2b-4c42c2b50546.webp?v=1714977818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e9dc95d6c4945219cadc1e19a63b843112e6a8_8d831d69-c7f6-49cf-b4de-2500a21adf92.webp?v=1714977821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22038c5195490ee030084bfae0fd450f984093f5_5812294e-7fce-48f0-9eaa-094d09e88f1a.webp?v=1714977823"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ec9133d610df03813d4296fb36a8d6de5b4167_94f443ae-5965-49b4-9ea9-330ea34bf89e.webp?v=1714977802","options":["color"],"media":[{"alt":null,"id":23897366954083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ec9133d610df03813d4296fb36a8d6de5b4167_94f443ae-5965-49b4-9ea9-330ea34bf89e.webp?v=1714977802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ec9133d610df03813d4296fb36a8d6de5b4167_94f443ae-5965-49b4-9ea9-330ea34bf89e.webp?v=1714977802","width":2000},{"alt":null,"id":23897367511139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872dbf4f4dc190cc4521f102daf480a5ab0cabbd_d12164f5-5fb0-4b70-8195-a2fa9e592cb8.webp?v=1714977804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872dbf4f4dc190cc4521f102daf480a5ab0cabbd_d12164f5-5fb0-4b70-8195-a2fa9e592cb8.webp?v=1714977804","width":2000},{"alt":null,"id":23897367904355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807","width":2000},{"alt":null,"id":23897368526947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d007f93a62cbfd246320e5aba16f9f6dee395fb_16912551-ac9f-4d07-a937-c5104ad983ba.webp?v=1714977809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d007f93a62cbfd246320e5aba16f9f6dee395fb_16912551-ac9f-4d07-a937-c5104ad983ba.webp?v=1714977809","width":2000},{"alt":null,"id":23897368952931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8470954b65e554a572acc0109f3c3c790166fde1_24a7594a-35ff-4c1f-a629-ad070880b8c8.webp?v=1714977811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8470954b65e554a572acc0109f3c3c790166fde1_24a7594a-35ff-4c1f-a629-ad070880b8c8.webp?v=1714977811","width":2000},{"alt":null,"id":23897369346147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63e5e3257ca1dfd1b0f39abfd90819a8f2d5a99_864eb9fe-7883-403d-8fc0-15fae939a3d1.webp?v=1714977814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63e5e3257ca1dfd1b0f39abfd90819a8f2d5a99_864eb9fe-7883-403d-8fc0-15fae939a3d1.webp?v=1714977814","width":2000},{"alt":null,"id":23897369870435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce753c2f8e8c372d4e60ba4c41ab84c4cfa16a5_115a6d74-0f9b-4510-9a3b-e3e328308770.webp?v=1714977816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce753c2f8e8c372d4e60ba4c41ab84c4cfa16a5_115a6d74-0f9b-4510-9a3b-e3e328308770.webp?v=1714977816","width":2000},{"alt":null,"id":23897370230883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e29b49f4e84e7dfbf3c55d127ad450f2d2800_88c4777b-4bcf-41ed-ab2b-4c42c2b50546.webp?v=1714977818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e29b49f4e84e7dfbf3c55d127ad450f2d2800_88c4777b-4bcf-41ed-ab2b-4c42c2b50546.webp?v=1714977818","width":2000},{"alt":null,"id":23897370820707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e9dc95d6c4945219cadc1e19a63b843112e6a8_8d831d69-c7f6-49cf-b4de-2500a21adf92.webp?v=1714977821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e9dc95d6c4945219cadc1e19a63b843112e6a8_8d831d69-c7f6-49cf-b4de-2500a21adf92.webp?v=1714977821","width":2000},{"alt":null,"id":23897371279459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22038c5195490ee030084bfae0fd450f984093f5_5812294e-7fce-48f0-9eaa-094d09e88f1a.webp?v=1714977823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22038c5195490ee030084bfae0fd450f984093f5_5812294e-7fce-48f0-9eaa-094d09e88f1a.webp?v=1714977823","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918971215971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954704483,"product_id":7416367677539,"position":3,"created_at":"2024-05-06T14:43:27+08:00","updated_at":"2024-05-06T14:43:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807","variant_ids":[41918971215971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-MW06","featured_media":{"alt":null,"id":23897367904355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918971215971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954704483,"product_id":7416367677539,"position":3,"created_at":"2024-05-06T14:43:27+08:00","updated_at":"2024-05-06T14:43:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807","variant_ids":[41918971215971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-MW06","featured_media":{"alt":null,"id":23897367904355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4bb622dc247af8d62bdc2fbeaebdedd71827f4_7f44cd9a-958e-4426-b0d3-3985bf9c859d.webp?v=1714977807"}},"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: "停產" }