$product = {"id":7407901016163,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑女與小丑","handle":"iphone-14-plus-mod-nx-printable-sb18","description":null,"published_at":"2024-06-11T16:26:01+08:00","created_at":"2024-05-03T11:12:27+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":41880289869923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656913507,"product_id":7407901016163,"position":7,"created_at":"2024-05-03T11:12:44+08:00","updated_at":"2024-05-03T11:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964","variant_ids":[41880289869923]},"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-SB18","featured_media":{"alt":null,"id":23875560865891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164fcff4f6204e38d660b1ce19739056252aeaa9_d03cfaa9-65b6-4a69-836c-47ebb7f20f2c.webp?v=1714705950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106254d6936885bd983788b779f8cf1f73f00cf0_4a482570-36d2-4a87-a759-07d5137f57dc.webp?v=1714705952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ea9a7ba7fb022754fbe6296483b8db5d9d8d48_4d938201-6135-4d43-aa7a-0c000085a8c4.webp?v=1714705954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eae3af2af04562b7648c89864e208c2f8ece36b_1a2d11d3-6842-49c1-a74a-4bea8ac081a4.webp?v=1714705956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0e91c5743857c709fcc3bd42a1b4c97377ce5d_7dd24282-3600-4cf0-94cf-ac80ceb0d0f7.webp?v=1714705959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392d15b76d315d68349779a785d0258500f3c556_70106175-3d68-4f57-882d-8bbfbe9876c4.webp?v=1714705961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a670609b3c697fb1638c729985b930dd18e512_2ceea465-47c9-4dbb-b307-8601d3b18473.webp?v=1714705966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8b84c425e056ccf9820f8b9fc572a6d9c1511_5fe2f855-438e-46c8-99d2-f4f7b07015dd.webp?v=1714705969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79643b9e40bf54892b6eb3a1ccb3d0d07d28390b_dce28534-6e96-42c9-8f63-3840215264fa.webp?v=1714705971"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164fcff4f6204e38d660b1ce19739056252aeaa9_d03cfaa9-65b6-4a69-836c-47ebb7f20f2c.webp?v=1714705950","options":["color"],"media":[{"alt":null,"id":23875558309987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164fcff4f6204e38d660b1ce19739056252aeaa9_d03cfaa9-65b6-4a69-836c-47ebb7f20f2c.webp?v=1714705950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164fcff4f6204e38d660b1ce19739056252aeaa9_d03cfaa9-65b6-4a69-836c-47ebb7f20f2c.webp?v=1714705950","width":2000},{"alt":null,"id":23875558834275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106254d6936885bd983788b779f8cf1f73f00cf0_4a482570-36d2-4a87-a759-07d5137f57dc.webp?v=1714705952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106254d6936885bd983788b779f8cf1f73f00cf0_4a482570-36d2-4a87-a759-07d5137f57dc.webp?v=1714705952","width":2000},{"alt":null,"id":23875559129187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ea9a7ba7fb022754fbe6296483b8db5d9d8d48_4d938201-6135-4d43-aa7a-0c000085a8c4.webp?v=1714705954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ea9a7ba7fb022754fbe6296483b8db5d9d8d48_4d938201-6135-4d43-aa7a-0c000085a8c4.webp?v=1714705954","width":2000},{"alt":null,"id":23875559620707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eae3af2af04562b7648c89864e208c2f8ece36b_1a2d11d3-6842-49c1-a74a-4bea8ac081a4.webp?v=1714705956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eae3af2af04562b7648c89864e208c2f8ece36b_1a2d11d3-6842-49c1-a74a-4bea8ac081a4.webp?v=1714705956","width":2000},{"alt":null,"id":23875559981155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0e91c5743857c709fcc3bd42a1b4c97377ce5d_7dd24282-3600-4cf0-94cf-ac80ceb0d0f7.webp?v=1714705959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0e91c5743857c709fcc3bd42a1b4c97377ce5d_7dd24282-3600-4cf0-94cf-ac80ceb0d0f7.webp?v=1714705959","width":2000},{"alt":null,"id":23875560472675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392d15b76d315d68349779a785d0258500f3c556_70106175-3d68-4f57-882d-8bbfbe9876c4.webp?v=1714705961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392d15b76d315d68349779a785d0258500f3c556_70106175-3d68-4f57-882d-8bbfbe9876c4.webp?v=1714705961","width":2000},{"alt":null,"id":23875560865891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964","width":2000},{"alt":null,"id":23875561291875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a670609b3c697fb1638c729985b930dd18e512_2ceea465-47c9-4dbb-b307-8601d3b18473.webp?v=1714705966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a670609b3c697fb1638c729985b930dd18e512_2ceea465-47c9-4dbb-b307-8601d3b18473.webp?v=1714705966","width":2000},{"alt":null,"id":23875561652323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8b84c425e056ccf9820f8b9fc572a6d9c1511_5fe2f855-438e-46c8-99d2-f4f7b07015dd.webp?v=1714705969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8b84c425e056ccf9820f8b9fc572a6d9c1511_5fe2f855-438e-46c8-99d2-f4f7b07015dd.webp?v=1714705969","width":2000},{"alt":null,"id":23875561980003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79643b9e40bf54892b6eb3a1ccb3d0d07d28390b_dce28534-6e96-42c9-8f63-3840215264fa.webp?v=1714705971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79643b9e40bf54892b6eb3a1ccb3d0d07d28390b_dce28534-6e96-42c9-8f63-3840215264fa.webp?v=1714705971","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880289869923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656913507,"product_id":7407901016163,"position":7,"created_at":"2024-05-03T11:12:44+08:00","updated_at":"2024-05-03T11:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964","variant_ids":[41880289869923]},"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-SB18","featured_media":{"alt":null,"id":23875560865891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880289869923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656913507,"product_id":7407901016163,"position":7,"created_at":"2024-05-03T11:12:44+08:00","updated_at":"2024-05-03T11:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964","variant_ids":[41880289869923]},"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-SB18","featured_media":{"alt":null,"id":23875560865891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef76c49e510d597bb51ca8c89353558f9468288_490df184-d2e2-479c-afd0-5fe64b142102.webp?v=1714705964"}},"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: "停產" }