$product = {"id":7407685501027,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠車","handle":"iphone-14-plus-mod-nx-printable-sb05","description":null,"published_at":"2024-06-11T16:21:57+08:00","created_at":"2024-05-03T10:41:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41877626519651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470212579427,"product_id":7407685501027,"position":2,"created_at":"2024-05-03T10:41:24+08:00","updated_at":"2024-05-03T10:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084","variant_ids":[41877626519651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠車 - 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":"NPB0126124-SB05","featured_media":{"alt":null,"id":23875115647075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0075bc041c17a4cd24b768c69e7ac9bf5268b19_ecb4cf21-9d7f-4de6-abd0-cc61d897b572.webp?v=1714704081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b28a1b1c483c1c3736aa430488921af7475d6af_22079f26-1f82-4dbe-83e0-489ced354fa3.webp?v=1714704086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bb97116edb082a89de4c5a503d64edb90a32e5_7e24a7bb-82ae-4001-82a8-d85a1ba67c4a.webp?v=1714704089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a2f2dc15e159f3ca9f11f70f4f5bb9afe4086d_f8288d8b-fee3-4fb6-8a0a-0b01aba5b882.webp?v=1714704092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036cb86e5aa4437a9e7eba2064df0a03d915beb0_39469567-0fd7-4ebd-a029-d03bbfac12b3.webp?v=1714704095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b954b2765302373e7d30ce0a3173d9beddffd359_95714a0f-0db6-4cd3-88e4-7fe2607eb682.webp?v=1714704097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ed9385d664dd887be857218afda5a894b62673f_606c802b-369d-477e-affc-cdec55d43d25.webp?v=1714704100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c751f4904f3b60f2c81a08cab827029a11083a_74d40746-edea-45ad-ab5a-d8252ca228a5.webp?v=1714704102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c2aca142bafc8cc69f6257f8cfa706fa95a939_51f01a35-1329-4872-9e7c-7e5199fc5eae.webp?v=1714704106"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0075bc041c17a4cd24b768c69e7ac9bf5268b19_ecb4cf21-9d7f-4de6-abd0-cc61d897b572.webp?v=1714704081","options":["color"],"media":[{"alt":null,"id":23875114860643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0075bc041c17a4cd24b768c69e7ac9bf5268b19_ecb4cf21-9d7f-4de6-abd0-cc61d897b572.webp?v=1714704081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0075bc041c17a4cd24b768c69e7ac9bf5268b19_ecb4cf21-9d7f-4de6-abd0-cc61d897b572.webp?v=1714704081","width":2000},{"alt":null,"id":23875115647075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084","width":2000},{"alt":null,"id":23875116204131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b28a1b1c483c1c3736aa430488921af7475d6af_22079f26-1f82-4dbe-83e0-489ced354fa3.webp?v=1714704086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b28a1b1c483c1c3736aa430488921af7475d6af_22079f26-1f82-4dbe-83e0-489ced354fa3.webp?v=1714704086","width":2000},{"alt":null,"id":23875117088867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bb97116edb082a89de4c5a503d64edb90a32e5_7e24a7bb-82ae-4001-82a8-d85a1ba67c4a.webp?v=1714704089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bb97116edb082a89de4c5a503d64edb90a32e5_7e24a7bb-82ae-4001-82a8-d85a1ba67c4a.webp?v=1714704089","width":2000},{"alt":null,"id":23875117744227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a2f2dc15e159f3ca9f11f70f4f5bb9afe4086d_f8288d8b-fee3-4fb6-8a0a-0b01aba5b882.webp?v=1714704092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a2f2dc15e159f3ca9f11f70f4f5bb9afe4086d_f8288d8b-fee3-4fb6-8a0a-0b01aba5b882.webp?v=1714704092","width":2000},{"alt":null,"id":23875119677539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036cb86e5aa4437a9e7eba2064df0a03d915beb0_39469567-0fd7-4ebd-a029-d03bbfac12b3.webp?v=1714704095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036cb86e5aa4437a9e7eba2064df0a03d915beb0_39469567-0fd7-4ebd-a029-d03bbfac12b3.webp?v=1714704095","width":2000},{"alt":null,"id":23875120431203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b954b2765302373e7d30ce0a3173d9beddffd359_95714a0f-0db6-4cd3-88e4-7fe2607eb682.webp?v=1714704097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b954b2765302373e7d30ce0a3173d9beddffd359_95714a0f-0db6-4cd3-88e4-7fe2607eb682.webp?v=1714704097","width":2000},{"alt":null,"id":23875121086563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ed9385d664dd887be857218afda5a894b62673f_606c802b-369d-477e-affc-cdec55d43d25.webp?v=1714704100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ed9385d664dd887be857218afda5a894b62673f_606c802b-369d-477e-affc-cdec55d43d25.webp?v=1714704100","width":2000},{"alt":null,"id":23875121643619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c751f4904f3b60f2c81a08cab827029a11083a_74d40746-edea-45ad-ab5a-d8252ca228a5.webp?v=1714704102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c751f4904f3b60f2c81a08cab827029a11083a_74d40746-edea-45ad-ab5a-d8252ca228a5.webp?v=1714704102","width":2000},{"alt":null,"id":23875122462819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c2aca142bafc8cc69f6257f8cfa706fa95a939_51f01a35-1329-4872-9e7c-7e5199fc5eae.webp?v=1714704106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c2aca142bafc8cc69f6257f8cfa706fa95a939_51f01a35-1329-4872-9e7c-7e5199fc5eae.webp?v=1714704106","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877626519651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470212579427,"product_id":7407685501027,"position":2,"created_at":"2024-05-03T10:41:24+08:00","updated_at":"2024-05-03T10:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084","variant_ids":[41877626519651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠車 - 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":"NPB0126124-SB05","featured_media":{"alt":null,"id":23875115647075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877626519651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470212579427,"product_id":7407685501027,"position":2,"created_at":"2024-05-03T10:41:24+08:00","updated_at":"2024-05-03T10:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084","variant_ids":[41877626519651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠車 - 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":"NPB0126124-SB05","featured_media":{"alt":null,"id":23875115647075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe66414279ba3b848eabf7cbcc629106db90e9b9_5293f73d-4679-4c0a-9612-3e34a4ce9ad2.webp?v=1714704084"}},"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: "停產" }