$product = {"id":7416370331747,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop","handle":"iphone-8-mod-nx-printable-hq04","description":null,"published_at":"2024-06-11T16:57:12+08:00","created_at":"2024-05-06T14:43:51+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":41919006343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491960111203,"product_id":7416370331747,"position":1,"created_at":"2024-05-06T14:43:53+08:00","updated_at":"2024-05-06T14:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","variant_ids":[41919006343267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23897373311075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79fa14ad7b32e13a85b7054da63ead76ff13f5f5_254b951b-94c5-482a-90ac-4088e4bc01ce.webp?v=1714977836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5795e6ef76f97b09b0716aa71a92faee71c2a9_1e4357db-bd91-4d8d-9872-1be41825fc86.webp?v=1714977838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d055a8433d6499ac77d688887975e71636be95e8_9cb68aef-d8cb-4288-a515-cd2576154511.webp?v=1714977841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97d7697eca112c7443b30596e82fd39de99da02_d77d40bd-0dc7-41d3-8735-6a6f7946fa97.webp?v=1714977844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caeb2f59be4ac2da975a90085e5023f224f22c9_5da4ff1c-0fd0-4275-8c53-5b0d19ce397a.webp?v=1714977847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad15a516abfbd1117a719a63a91772105d073_dda02494-6a98-4462-bf1a-01fb0f3ab084.webp?v=1714977849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da60668d81151f015f28845a75acce6866fc6ff_b9b37584-7d6a-4817-8189-b7093b5966f1.webp?v=1714977852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50fb351a8f30764bec32a89e052d0c7ada05221_98ec6413-3f25-47b0-9d76-6a0343d7a54e.webp?v=1714977855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/876c9582ebf8faa29dc65c4dd9b824db0de9c78e_88e1532d-9828-4af1-b501-58fabae293f2.webp?v=1714977857"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","options":["color"],"media":[{"alt":null,"id":23897373311075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","width":2000},{"alt":null,"id":23897374064739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79fa14ad7b32e13a85b7054da63ead76ff13f5f5_254b951b-94c5-482a-90ac-4088e4bc01ce.webp?v=1714977836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79fa14ad7b32e13a85b7054da63ead76ff13f5f5_254b951b-94c5-482a-90ac-4088e4bc01ce.webp?v=1714977836","width":2000},{"alt":null,"id":23897374621795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5795e6ef76f97b09b0716aa71a92faee71c2a9_1e4357db-bd91-4d8d-9872-1be41825fc86.webp?v=1714977838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5795e6ef76f97b09b0716aa71a92faee71c2a9_1e4357db-bd91-4d8d-9872-1be41825fc86.webp?v=1714977838","width":2000},{"alt":null,"id":23897375211619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d055a8433d6499ac77d688887975e71636be95e8_9cb68aef-d8cb-4288-a515-cd2576154511.webp?v=1714977841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d055a8433d6499ac77d688887975e71636be95e8_9cb68aef-d8cb-4288-a515-cd2576154511.webp?v=1714977841","width":2000},{"alt":null,"id":23897375735907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97d7697eca112c7443b30596e82fd39de99da02_d77d40bd-0dc7-41d3-8735-6a6f7946fa97.webp?v=1714977844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97d7697eca112c7443b30596e82fd39de99da02_d77d40bd-0dc7-41d3-8735-6a6f7946fa97.webp?v=1714977844","width":2000},{"alt":null,"id":23897376522339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caeb2f59be4ac2da975a90085e5023f224f22c9_5da4ff1c-0fd0-4275-8c53-5b0d19ce397a.webp?v=1714977847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caeb2f59be4ac2da975a90085e5023f224f22c9_5da4ff1c-0fd0-4275-8c53-5b0d19ce397a.webp?v=1714977847","width":2000},{"alt":null,"id":23897377112163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad15a516abfbd1117a719a63a91772105d073_dda02494-6a98-4462-bf1a-01fb0f3ab084.webp?v=1714977849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad15a516abfbd1117a719a63a91772105d073_dda02494-6a98-4462-bf1a-01fb0f3ab084.webp?v=1714977849","width":2000},{"alt":null,"id":23897377505379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da60668d81151f015f28845a75acce6866fc6ff_b9b37584-7d6a-4817-8189-b7093b5966f1.webp?v=1714977852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da60668d81151f015f28845a75acce6866fc6ff_b9b37584-7d6a-4817-8189-b7093b5966f1.webp?v=1714977852","width":2000},{"alt":null,"id":23897378127971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50fb351a8f30764bec32a89e052d0c7ada05221_98ec6413-3f25-47b0-9d76-6a0343d7a54e.webp?v=1714977855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50fb351a8f30764bec32a89e052d0c7ada05221_98ec6413-3f25-47b0-9d76-6a0343d7a54e.webp?v=1714977855","width":2000},{"alt":null,"id":23897378783331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/876c9582ebf8faa29dc65c4dd9b824db0de9c78e_88e1532d-9828-4af1-b501-58fabae293f2.webp?v=1714977857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/876c9582ebf8faa29dc65c4dd9b824db0de9c78e_88e1532d-9828-4af1-b501-58fabae293f2.webp?v=1714977857","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919006343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491960111203,"product_id":7416370331747,"position":1,"created_at":"2024-05-06T14:43:53+08:00","updated_at":"2024-05-06T14:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","variant_ids":[41919006343267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23897373311075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919006343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491960111203,"product_id":7416370331747,"position":1,"created_at":"2024-05-06T14:43:53+08:00","updated_at":"2024-05-06T14:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833","variant_ids":[41919006343267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23897373311075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa28f519b53395866eece6cda4fc21a37e4cda0_1b865add-7d62-4b83-986b-b9489d0520bd.webp?v=1714977833"}},"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: "停產" }