$product = {"id":7407846588515,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 右看看","handle":"iphone-14-plus-mod-nx-printable-iv04","description":null,"published_at":"2024-06-11T16:24:29+08:00","created_at":"2024-05-03T11:01:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41879572938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470513520739,"product_id":7407846588515,"position":3,"created_at":"2024-05-03T11:01:44+08:00","updated_at":"2024-05-03T11:01:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304","variant_ids":[41879572938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 右看看 - 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-IV04","featured_media":{"alt":null,"id":23875417276515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe2c91d1983953cec5af7e78fa735a51ae53046_0c7c1447-0274-46e2-8fc8-47781d0b4ab2.webp?v=1714705299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f931c0ba99d23336a0e798ebfa0395c7a3ed4d27_5d5fb108-823c-4b9a-8db9-f2cb568c5d20.webp?v=1714705301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8513abae3b45c41646880cac72550ed9c4c166_6a7f1cc6-5381-4659-a5fa-0a24beddf11a.webp?v=1714705306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e17ee49c609dd156af30aa86b694b39e6369e3c_4d9780c3-0801-4fc3-86dd-69cdca75c435.webp?v=1714705308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7528c92765d03675a22d5054f6701935f6b4ac3d_f8434de5-1cbb-47c2-baab-cf9c337159bd.webp?v=1714705310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c059181e2096f39410036a99d9bd53c273f9999a_c87376c7-98bb-41aa-9dc5-6d5047f831d4.webp?v=1714705313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a07b3bf17644cbf095b2fd1f230c2c5995d9f13_7689512b-0297-4d9e-a5a6-5e5507e38126.webp?v=1714705315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39d2adbf357ef33fe51f245646c279763c5b7efd_2a626014-ac77-43be-8a54-1dfa51521334.webp?v=1714705318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c84e82fd258222ea19f7d227be9ca1e188fbe0_4952c024-1c05-48de-819f-cb262f6283b6.webp?v=1714705320"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe2c91d1983953cec5af7e78fa735a51ae53046_0c7c1447-0274-46e2-8fc8-47781d0b4ab2.webp?v=1714705299","options":["color"],"media":[{"alt":null,"id":23875416490083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe2c91d1983953cec5af7e78fa735a51ae53046_0c7c1447-0274-46e2-8fc8-47781d0b4ab2.webp?v=1714705299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe2c91d1983953cec5af7e78fa735a51ae53046_0c7c1447-0274-46e2-8fc8-47781d0b4ab2.webp?v=1714705299","width":2000},{"alt":null,"id":23875416883299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f931c0ba99d23336a0e798ebfa0395c7a3ed4d27_5d5fb108-823c-4b9a-8db9-f2cb568c5d20.webp?v=1714705301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f931c0ba99d23336a0e798ebfa0395c7a3ed4d27_5d5fb108-823c-4b9a-8db9-f2cb568c5d20.webp?v=1714705301","width":2000},{"alt":null,"id":23875417276515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304","width":2000},{"alt":null,"id":23875417702499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8513abae3b45c41646880cac72550ed9c4c166_6a7f1cc6-5381-4659-a5fa-0a24beddf11a.webp?v=1714705306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8513abae3b45c41646880cac72550ed9c4c166_6a7f1cc6-5381-4659-a5fa-0a24beddf11a.webp?v=1714705306","width":2000},{"alt":null,"id":23875418095715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e17ee49c609dd156af30aa86b694b39e6369e3c_4d9780c3-0801-4fc3-86dd-69cdca75c435.webp?v=1714705308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e17ee49c609dd156af30aa86b694b39e6369e3c_4d9780c3-0801-4fc3-86dd-69cdca75c435.webp?v=1714705308","width":2000},{"alt":null,"id":23875418587235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7528c92765d03675a22d5054f6701935f6b4ac3d_f8434de5-1cbb-47c2-baab-cf9c337159bd.webp?v=1714705310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7528c92765d03675a22d5054f6701935f6b4ac3d_f8434de5-1cbb-47c2-baab-cf9c337159bd.webp?v=1714705310","width":2000},{"alt":null,"id":23875419144291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c059181e2096f39410036a99d9bd53c273f9999a_c87376c7-98bb-41aa-9dc5-6d5047f831d4.webp?v=1714705313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c059181e2096f39410036a99d9bd53c273f9999a_c87376c7-98bb-41aa-9dc5-6d5047f831d4.webp?v=1714705313","width":2000},{"alt":null,"id":23875419635811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a07b3bf17644cbf095b2fd1f230c2c5995d9f13_7689512b-0297-4d9e-a5a6-5e5507e38126.webp?v=1714705315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a07b3bf17644cbf095b2fd1f230c2c5995d9f13_7689512b-0297-4d9e-a5a6-5e5507e38126.webp?v=1714705315","width":2000},{"alt":null,"id":23875420094563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39d2adbf357ef33fe51f245646c279763c5b7efd_2a626014-ac77-43be-8a54-1dfa51521334.webp?v=1714705318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39d2adbf357ef33fe51f245646c279763c5b7efd_2a626014-ac77-43be-8a54-1dfa51521334.webp?v=1714705318","width":2000},{"alt":null,"id":23875420618851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c84e82fd258222ea19f7d227be9ca1e188fbe0_4952c024-1c05-48de-819f-cb262f6283b6.webp?v=1714705320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c84e82fd258222ea19f7d227be9ca1e188fbe0_4952c024-1c05-48de-819f-cb262f6283b6.webp?v=1714705320","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879572938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470513520739,"product_id":7407846588515,"position":3,"created_at":"2024-05-03T11:01:44+08:00","updated_at":"2024-05-03T11:01:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304","variant_ids":[41879572938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 右看看 - 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-IV04","featured_media":{"alt":null,"id":23875417276515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879572938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470513520739,"product_id":7407846588515,"position":3,"created_at":"2024-05-03T11:01:44+08:00","updated_at":"2024-05-03T11:01:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304","variant_ids":[41879572938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 右看看 - 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-IV04","featured_media":{"alt":null,"id":23875417276515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82b182a9246ea07582165b6fb66ec96eb4b042a_e0df776e-25b3-4638-93fe-19cc327a9d72.webp?v=1714705304"}},"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: "停產" }