$product = {"id":7408401154147,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-12-pro-max-mod-nx-printable-yf02","description":null,"published_at":"2024-06-11T16:36:14+08:00","created_at":"2024-05-03T15:19:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41885073145955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166895715,"product_id":7408401154147,"position":1,"created_at":"2024-05-03T15:19:26+08:00","updated_at":"2024-05-03T15:19:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","variant_ids":[41885073145955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF02","featured_media":{"alt":null,"id":23877082546275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca97cb96b7ab2048c061ffcce3153d78d03daa9_6b07b979-6b2b-44e4-9f6c-231257c9087d.webp?v=1714720769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daf1785d0a6392af328572f6dc2c18ffd86f4bc_0e85d03a-227f-47c1-a0b5-89d7eef372ac.webp?v=1714720771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f87941a9c44705d7b696f85b7e5d4a5b0e81e0a_4ca13e54-cf42-4fa5-982d-817f4d14490e.webp?v=1714720773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5cd5403600287d1eb4fc0d5d6f4b12e0b90004_d16f9b79-24cf-4fae-b82f-ca0f5e9c1d6b.webp?v=1714720776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781f27c77b57703075136abf16ec80ae5c9cde7e_cfa06c8e-cc55-487e-a1ac-62c1e49316dd.webp?v=1714720778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794fe7b8bd9e0d90dfb9a26ccc43495fdafef51a_a60536ff-2574-4bbc-8ab4-485edc644765.webp?v=1714720780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e2907dc22d02b58a1876dfd6da222045133d98_e5e16bd5-5553-45bb-9142-855da5794347.webp?v=1714720783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d6cf0f21446b68aa19772a358ba92afe9957c_9e05db72-187a-4ff4-a1a0-4976b2a17d36.webp?v=1714720785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0055b4742a250ff04245b7c7b131775cac0c40_84e7eb83-fc29-4d70-ba24-7a03588f5eae.webp?v=1714720788"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","options":["color"],"media":[{"alt":null,"id":23877082546275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","width":2000},{"alt":null,"id":23877083103331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca97cb96b7ab2048c061ffcce3153d78d03daa9_6b07b979-6b2b-44e4-9f6c-231257c9087d.webp?v=1714720769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca97cb96b7ab2048c061ffcce3153d78d03daa9_6b07b979-6b2b-44e4-9f6c-231257c9087d.webp?v=1714720769","width":2000},{"alt":null,"id":23877083562083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daf1785d0a6392af328572f6dc2c18ffd86f4bc_0e85d03a-227f-47c1-a0b5-89d7eef372ac.webp?v=1714720771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daf1785d0a6392af328572f6dc2c18ffd86f4bc_0e85d03a-227f-47c1-a0b5-89d7eef372ac.webp?v=1714720771","width":2000},{"alt":null,"id":23877084250211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f87941a9c44705d7b696f85b7e5d4a5b0e81e0a_4ca13e54-cf42-4fa5-982d-817f4d14490e.webp?v=1714720773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f87941a9c44705d7b696f85b7e5d4a5b0e81e0a_4ca13e54-cf42-4fa5-982d-817f4d14490e.webp?v=1714720773","width":2000},{"alt":null,"id":23877084708963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5cd5403600287d1eb4fc0d5d6f4b12e0b90004_d16f9b79-24cf-4fae-b82f-ca0f5e9c1d6b.webp?v=1714720776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5cd5403600287d1eb4fc0d5d6f4b12e0b90004_d16f9b79-24cf-4fae-b82f-ca0f5e9c1d6b.webp?v=1714720776","width":2000},{"alt":null,"id":23877085134947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781f27c77b57703075136abf16ec80ae5c9cde7e_cfa06c8e-cc55-487e-a1ac-62c1e49316dd.webp?v=1714720778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781f27c77b57703075136abf16ec80ae5c9cde7e_cfa06c8e-cc55-487e-a1ac-62c1e49316dd.webp?v=1714720778","width":2000},{"alt":null,"id":23877085659235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794fe7b8bd9e0d90dfb9a26ccc43495fdafef51a_a60536ff-2574-4bbc-8ab4-485edc644765.webp?v=1714720780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794fe7b8bd9e0d90dfb9a26ccc43495fdafef51a_a60536ff-2574-4bbc-8ab4-485edc644765.webp?v=1714720780","width":2000},{"alt":null,"id":23877086117987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e2907dc22d02b58a1876dfd6da222045133d98_e5e16bd5-5553-45bb-9142-855da5794347.webp?v=1714720783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e2907dc22d02b58a1876dfd6da222045133d98_e5e16bd5-5553-45bb-9142-855da5794347.webp?v=1714720783","width":2000},{"alt":null,"id":23877086576739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d6cf0f21446b68aa19772a358ba92afe9957c_9e05db72-187a-4ff4-a1a0-4976b2a17d36.webp?v=1714720785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d6cf0f21446b68aa19772a358ba92afe9957c_9e05db72-187a-4ff4-a1a0-4976b2a17d36.webp?v=1714720785","width":2000},{"alt":null,"id":23877087068259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0055b4742a250ff04245b7c7b131775cac0c40_84e7eb83-fc29-4d70-ba24-7a03588f5eae.webp?v=1714720788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0055b4742a250ff04245b7c7b131775cac0c40_84e7eb83-fc29-4d70-ba24-7a03588f5eae.webp?v=1714720788","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885073145955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166895715,"product_id":7408401154147,"position":1,"created_at":"2024-05-03T15:19:26+08:00","updated_at":"2024-05-03T15:19:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","variant_ids":[41885073145955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF02","featured_media":{"alt":null,"id":23877082546275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885073145955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166895715,"product_id":7408401154147,"position":1,"created_at":"2024-05-03T15:19:26+08:00","updated_at":"2024-05-03T15:19:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766","variant_ids":[41885073145955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 搞怪系列-怪可愛 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF02","featured_media":{"alt":null,"id":23877082546275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c860d400dda74b6d89e519ef3665bf583c880a4_7681a9f9-8b8a-4390-b28d-07e83f38dcb9.webp?v=1714720766"}},"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: "停產" }