$product = {"id":7411440418915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭狗狗","handle":"iphone-14-plus-mod-nx-magsafe-printable-hq02","description":null,"published_at":"2024-06-11T17:45:05+08:00","created_at":"2024-05-05T00:30:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41898919723107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480430297187,"product_id":7411440418915,"position":2,"created_at":"2024-05-05T00:30:23+08:00","updated_at":"2024-05-05T00:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223","variant_ids":[41898919723107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ02","featured_media":{"alt":null,"id":23885682081891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc6fff9e1e1bf1ae183a456fa6721ea96927c05c_b3206d16-5056-4c13-8ad7-6e05cf420c7d.webp?v=1714840221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657eb1f8a912468b026c745143759998d843f4d9_c8cac7f4-9681-4c51-8d69-a59cf4df4aa6.webp?v=1714840225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8738a3b0d3289cb037d57f61e5f89621c4bd12bf_eb0013d6-9271-414e-83ec-3b970fce6caa.webp?v=1714840228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3d6ad98acbe23b4dc59f44c60951b06b253e51_7b13834d-f8ef-4201-8ba6-9fb052153341.webp?v=1714840230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf3c192380d49cc8457de0e844744a023ea47a7_9a107d4e-1981-4e2d-9273-696f10d65dec.webp?v=1714840232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481c26fa533252c6919eeacf9026c74b98a883da_7e0fb41f-6ab3-42b2-9dd0-ce2fe960ae6d.webp?v=1714840235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5055719b23600cc399f1a6f4c371dc7e91cc4b0b_75e1d620-1c0e-4aea-b915-9b94da6e5738.webp?v=1714840237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/808ef90aef14bd446567c212140d51ed7ea97208_cb07b2a8-19ce-475b-9883-45dcf0d9190f.webp?v=1714840239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49c78f2b63c317c66c341c249ccca15d590b9cc7_77a1c137-b628-4b2f-bc3a-bb0b918249c9.webp?v=1714840242"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc6fff9e1e1bf1ae183a456fa6721ea96927c05c_b3206d16-5056-4c13-8ad7-6e05cf420c7d.webp?v=1714840221","options":["color"],"media":[{"alt":null,"id":23885681590371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc6fff9e1e1bf1ae183a456fa6721ea96927c05c_b3206d16-5056-4c13-8ad7-6e05cf420c7d.webp?v=1714840221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc6fff9e1e1bf1ae183a456fa6721ea96927c05c_b3206d16-5056-4c13-8ad7-6e05cf420c7d.webp?v=1714840221","width":2000},{"alt":null,"id":23885682081891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223","width":2000},{"alt":null,"id":23885682573411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657eb1f8a912468b026c745143759998d843f4d9_c8cac7f4-9681-4c51-8d69-a59cf4df4aa6.webp?v=1714840225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657eb1f8a912468b026c745143759998d843f4d9_c8cac7f4-9681-4c51-8d69-a59cf4df4aa6.webp?v=1714840225","width":2000},{"alt":null,"id":23885683228771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8738a3b0d3289cb037d57f61e5f89621c4bd12bf_eb0013d6-9271-414e-83ec-3b970fce6caa.webp?v=1714840228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8738a3b0d3289cb037d57f61e5f89621c4bd12bf_eb0013d6-9271-414e-83ec-3b970fce6caa.webp?v=1714840228","width":2000},{"alt":null,"id":23885683753059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3d6ad98acbe23b4dc59f44c60951b06b253e51_7b13834d-f8ef-4201-8ba6-9fb052153341.webp?v=1714840230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3d6ad98acbe23b4dc59f44c60951b06b253e51_7b13834d-f8ef-4201-8ba6-9fb052153341.webp?v=1714840230","width":2000},{"alt":null,"id":23885684179043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf3c192380d49cc8457de0e844744a023ea47a7_9a107d4e-1981-4e2d-9273-696f10d65dec.webp?v=1714840232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf3c192380d49cc8457de0e844744a023ea47a7_9a107d4e-1981-4e2d-9273-696f10d65dec.webp?v=1714840232","width":2000},{"alt":null,"id":23885684605027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481c26fa533252c6919eeacf9026c74b98a883da_7e0fb41f-6ab3-42b2-9dd0-ce2fe960ae6d.webp?v=1714840235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481c26fa533252c6919eeacf9026c74b98a883da_7e0fb41f-6ab3-42b2-9dd0-ce2fe960ae6d.webp?v=1714840235","width":2000},{"alt":null,"id":23885685129315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5055719b23600cc399f1a6f4c371dc7e91cc4b0b_75e1d620-1c0e-4aea-b915-9b94da6e5738.webp?v=1714840237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5055719b23600cc399f1a6f4c371dc7e91cc4b0b_75e1d620-1c0e-4aea-b915-9b94da6e5738.webp?v=1714840237","width":2000},{"alt":null,"id":23885685653603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/808ef90aef14bd446567c212140d51ed7ea97208_cb07b2a8-19ce-475b-9883-45dcf0d9190f.webp?v=1714840239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/808ef90aef14bd446567c212140d51ed7ea97208_cb07b2a8-19ce-475b-9883-45dcf0d9190f.webp?v=1714840239","width":2000},{"alt":null,"id":23885686308963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49c78f2b63c317c66c341c249ccca15d590b9cc7_77a1c137-b628-4b2f-bc3a-bb0b918249c9.webp?v=1714840242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49c78f2b63c317c66c341c249ccca15d590b9cc7_77a1c137-b628-4b2f-bc3a-bb0b918249c9.webp?v=1714840242","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898919723107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480430297187,"product_id":7411440418915,"position":2,"created_at":"2024-05-05T00:30:23+08:00","updated_at":"2024-05-05T00:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223","variant_ids":[41898919723107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ02","featured_media":{"alt":null,"id":23885682081891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898919723107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480430297187,"product_id":7411440418915,"position":2,"created_at":"2024-05-05T00:30:23+08:00","updated_at":"2024-05-05T00:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223","variant_ids":[41898919723107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ02","featured_media":{"alt":null,"id":23885682081891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07807dd2af6c74ffbcd505ba1679eba665f067dc_222a936c-7a13-45dc-a703-c68d7c387eb8.webp?v=1714840223"}},"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: "停產" }