$product = {"id":7407859531875,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Ohana是家人","handle":"iphone-14-plus-mod-nx-printable-yf10","description":null,"published_at":"2024-06-11T16:24:50+08:00","created_at":"2024-05-03T11:04:06+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 14 Plus","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":41879728062563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470557626467,"product_id":7407859531875,"position":9,"created_at":"2024-05-03T11:04:28+08:00","updated_at":"2024-05-03T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468","variant_ids":[41879728062563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Ohana是家人 - 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":"NPB0126124-YF10","featured_media":{"alt":null,"id":23875461480547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffcd28a5ccaab9cf3c4a029dfbb3792b29149c_c3207718-a450-4aa3-8e60-d42aa0861531.webp?v=1714705449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732018863022cccfab2f03e2b78555080ad86348_c701703c-0fe6-4fed-b827-adb8cb9e09b6.webp?v=1714705451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae77c74516d01ff5c8e884c75a80f72b0826fff9_b7ee4c0e-acb9-48d1-ad43-1785518c84c4.webp?v=1714705454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2f98eef1dba109731cd7c3f795917c293863a7_8b8df66f-53be-4a85-bc38-6b1ee4c2ba12.webp?v=1714705456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4e8506861368959262943e6f5764416d8e85a4_81a10942-0b66-4b59-aee9-c21ddf57864b.webp?v=1714705458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d084bbc6ff40c8c9edc06525fd60606558aa00a9_9174db5b-8df6-4299-b651-d04491b21af0.webp?v=1714705461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72be5c3de7445ee560044f58c4b4564a9938175_9d7d2835-7be5-4526-94f1-1f9b0e0d29eb.webp?v=1714705463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f514a4c10d3395f9c18730120510f2806f8b3144_c456847b-8c9f-486e-9c77-96103b548630.webp?v=1714705466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5578b366852beb7cd430d7a91a7fcb8c1aefb0_9dcfa2be-8481-460f-9706-6f91826a1cbd.webp?v=1714705470"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffcd28a5ccaab9cf3c4a029dfbb3792b29149c_c3207718-a450-4aa3-8e60-d42aa0861531.webp?v=1714705449","options":["color"],"media":[{"alt":null,"id":23875456958563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffcd28a5ccaab9cf3c4a029dfbb3792b29149c_c3207718-a450-4aa3-8e60-d42aa0861531.webp?v=1714705449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffcd28a5ccaab9cf3c4a029dfbb3792b29149c_c3207718-a450-4aa3-8e60-d42aa0861531.webp?v=1714705449","width":2000},{"alt":null,"id":23875457450083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732018863022cccfab2f03e2b78555080ad86348_c701703c-0fe6-4fed-b827-adb8cb9e09b6.webp?v=1714705451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732018863022cccfab2f03e2b78555080ad86348_c701703c-0fe6-4fed-b827-adb8cb9e09b6.webp?v=1714705451","width":2000},{"alt":null,"id":23875457941603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae77c74516d01ff5c8e884c75a80f72b0826fff9_b7ee4c0e-acb9-48d1-ad43-1785518c84c4.webp?v=1714705454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae77c74516d01ff5c8e884c75a80f72b0826fff9_b7ee4c0e-acb9-48d1-ad43-1785518c84c4.webp?v=1714705454","width":2000},{"alt":null,"id":23875458367587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2f98eef1dba109731cd7c3f795917c293863a7_8b8df66f-53be-4a85-bc38-6b1ee4c2ba12.webp?v=1714705456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2f98eef1dba109731cd7c3f795917c293863a7_8b8df66f-53be-4a85-bc38-6b1ee4c2ba12.webp?v=1714705456","width":2000},{"alt":null,"id":23875458793571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4e8506861368959262943e6f5764416d8e85a4_81a10942-0b66-4b59-aee9-c21ddf57864b.webp?v=1714705458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4e8506861368959262943e6f5764416d8e85a4_81a10942-0b66-4b59-aee9-c21ddf57864b.webp?v=1714705458","width":2000},{"alt":null,"id":23875459252323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d084bbc6ff40c8c9edc06525fd60606558aa00a9_9174db5b-8df6-4299-b651-d04491b21af0.webp?v=1714705461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d084bbc6ff40c8c9edc06525fd60606558aa00a9_9174db5b-8df6-4299-b651-d04491b21af0.webp?v=1714705461","width":2000},{"alt":null,"id":23875459842147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72be5c3de7445ee560044f58c4b4564a9938175_9d7d2835-7be5-4526-94f1-1f9b0e0d29eb.webp?v=1714705463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72be5c3de7445ee560044f58c4b4564a9938175_9d7d2835-7be5-4526-94f1-1f9b0e0d29eb.webp?v=1714705463","width":2000},{"alt":null,"id":23875460595811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f514a4c10d3395f9c18730120510f2806f8b3144_c456847b-8c9f-486e-9c77-96103b548630.webp?v=1714705466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f514a4c10d3395f9c18730120510f2806f8b3144_c456847b-8c9f-486e-9c77-96103b548630.webp?v=1714705466","width":2000},{"alt":null,"id":23875461480547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468","width":2000},{"alt":null,"id":23875461906531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5578b366852beb7cd430d7a91a7fcb8c1aefb0_9dcfa2be-8481-460f-9706-6f91826a1cbd.webp?v=1714705470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5578b366852beb7cd430d7a91a7fcb8c1aefb0_9dcfa2be-8481-460f-9706-6f91826a1cbd.webp?v=1714705470","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879728062563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470557626467,"product_id":7407859531875,"position":9,"created_at":"2024-05-03T11:04:28+08:00","updated_at":"2024-05-03T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468","variant_ids":[41879728062563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Ohana是家人 - 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":"NPB0126124-YF10","featured_media":{"alt":null,"id":23875461480547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879728062563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470557626467,"product_id":7407859531875,"position":9,"created_at":"2024-05-03T11:04:28+08:00","updated_at":"2024-05-03T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468","variant_ids":[41879728062563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Ohana是家人 - 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":"NPB0126124-YF10","featured_media":{"alt":null,"id":23875461480547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43861db5f5b9ef4748ef602b778bc13e0e0ba4_b2842479-1669-4e32-ab44-dbf882c03eee.webp?v=1714705468"}},"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: "停產" }