$product = {"id":7416361451619,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-8-mod-nx-printable-hq06","description":null,"published_at":"2024-06-11T16:56:57+08:00","created_at":"2024-05-06T14:41:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41918900830307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941597283,"product_id":7416361451619,"position":10,"created_at":"2024-05-06T14:42:24+08:00","updated_at":"2024-05-06T14:42:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744","variant_ids":[41918900830307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - 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":"NPB0105424-HQ06","featured_media":{"alt":null,"id":23897354666083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d9a9ce1d8cabc52b793bec1e8d53d75f9f545d_53ead7c8-c39c-420d-ad85-cabc47e33f5e.webp?v=1714977721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8a038b832e38b9f82957f538b72e29734cdffe6_7b552313-5ae5-40a0-91ad-9e67cf4443ac.webp?v=1714977724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f70200d7174606f58b99a22a6daa8b28a897d7_72f9ae05-e498-458d-904b-7cba976dbc2a.webp?v=1714977726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b6531d72952e5f653ef408dc08f9eab2c1dab0_79f15c8c-b9b1-4aa5-9092-6751d1f766a0.webp?v=1714977728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cd05bc1986274dc658d8665ef3ef9999f5516b_afaef886-f530-4f51-936e-d99f81d45ee2.webp?v=1714977731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67a4ff41553624605ca530e155f28a3d6ffdd82_6efb7bcc-c294-470a-a5a6-bd6117bd5114.webp?v=1714977733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a689ad50db096f27e6ea34637cff768545d32_000251a7-b5bd-4022-b482-dbb385d696b3.webp?v=1714977736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053b8bdf94d171914bc83e41d8de3caa8ab73be_c603ffa2-f9a8-4552-8983-10da28cf781b.webp?v=1714977739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b3a02d78f8c7c6a02e06d8a3373c8575c2dc2b_f8d91862-c81c-41a8-8e68-ee791d98ff3c.webp?v=1714977742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d9a9ce1d8cabc52b793bec1e8d53d75f9f545d_53ead7c8-c39c-420d-ad85-cabc47e33f5e.webp?v=1714977721","options":["color"],"media":[{"alt":null,"id":23897350439011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d9a9ce1d8cabc52b793bec1e8d53d75f9f545d_53ead7c8-c39c-420d-ad85-cabc47e33f5e.webp?v=1714977721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d9a9ce1d8cabc52b793bec1e8d53d75f9f545d_53ead7c8-c39c-420d-ad85-cabc47e33f5e.webp?v=1714977721","width":2000},{"alt":null,"id":23897350832227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8a038b832e38b9f82957f538b72e29734cdffe6_7b552313-5ae5-40a0-91ad-9e67cf4443ac.webp?v=1714977724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8a038b832e38b9f82957f538b72e29734cdffe6_7b552313-5ae5-40a0-91ad-9e67cf4443ac.webp?v=1714977724","width":2000},{"alt":null,"id":23897351225443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f70200d7174606f58b99a22a6daa8b28a897d7_72f9ae05-e498-458d-904b-7cba976dbc2a.webp?v=1714977726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9f70200d7174606f58b99a22a6daa8b28a897d7_72f9ae05-e498-458d-904b-7cba976dbc2a.webp?v=1714977726","width":2000},{"alt":null,"id":23897351815267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b6531d72952e5f653ef408dc08f9eab2c1dab0_79f15c8c-b9b1-4aa5-9092-6751d1f766a0.webp?v=1714977728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b6531d72952e5f653ef408dc08f9eab2c1dab0_79f15c8c-b9b1-4aa5-9092-6751d1f766a0.webp?v=1714977728","width":2000},{"alt":null,"id":23897352175715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cd05bc1986274dc658d8665ef3ef9999f5516b_afaef886-f530-4f51-936e-d99f81d45ee2.webp?v=1714977731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cd05bc1986274dc658d8665ef3ef9999f5516b_afaef886-f530-4f51-936e-d99f81d45ee2.webp?v=1714977731","width":2000},{"alt":null,"id":23897352929379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67a4ff41553624605ca530e155f28a3d6ffdd82_6efb7bcc-c294-470a-a5a6-bd6117bd5114.webp?v=1714977733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67a4ff41553624605ca530e155f28a3d6ffdd82_6efb7bcc-c294-470a-a5a6-bd6117bd5114.webp?v=1714977733","width":2000},{"alt":null,"id":23897353486435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a689ad50db096f27e6ea34637cff768545d32_000251a7-b5bd-4022-b482-dbb385d696b3.webp?v=1714977736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a689ad50db096f27e6ea34637cff768545d32_000251a7-b5bd-4022-b482-dbb385d696b3.webp?v=1714977736","width":2000},{"alt":null,"id":23897354043491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053b8bdf94d171914bc83e41d8de3caa8ab73be_c603ffa2-f9a8-4552-8983-10da28cf781b.webp?v=1714977739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053b8bdf94d171914bc83e41d8de3caa8ab73be_c603ffa2-f9a8-4552-8983-10da28cf781b.webp?v=1714977739","width":2000},{"alt":null,"id":23897354272867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b3a02d78f8c7c6a02e06d8a3373c8575c2dc2b_f8d91862-c81c-41a8-8e68-ee791d98ff3c.webp?v=1714977742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b3a02d78f8c7c6a02e06d8a3373c8575c2dc2b_f8d91862-c81c-41a8-8e68-ee791d98ff3c.webp?v=1714977742","width":2000},{"alt":null,"id":23897354666083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918900830307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941597283,"product_id":7416361451619,"position":10,"created_at":"2024-05-06T14:42:24+08:00","updated_at":"2024-05-06T14:42:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744","variant_ids":[41918900830307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - 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":"NPB0105424-HQ06","featured_media":{"alt":null,"id":23897354666083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918900830307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941597283,"product_id":7416361451619,"position":10,"created_at":"2024-05-06T14:42:24+08:00","updated_at":"2024-05-06T14:42:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744","variant_ids":[41918900830307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - 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":"NPB0105424-HQ06","featured_media":{"alt":null,"id":23897354666083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620236eec1fcf004cc775bcfae07f0ffefb15536_fe9a7ad5-7c9f-4166-a696-c96e762e128f.webp?v=1714977744"}},"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: "停產" }