$product = {"id":7408409313379,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-12-pro-max-mod-nx-printable-hq06","description":null,"published_at":"2024-06-11T16:36:26+08:00","created_at":"2024-05-03T15:20:54+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 12 pro max","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":41885157261411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472197763171,"product_id":7408409313379,"position":8,"created_at":"2024-05-03T15:21:13+08:00","updated_at":"2024-05-03T15:21:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873","variant_ids":[41885157261411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-HQ06","featured_media":{"alt":null,"id":23877113610339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff924ef42d32a8fb0300039b87a01cb43eff8828_05ff5d72-77f1-4588-9152-8519fa38cb0e.webp?v=1714720856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5026b24255d9adbe73e48c1ed96c98bc6668a1_292e6b8c-82f8-494d-9ea9-01bf390e8263.webp?v=1714720858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775f5dfa1d90f7401b8673a36efa258874ebdfd0_3d39ef92-23ed-4d9b-a5af-4bc465c67d3a.webp?v=1714720861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90a08331e90b1dd0f81244e008b1cd3790eccbbf_68088bb2-42e6-4ae0-b18e-e45274ba7b4c.webp?v=1714720863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386ceed922c1e42bf3bb859ac7ba63946444e835_7ea197fb-d2a1-4e58-8d82-7a95737fd685.webp?v=1714720866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f52bd908b0392bfe2bdeff09c694ec83c8eabf_273accb5-04e2-45fd-a230-b8864be1473d.webp?v=1714720868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316ca909b7e92489f69c565c3460fb1c24c31a1_b44eeece-1cb0-4413-ba79-101276bac910.webp?v=1714720870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd267db50560e9a5d549d84132b0858bd475613_dccead4c-f02b-4933-87de-02721bb7ac57.webp?v=1714720875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ae2d2f09ce6633710d73c81d20b1e2293125cb_ed548b48-59bc-4039-a4c0-61b9f6dd1740.webp?v=1714720878"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff924ef42d32a8fb0300039b87a01cb43eff8828_05ff5d72-77f1-4588-9152-8519fa38cb0e.webp?v=1714720856","options":["color"],"media":[{"alt":null,"id":23877107187811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff924ef42d32a8fb0300039b87a01cb43eff8828_05ff5d72-77f1-4588-9152-8519fa38cb0e.webp?v=1714720856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff924ef42d32a8fb0300039b87a01cb43eff8828_05ff5d72-77f1-4588-9152-8519fa38cb0e.webp?v=1714720856","width":2000},{"alt":null,"id":23877108662371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5026b24255d9adbe73e48c1ed96c98bc6668a1_292e6b8c-82f8-494d-9ea9-01bf390e8263.webp?v=1714720858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5026b24255d9adbe73e48c1ed96c98bc6668a1_292e6b8c-82f8-494d-9ea9-01bf390e8263.webp?v=1714720858","width":2000},{"alt":null,"id":23877109317731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775f5dfa1d90f7401b8673a36efa258874ebdfd0_3d39ef92-23ed-4d9b-a5af-4bc465c67d3a.webp?v=1714720861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775f5dfa1d90f7401b8673a36efa258874ebdfd0_3d39ef92-23ed-4d9b-a5af-4bc465c67d3a.webp?v=1714720861","width":2000},{"alt":null,"id":23877110300771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90a08331e90b1dd0f81244e008b1cd3790eccbbf_68088bb2-42e6-4ae0-b18e-e45274ba7b4c.webp?v=1714720863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90a08331e90b1dd0f81244e008b1cd3790eccbbf_68088bb2-42e6-4ae0-b18e-e45274ba7b4c.webp?v=1714720863","width":2000},{"alt":null,"id":23877111677027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386ceed922c1e42bf3bb859ac7ba63946444e835_7ea197fb-d2a1-4e58-8d82-7a95737fd685.webp?v=1714720866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386ceed922c1e42bf3bb859ac7ba63946444e835_7ea197fb-d2a1-4e58-8d82-7a95737fd685.webp?v=1714720866","width":2000},{"alt":null,"id":23877112201315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f52bd908b0392bfe2bdeff09c694ec83c8eabf_273accb5-04e2-45fd-a230-b8864be1473d.webp?v=1714720868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f52bd908b0392bfe2bdeff09c694ec83c8eabf_273accb5-04e2-45fd-a230-b8864be1473d.webp?v=1714720868","width":2000},{"alt":null,"id":23877112954979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316ca909b7e92489f69c565c3460fb1c24c31a1_b44eeece-1cb0-4413-ba79-101276bac910.webp?v=1714720870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316ca909b7e92489f69c565c3460fb1c24c31a1_b44eeece-1cb0-4413-ba79-101276bac910.webp?v=1714720870","width":2000},{"alt":null,"id":23877113610339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873","width":2000},{"alt":null,"id":23877114265699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd267db50560e9a5d549d84132b0858bd475613_dccead4c-f02b-4933-87de-02721bb7ac57.webp?v=1714720875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd267db50560e9a5d549d84132b0858bd475613_dccead4c-f02b-4933-87de-02721bb7ac57.webp?v=1714720875","width":2000},{"alt":null,"id":23877114757219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ae2d2f09ce6633710d73c81d20b1e2293125cb_ed548b48-59bc-4039-a4c0-61b9f6dd1740.webp?v=1714720878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ae2d2f09ce6633710d73c81d20b1e2293125cb_ed548b48-59bc-4039-a4c0-61b9f6dd1740.webp?v=1714720878","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885157261411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472197763171,"product_id":7408409313379,"position":8,"created_at":"2024-05-03T15:21:13+08:00","updated_at":"2024-05-03T15:21:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873","variant_ids":[41885157261411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-HQ06","featured_media":{"alt":null,"id":23877113610339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885157261411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472197763171,"product_id":7408409313379,"position":8,"created_at":"2024-05-03T15:21:13+08:00","updated_at":"2024-05-03T15:21:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873","variant_ids":[41885157261411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-HQ06","featured_media":{"alt":null,"id":23877113610339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a50d534f631340ca08b7891fec6739d76807902_0896f713-3c67-4cda-b2cc-c22688503a3e.webp?v=1714720873"}},"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: "停產" }