$product = {"id":7407729049699,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦","handle":"iphone-14-plus-mod-nx-printable-mw06","description":null,"published_at":"2024-06-11T16:22:29+08:00","created_at":"2024-05-03T10: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 14 Plus","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":41878142025827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470286766179,"product_id":7407729049699,"position":9,"created_at":"2024-05-03T10:46:01+08:00","updated_at":"2024-05-03T10:46:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361","variant_ids":[41878142025827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"NPB0126124-MW06","featured_media":{"alt":null,"id":23875189866595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cc418a1612efe941d0f12c86ce73e1449b07588_fb0d42dc-0032-4987-87d8-da7c82ce12d6.webp?v=1714704342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ff5ce511bd90b4d3a7e76cc05f1f0fe85bbc1b0_e7691be2-6f85-48be-922f-3edced3e74a5.webp?v=1714704344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cefa0a70d8828489f80510a61c6df9881ed6a4_41ecd5f7-4796-4b2c-a2bc-60de2c83a68f.webp?v=1714704346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a37e2bec53a40bb88bcfd5f41880ab714f2f98_918ad380-7c9c-40dd-9d10-2bf55d2ed836.webp?v=1714704349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b821f2e485b0d9db3edfdbbb4f84090cf0e4a7ed_95bb85b2-aafc-421b-9ae6-58efebd2f6df.webp?v=1714704351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee1d976ad3866f3b033af64b46727f732a039c3_ddf103aa-6ce1-49b7-b303-8b6446121994.webp?v=1714704354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca09968dde762b0ad357dededb616e7bdd069c_30ec55c6-02a6-4ebd-a754-7a3e74743b01.webp?v=1714704356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf6de2e84a892a59bd2f0b3e7e260ce80547a96d_07b3f984-b240-4b5a-85de-7f266c775fa4.webp?v=1714704359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c42eac2ffeb488d524c61889ab06f313dd90ad2_17d31a34-1045-4831-87c3-a1033c965c8c.webp?v=1714704364"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cc418a1612efe941d0f12c86ce73e1449b07588_fb0d42dc-0032-4987-87d8-da7c82ce12d6.webp?v=1714704342","options":["color"],"media":[{"alt":null,"id":23875183476835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cc418a1612efe941d0f12c86ce73e1449b07588_fb0d42dc-0032-4987-87d8-da7c82ce12d6.webp?v=1714704342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cc418a1612efe941d0f12c86ce73e1449b07588_fb0d42dc-0032-4987-87d8-da7c82ce12d6.webp?v=1714704342","width":2000},{"alt":null,"id":23875183902819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ff5ce511bd90b4d3a7e76cc05f1f0fe85bbc1b0_e7691be2-6f85-48be-922f-3edced3e74a5.webp?v=1714704344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ff5ce511bd90b4d3a7e76cc05f1f0fe85bbc1b0_e7691be2-6f85-48be-922f-3edced3e74a5.webp?v=1714704344","width":2000},{"alt":null,"id":23875184951395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cefa0a70d8828489f80510a61c6df9881ed6a4_41ecd5f7-4796-4b2c-a2bc-60de2c83a68f.webp?v=1714704346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cefa0a70d8828489f80510a61c6df9881ed6a4_41ecd5f7-4796-4b2c-a2bc-60de2c83a68f.webp?v=1714704346","width":2000},{"alt":null,"id":23875185573987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a37e2bec53a40bb88bcfd5f41880ab714f2f98_918ad380-7c9c-40dd-9d10-2bf55d2ed836.webp?v=1714704349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a37e2bec53a40bb88bcfd5f41880ab714f2f98_918ad380-7c9c-40dd-9d10-2bf55d2ed836.webp?v=1714704349","width":2000},{"alt":null,"id":23875186425955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b821f2e485b0d9db3edfdbbb4f84090cf0e4a7ed_95bb85b2-aafc-421b-9ae6-58efebd2f6df.webp?v=1714704351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b821f2e485b0d9db3edfdbbb4f84090cf0e4a7ed_95bb85b2-aafc-421b-9ae6-58efebd2f6df.webp?v=1714704351","width":2000},{"alt":null,"id":23875186720867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee1d976ad3866f3b033af64b46727f732a039c3_ddf103aa-6ce1-49b7-b303-8b6446121994.webp?v=1714704354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee1d976ad3866f3b033af64b46727f732a039c3_ddf103aa-6ce1-49b7-b303-8b6446121994.webp?v=1714704354","width":2000},{"alt":null,"id":23875188686947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca09968dde762b0ad357dededb616e7bdd069c_30ec55c6-02a6-4ebd-a754-7a3e74743b01.webp?v=1714704356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beca09968dde762b0ad357dededb616e7bdd069c_30ec55c6-02a6-4ebd-a754-7a3e74743b01.webp?v=1714704356","width":2000},{"alt":null,"id":23875189473379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf6de2e84a892a59bd2f0b3e7e260ce80547a96d_07b3f984-b240-4b5a-85de-7f266c775fa4.webp?v=1714704359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf6de2e84a892a59bd2f0b3e7e260ce80547a96d_07b3f984-b240-4b5a-85de-7f266c775fa4.webp?v=1714704359","width":2000},{"alt":null,"id":23875189866595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361","width":2000},{"alt":null,"id":23875190456419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c42eac2ffeb488d524c61889ab06f313dd90ad2_17d31a34-1045-4831-87c3-a1033c965c8c.webp?v=1714704364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c42eac2ffeb488d524c61889ab06f313dd90ad2_17d31a34-1045-4831-87c3-a1033c965c8c.webp?v=1714704364","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41878142025827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470286766179,"product_id":7407729049699,"position":9,"created_at":"2024-05-03T10:46:01+08:00","updated_at":"2024-05-03T10:46:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361","variant_ids":[41878142025827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"NPB0126124-MW06","featured_media":{"alt":null,"id":23875189866595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878142025827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470286766179,"product_id":7407729049699,"position":9,"created_at":"2024-05-03T10:46:01+08:00","updated_at":"2024-05-03T10:46:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361","variant_ids":[41878142025827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 兔子電腦 - 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":"NPB0126124-MW06","featured_media":{"alt":null,"id":23875189866595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b0f8971d09f992d8609cd84b037b0334aae1cf3_30ee5bfb-c38b-40fd-a09d-9e05ea0408e5.webp?v=1714704361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }