$product = {"id":7416379703395,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-8-mod-nx-printable-ae06","description":null,"published_at":"2024-06-11T16:57:28+08:00","created_at":"2024-05-06T14:45:39+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":41919108350051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491984097379,"product_id":7416379703395,"position":4,"created_at":"2024-05-06T14:45:49+08:00","updated_at":"2024-05-06T14:45:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949","variant_ids":[41919108350051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-AE06","featured_media":{"alt":null,"id":23897397559395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6684104b5a2b4c325762390b7dd8b3fba1662669_d47ecc08-213c-4bc7-9c00-9f1ee737be2b.webp?v=1714977941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de6401ba9ba1c5727080e868e38a7f1532bc560_74c82a34-71b7-498e-8f66-c137c9241812.webp?v=1714977944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c63a88d4dee78ebc6e3741d77f87b61a1d17281_193314b9-2480-4774-8795-5164ad934cc2.webp?v=1714977946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ce09b2e919fde78b4d0e565431a29efb453772_0f150057-c7b7-44e5-942f-1dadc94df1df.webp?v=1714977951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0512837a4d2f435bcf0069f224acff4a823d3_96d53646-1863-4bee-84b4-2d7691070ff0.webp?v=1714977953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945baae4c5a976188aeaf0a439b67681ae4018f_b25435ae-14c6-4dff-a0fe-2646e3fdc2b1.webp?v=1714977956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cdb91dd238f114cd80b8ac5c5414c625f282a07_e7a4f735-c4ae-4bda-80ea-8008fb41f905.webp?v=1714977958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffd82453e4e01cffc928863323149f0d71ed818c_419ad00f-54e7-4848-8a60-d475d56cd06d.webp?v=1714977961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271127d18940f636cbfabbee9981852413886e3f_3c2a532c-18a1-4f34-a3c5-bf203ce41ffc.webp?v=1714977964"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6684104b5a2b4c325762390b7dd8b3fba1662669_d47ecc08-213c-4bc7-9c00-9f1ee737be2b.webp?v=1714977941","options":["color"],"media":[{"alt":null,"id":23897395986531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6684104b5a2b4c325762390b7dd8b3fba1662669_d47ecc08-213c-4bc7-9c00-9f1ee737be2b.webp?v=1714977941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6684104b5a2b4c325762390b7dd8b3fba1662669_d47ecc08-213c-4bc7-9c00-9f1ee737be2b.webp?v=1714977941","width":2000},{"alt":null,"id":23897396543587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de6401ba9ba1c5727080e868e38a7f1532bc560_74c82a34-71b7-498e-8f66-c137c9241812.webp?v=1714977944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de6401ba9ba1c5727080e868e38a7f1532bc560_74c82a34-71b7-498e-8f66-c137c9241812.webp?v=1714977944","width":2000},{"alt":null,"id":23897397067875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c63a88d4dee78ebc6e3741d77f87b61a1d17281_193314b9-2480-4774-8795-5164ad934cc2.webp?v=1714977946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c63a88d4dee78ebc6e3741d77f87b61a1d17281_193314b9-2480-4774-8795-5164ad934cc2.webp?v=1714977946","width":2000},{"alt":null,"id":23897397559395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949","width":2000},{"alt":null,"id":23897397985379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ce09b2e919fde78b4d0e565431a29efb453772_0f150057-c7b7-44e5-942f-1dadc94df1df.webp?v=1714977951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ce09b2e919fde78b4d0e565431a29efb453772_0f150057-c7b7-44e5-942f-1dadc94df1df.webp?v=1714977951","width":2000},{"alt":null,"id":23897398706275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0512837a4d2f435bcf0069f224acff4a823d3_96d53646-1863-4bee-84b4-2d7691070ff0.webp?v=1714977953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0512837a4d2f435bcf0069f224acff4a823d3_96d53646-1863-4bee-84b4-2d7691070ff0.webp?v=1714977953","width":2000},{"alt":null,"id":23897399132259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945baae4c5a976188aeaf0a439b67681ae4018f_b25435ae-14c6-4dff-a0fe-2646e3fdc2b1.webp?v=1714977956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945baae4c5a976188aeaf0a439b67681ae4018f_b25435ae-14c6-4dff-a0fe-2646e3fdc2b1.webp?v=1714977956","width":2000},{"alt":null,"id":23897399689315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cdb91dd238f114cd80b8ac5c5414c625f282a07_e7a4f735-c4ae-4bda-80ea-8008fb41f905.webp?v=1714977958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cdb91dd238f114cd80b8ac5c5414c625f282a07_e7a4f735-c4ae-4bda-80ea-8008fb41f905.webp?v=1714977958","width":2000},{"alt":null,"id":23897400606819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffd82453e4e01cffc928863323149f0d71ed818c_419ad00f-54e7-4848-8a60-d475d56cd06d.webp?v=1714977961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffd82453e4e01cffc928863323149f0d71ed818c_419ad00f-54e7-4848-8a60-d475d56cd06d.webp?v=1714977961","width":2000},{"alt":null,"id":23897401000035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271127d18940f636cbfabbee9981852413886e3f_3c2a532c-18a1-4f34-a3c5-bf203ce41ffc.webp?v=1714977964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271127d18940f636cbfabbee9981852413886e3f_3c2a532c-18a1-4f34-a3c5-bf203ce41ffc.webp?v=1714977964","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919108350051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491984097379,"product_id":7416379703395,"position":4,"created_at":"2024-05-06T14:45:49+08:00","updated_at":"2024-05-06T14:45:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949","variant_ids":[41919108350051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-AE06","featured_media":{"alt":null,"id":23897397559395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919108350051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491984097379,"product_id":7416379703395,"position":4,"created_at":"2024-05-06T14:45:49+08:00","updated_at":"2024-05-06T14:45:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949","variant_ids":[41919108350051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-AE06","featured_media":{"alt":null,"id":23897397559395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295b2ff00a3186f3585a65217c7880c9630531aa_86c27f4b-9c18-4575-88c2-3bfcd020d6b3.webp?v=1714977949"}},"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: "停產" }