$product = {"id":7407814770787,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王10週年","handle":"iphone-14-plus-mod-nx-printable-eo05","description":null,"published_at":"2024-06-11T16:23:35+08:00","created_at":"2024-05-03T10:54:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41879148724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470435205219,"product_id":7407814770787,"position":8,"created_at":"2024-05-03T10:55:10+08:00","updated_at":"2024-05-03T10:55:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910","variant_ids":[41879148724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23875338567779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8ea982f0c050431861c96a8cf94cecd15d174_2459c8b9-c2a3-46dd-9c79-a6527621c78b.webp?v=1714704892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eb4c57d188ac9721ec953d117055a60540f03f_af994594-d11b-49c8-a429-dde92f58310f.webp?v=1714704895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102bf71d2ec58cab780bb483f61a38163d97fd3c_693013ee-f4a7-40fb-ace8-1ed7007b39b6.webp?v=1714704897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e252bad64bd0dffbfa95eaa012666f9b88880c_a17d628c-7ffc-4a58-9eb1-4af80b31d7a2.webp?v=1714704900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd4cba582ae1a17153700faf461530c5d7299f9f_46d6c9e0-138f-401e-a719-359898cddfd3.webp?v=1714704903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dca6d9cfe2614bb4a463aa188817d0d9334322e_c05adac3-993a-40fa-91b4-4bc2f3ff31a6.webp?v=1714704905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef04d02c4c04e6e0ba8b667933d447814be5287c_7452008c-c6f3-4049-b790-a22af1a86707.webp?v=1714704908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce90c026514ed69553fb987b343a76b63e15e875_19e1dd9e-2394-42cf-adb9-e60da1869f36.webp?v=1714704913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38c3aebfc94f2c73a55420053f2cac67a1e5ed0_e42e1e7d-c56c-47ea-92b6-1f558ecd53e5.webp?v=1714704915"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8ea982f0c050431861c96a8cf94cecd15d174_2459c8b9-c2a3-46dd-9c79-a6527621c78b.webp?v=1714704892","options":["color"],"media":[{"alt":null,"id":23875334996067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8ea982f0c050431861c96a8cf94cecd15d174_2459c8b9-c2a3-46dd-9c79-a6527621c78b.webp?v=1714704892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8ea982f0c050431861c96a8cf94cecd15d174_2459c8b9-c2a3-46dd-9c79-a6527621c78b.webp?v=1714704892","width":2000},{"alt":null,"id":23875335553123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eb4c57d188ac9721ec953d117055a60540f03f_af994594-d11b-49c8-a429-dde92f58310f.webp?v=1714704895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eb4c57d188ac9721ec953d117055a60540f03f_af994594-d11b-49c8-a429-dde92f58310f.webp?v=1714704895","width":2000},{"alt":null,"id":23875335979107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102bf71d2ec58cab780bb483f61a38163d97fd3c_693013ee-f4a7-40fb-ace8-1ed7007b39b6.webp?v=1714704897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102bf71d2ec58cab780bb483f61a38163d97fd3c_693013ee-f4a7-40fb-ace8-1ed7007b39b6.webp?v=1714704897","width":2000},{"alt":null,"id":23875336470627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e252bad64bd0dffbfa95eaa012666f9b88880c_a17d628c-7ffc-4a58-9eb1-4af80b31d7a2.webp?v=1714704900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e252bad64bd0dffbfa95eaa012666f9b88880c_a17d628c-7ffc-4a58-9eb1-4af80b31d7a2.webp?v=1714704900","width":2000},{"alt":null,"id":23875337060451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd4cba582ae1a17153700faf461530c5d7299f9f_46d6c9e0-138f-401e-a719-359898cddfd3.webp?v=1714704903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd4cba582ae1a17153700faf461530c5d7299f9f_46d6c9e0-138f-401e-a719-359898cddfd3.webp?v=1714704903","width":2000},{"alt":null,"id":23875337551971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dca6d9cfe2614bb4a463aa188817d0d9334322e_c05adac3-993a-40fa-91b4-4bc2f3ff31a6.webp?v=1714704905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dca6d9cfe2614bb4a463aa188817d0d9334322e_c05adac3-993a-40fa-91b4-4bc2f3ff31a6.webp?v=1714704905","width":2000},{"alt":null,"id":23875338010723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef04d02c4c04e6e0ba8b667933d447814be5287c_7452008c-c6f3-4049-b790-a22af1a86707.webp?v=1714704908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef04d02c4c04e6e0ba8b667933d447814be5287c_7452008c-c6f3-4049-b790-a22af1a86707.webp?v=1714704908","width":2000},{"alt":null,"id":23875338567779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910","width":2000},{"alt":null,"id":23875339026531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce90c026514ed69553fb987b343a76b63e15e875_19e1dd9e-2394-42cf-adb9-e60da1869f36.webp?v=1714704913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce90c026514ed69553fb987b343a76b63e15e875_19e1dd9e-2394-42cf-adb9-e60da1869f36.webp?v=1714704913","width":2000},{"alt":null,"id":23875339485283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38c3aebfc94f2c73a55420053f2cac67a1e5ed0_e42e1e7d-c56c-47ea-92b6-1f558ecd53e5.webp?v=1714704915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38c3aebfc94f2c73a55420053f2cac67a1e5ed0_e42e1e7d-c56c-47ea-92b6-1f558ecd53e5.webp?v=1714704915","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879148724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470435205219,"product_id":7407814770787,"position":8,"created_at":"2024-05-03T10:55:10+08:00","updated_at":"2024-05-03T10:55:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910","variant_ids":[41879148724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23875338567779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879148724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470435205219,"product_id":7407814770787,"position":8,"created_at":"2024-05-03T10:55:10+08:00","updated_at":"2024-05-03T10:55:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910","variant_ids":[41879148724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23875338567779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6837265842fbee623735a5fe5ae75c64064859_35af7ba3-7fd6-49bc-aacd-ce6e84d81b84.webp?v=1714704910"}},"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: "停產" }