$product = {"id":7407764176995,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮)","handle":"iphone-14-plus-mod-nx-printable-ae02","description":null,"published_at":"2024-06-11T16:22:54+08:00","created_at":"2024-05-03T10:49:15+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":41878563815523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470345453667,"product_id":7407764176995,"position":6,"created_at":"2024-05-03T10:49:31+08:00","updated_at":"2024-05-03T10:49:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571","variant_ids":[41878563815523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - 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-AE02","featured_media":{"alt":null,"id":23875248619619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2846009b7d0393ec1f60799c037ed56f20a7766c_6fcb015f-845d-4672-88b6-071a24e4bed3.webp?v=1714704558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e669e8f0171b92db1eee3541a5c3b9c027d5a3ae_6aefac68-3f1c-4a12-8ed3-8c600cf729c6.webp?v=1714704560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1be2cb5970b38dd87610d328de0f9e50fcf50f2_c2a86e96-9c35-4375-917d-8c8f94322b94.webp?v=1714704563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6879e0d9fa80a74cdfebaed48cb1c19fed4a474_4031f23d-c292-49ea-b0a4-399137f69db1.webp?v=1714704566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8548669b46f0a6273786f7f31c035f7186a2a94d_5dbd729d-ef3c-4093-8e3a-6af231e9317e.webp?v=1714704569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847c4e7c2ba3166f10ea36a26ee39260df7a412e_a912e231-d51c-4d32-9485-2ba4fd0088bb.webp?v=1714704574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40d6620957b3592be6c494ffa39b3d5b5ae4132_e1e912ec-4185-45e0-9d05-d5cd3d7d0b4f.webp?v=1714704576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc68edc847d19c33adfe42d2ebcc47abe00d90f_e7c9ab6f-e970-45e7-a835-37c4e1e8e3ff.webp?v=1714704579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee378a60de24288fd4185eb71412fa8330b8107_3d4c680f-8363-4e45-b78c-5a029790b1f4.webp?v=1714704582"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2846009b7d0393ec1f60799c037ed56f20a7766c_6fcb015f-845d-4672-88b6-071a24e4bed3.webp?v=1714704558","options":["color"],"media":[{"alt":null,"id":23875245146211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2846009b7d0393ec1f60799c037ed56f20a7766c_6fcb015f-845d-4672-88b6-071a24e4bed3.webp?v=1714704558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2846009b7d0393ec1f60799c037ed56f20a7766c_6fcb015f-845d-4672-88b6-071a24e4bed3.webp?v=1714704558","width":2000},{"alt":null,"id":23875245998179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e669e8f0171b92db1eee3541a5c3b9c027d5a3ae_6aefac68-3f1c-4a12-8ed3-8c600cf729c6.webp?v=1714704560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e669e8f0171b92db1eee3541a5c3b9c027d5a3ae_6aefac68-3f1c-4a12-8ed3-8c600cf729c6.webp?v=1714704560","width":2000},{"alt":null,"id":23875246620771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1be2cb5970b38dd87610d328de0f9e50fcf50f2_c2a86e96-9c35-4375-917d-8c8f94322b94.webp?v=1714704563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1be2cb5970b38dd87610d328de0f9e50fcf50f2_c2a86e96-9c35-4375-917d-8c8f94322b94.webp?v=1714704563","width":2000},{"alt":null,"id":23875247210595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6879e0d9fa80a74cdfebaed48cb1c19fed4a474_4031f23d-c292-49ea-b0a4-399137f69db1.webp?v=1714704566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6879e0d9fa80a74cdfebaed48cb1c19fed4a474_4031f23d-c292-49ea-b0a4-399137f69db1.webp?v=1714704566","width":2000},{"alt":null,"id":23875248029795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8548669b46f0a6273786f7f31c035f7186a2a94d_5dbd729d-ef3c-4093-8e3a-6af231e9317e.webp?v=1714704569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8548669b46f0a6273786f7f31c035f7186a2a94d_5dbd729d-ef3c-4093-8e3a-6af231e9317e.webp?v=1714704569","width":2000},{"alt":null,"id":23875248619619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571","width":2000},{"alt":null,"id":23875249111139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847c4e7c2ba3166f10ea36a26ee39260df7a412e_a912e231-d51c-4d32-9485-2ba4fd0088bb.webp?v=1714704574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847c4e7c2ba3166f10ea36a26ee39260df7a412e_a912e231-d51c-4d32-9485-2ba4fd0088bb.webp?v=1714704574","width":2000},{"alt":null,"id":23875249668195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40d6620957b3592be6c494ffa39b3d5b5ae4132_e1e912ec-4185-45e0-9d05-d5cd3d7d0b4f.webp?v=1714704576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40d6620957b3592be6c494ffa39b3d5b5ae4132_e1e912ec-4185-45e0-9d05-d5cd3d7d0b4f.webp?v=1714704576","width":2000},{"alt":null,"id":23875250552931,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc68edc847d19c33adfe42d2ebcc47abe00d90f_e7c9ab6f-e970-45e7-a835-37c4e1e8e3ff.webp?v=1714704579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc68edc847d19c33adfe42d2ebcc47abe00d90f_e7c9ab6f-e970-45e7-a835-37c4e1e8e3ff.webp?v=1714704579","width":2000},{"alt":null,"id":23875251011683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee378a60de24288fd4185eb71412fa8330b8107_3d4c680f-8363-4e45-b78c-5a029790b1f4.webp?v=1714704582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee378a60de24288fd4185eb71412fa8330b8107_3d4c680f-8363-4e45-b78c-5a029790b1f4.webp?v=1714704582","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878563815523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470345453667,"product_id":7407764176995,"position":6,"created_at":"2024-05-03T10:49:31+08:00","updated_at":"2024-05-03T10:49:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571","variant_ids":[41878563815523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - 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-AE02","featured_media":{"alt":null,"id":23875248619619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878563815523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470345453667,"product_id":7407764176995,"position":6,"created_at":"2024-05-03T10:49:31+08:00","updated_at":"2024-05-03T10:49:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571","variant_ids":[41878563815523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - 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-AE02","featured_media":{"alt":null,"id":23875248619619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4593596bd1592f8f6789b0572330f6d842805d1c_0ddc3719-e911-4fd3-ad97-e68d94e467b0.webp?v=1714704571"}},"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: "停產" }