$product = {"id":7416351064163,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-8-mod-nx-printable-hq01","description":null,"published_at":"2024-06-11T16:56:40+08:00","created_at":"2024-05-06T14:40:07+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":41918793842787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916136547,"product_id":7416351064163,"position":7,"created_at":"2024-05-06T14:40:23+08:00","updated_at":"2024-05-06T14:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623","variant_ids":[41918793842787]},"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-HQ01","featured_media":{"alt":null,"id":23897329074275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d237cd11344f5bb336ec239b672faa865ae07577_d88247a0-335f-4538-9e72-b407de202e82.webp?v=1714977609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f64bc04a92bd6b2c973a0c80dc9d7cefdf6afb1_e3050118-f547-4565-80b9-86679196575a.webp?v=1714977612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4024e3d292d9c92f3146c0952ecbbaa43df05d_dbf770e1-c7da-452d-b7e0-c0fb34bd471a.webp?v=1714977614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bc73849e091463a2d3be2da448dd98ac63e937_c7feaaaf-ea73-4083-aa69-205440bb1460.webp?v=1714977616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0203e0d54b4db8fa413a52053dd97a91b1e23b_bc8c06df-8b57-496b-a87d-aa1e7a50d6f5.webp?v=1714977619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881cee786e7fb16a009107c2bc32f57b34f32342_6b618a71-0d94-49b2-a2a3-761427c53211.webp?v=1714977621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b7ac628ef90f9b67631668fe0ad549768ae77_5ad383de-fb01-4137-a598-c626faa21046.webp?v=1714977625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43925df8631d49aaddad8cb38369b72fe96537c2_e848e825-8f2b-46e4-beff-482514e06792.webp?v=1714977630"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d237cd11344f5bb336ec239b672faa865ae07577_d88247a0-335f-4538-9e72-b407de202e82.webp?v=1714977609","options":["color"],"media":[{"alt":null,"id":23897326452835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d237cd11344f5bb336ec239b672faa865ae07577_d88247a0-335f-4538-9e72-b407de202e82.webp?v=1714977609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d237cd11344f5bb336ec239b672faa865ae07577_d88247a0-335f-4538-9e72-b407de202e82.webp?v=1714977609","width":2000},{"alt":null,"id":23897326878819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f64bc04a92bd6b2c973a0c80dc9d7cefdf6afb1_e3050118-f547-4565-80b9-86679196575a.webp?v=1714977612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f64bc04a92bd6b2c973a0c80dc9d7cefdf6afb1_e3050118-f547-4565-80b9-86679196575a.webp?v=1714977612","width":2000},{"alt":null,"id":23897327304803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4024e3d292d9c92f3146c0952ecbbaa43df05d_dbf770e1-c7da-452d-b7e0-c0fb34bd471a.webp?v=1714977614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4024e3d292d9c92f3146c0952ecbbaa43df05d_dbf770e1-c7da-452d-b7e0-c0fb34bd471a.webp?v=1714977614","width":2000},{"alt":null,"id":23897327796323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bc73849e091463a2d3be2da448dd98ac63e937_c7feaaaf-ea73-4083-aa69-205440bb1460.webp?v=1714977616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bc73849e091463a2d3be2da448dd98ac63e937_c7feaaaf-ea73-4083-aa69-205440bb1460.webp?v=1714977616","width":2000},{"alt":null,"id":23897328156771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0203e0d54b4db8fa413a52053dd97a91b1e23b_bc8c06df-8b57-496b-a87d-aa1e7a50d6f5.webp?v=1714977619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0203e0d54b4db8fa413a52053dd97a91b1e23b_bc8c06df-8b57-496b-a87d-aa1e7a50d6f5.webp?v=1714977619","width":2000},{"alt":null,"id":23897328713827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881cee786e7fb16a009107c2bc32f57b34f32342_6b618a71-0d94-49b2-a2a3-761427c53211.webp?v=1714977621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881cee786e7fb16a009107c2bc32f57b34f32342_6b618a71-0d94-49b2-a2a3-761427c53211.webp?v=1714977621","width":2000},{"alt":null,"id":23897329074275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623","width":2000},{"alt":null,"id":23897329500259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b7ac628ef90f9b67631668fe0ad549768ae77_5ad383de-fb01-4137-a598-c626faa21046.webp?v=1714977625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3b7ac628ef90f9b67631668fe0ad549768ae77_5ad383de-fb01-4137-a598-c626faa21046.webp?v=1714977625","width":2000},{"alt":null,"id":23897330483299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43925df8631d49aaddad8cb38369b72fe96537c2_e848e825-8f2b-46e4-beff-482514e06792.webp?v=1714977630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43925df8631d49aaddad8cb38369b72fe96537c2_e848e825-8f2b-46e4-beff-482514e06792.webp?v=1714977630","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918793842787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916136547,"product_id":7416351064163,"position":7,"created_at":"2024-05-06T14:40:23+08:00","updated_at":"2024-05-06T14:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623","variant_ids":[41918793842787]},"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-HQ01","featured_media":{"alt":null,"id":23897329074275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918793842787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916136547,"product_id":7416351064163,"position":7,"created_at":"2024-05-06T14:40:23+08:00","updated_at":"2024-05-06T14:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623","variant_ids":[41918793842787]},"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-HQ01","featured_media":{"alt":null,"id":23897329074275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf909f29254099c48964900a31f89191537aabb_712fda28-2684-424e-91cd-691021bd16f3.webp?v=1714977623"}},"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: "停產" }