{"id":2294,"date":"2025-01-08T11:27:02","date_gmt":"2025-01-08T11:27:02","guid":{"rendered":"https:\/\/cms.calcumate.co\/?p=2294"},"modified":"2025-01-11T10:34:53","modified_gmt":"2025-01-11T10:34:53","slug":"filtering-to-available-units","status":"publish","type":"post","link":"https:\/\/cms.calcumate.co\/?p=2294","title":{"rendered":"Filtering To Available Units"},"content":{"rendered":"\n<p class=\"has-text-color has-extra-large-font-size\" style=\"color:#0069aa;line-height:1.6\">Filtering To Available Units<\/p>\n\n\n\n<p style=\"font-size:22px;line-height:1.6\">Calcumate allows you to filter out specific units so that they do not appear in the results. This can be useful for managing inventory and ensuring only available units are displayed to users.<\/p>\n\n\n\n<h3 class=\"has-extra-large-font-size\" id=\"instructions\" style=\"line-height:1.6\"><a href=\"https:\/\/help.calcumate.co\/filtering-to-available-units\/filtering-to-available-units#instructions\"><\/a>Instructions<\/h3>\n\n\n\n<h4 class=\"has-normal-font-size\" id=\"disabling-units\"><a href=\"https:\/\/help.calcumate.co\/filtering-to-available-units\/filtering-to-available-units#disabling-units\"><\/a>Disabling Units<\/h4>\n\n\n\n<p>To disable specific units, use the following JavaScript code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.dispatchEvent(new CustomEvent(\"calcumateLoad\", {\n    detail: &#91;&amp;lt;Units ID&amp;gt;, &amp;lt;Units ID&amp;gt;],\n}));<\/code><\/pre>\n\n\n\nwindow.dispatchEvent(new CustomEvent(&#8220;calcumateLoad&#8221;, {\n    detail: [&lt;Units ID&gt;, &lt;Units ID&gt;],\n}));\n\n\n\n<ul><li>Replace <code>&lt;Units ID&gt;<\/code> with the actual IDs of the units you want to disable.<\/li><li>You can list multiple unit IDs separated by commas within the square brackets.<\/li><\/ul>\n\n\n\n<h4 class=\"has-normal-font-size\" id=\"enabling-all-units\"><a href=\"https:\/\/help.calcumate.co\/filtering-to-available-units\/filtering-to-available-units#enabling-all-units\"><\/a>Enabling All Units<\/h4>\n\n\n\n<p>To enable all units again, pass an empty array in the <code>detail<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.dispatchEvent(new CustomEvent(\"calcumateLoad\", {\n    detail: &#91;],\n}));<\/code><\/pre>\n\n\n\n<h4 class=\"has-normal-font-size\" id=\"listing-available-units\"><a href=\"https:\/\/help.calcumate.co\/filtering-to-available-units\/filtering-to-available-units#listing-available-units\"><\/a>Listing Available Units<\/h4>\n\n\n\n<p>To see a list of all available units, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.listUnits<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2\" alt=\"\"\/><\/figure>\n\n\n\n<h4 class=\"has-normal-font-size\" id=\"listing-disabled-units\"><a href=\"https:\/\/help.calcumate.co\/filtering-to-available-units\/filtering-to-available-units#listing-disabled-units\"><\/a>Listing Disabled Units<\/h4>\n\n\n\n<p>To see a list of all currently disabled units, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.disableUnits<\/code><\/pre>\n\n\n\n<h4 class=\"has-normal-font-size\" id=\"example\">Here is an example of how to disable two units with IDs <code>123<\/code> and <code>456<\/code>:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>window.dispatchEvent(new CustomEvent(\"calcumateLoad\", {\n    detail: &#91;123, 456],\n}));<\/code><\/pre>\n\n\n\n<h4 class=\"has-normal-font-size\">To enable all units again:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>window.dispatchEvent(new CustomEvent(\"calcumateLoad\", {\n    detail: &#91;],\n}));<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Filtering To Available Units Calcumate allows you to filter out specific units so that they do not appear in the results. This can be useful for managing inventory and ensuring only available units are displayed to users. Instructions Disabling Units To disable specific units, use the following JavaScript code: window.dispatchEvent(new CustomEvent(&#8220;calcumateLoad&#8221;, { detail: [&lt;Units ID&gt;,&hellip; <a class=\"more-link\" href=\"https:\/\/cms.calcumate.co\/?p=2294\">Continue reading <span class=\"screen-reader-text\">Filtering To Available Units<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Filtering To Available Units - Calcumate CMS<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Filtering To Available Units - Calcumate CMS\" \/>\n<meta property=\"og:description\" content=\"Filtering To Available Units Calcumate allows you to filter out specific units so that they do not appear in the results. This can be useful for managing inventory and ensuring only available units are displayed to users. Instructions Disabling Units To disable specific units, use the following JavaScript code: window.dispatchEvent(new CustomEvent(&#8220;calcumateLoad&#8221;, { detail: [&lt;Units ID&gt;,&hellip; Continue reading Filtering To Available Units\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cms.calcumate.co\/?p=2294\" \/>\n<meta property=\"og:site_name\" content=\"Calcumate CMS\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-08T11:27:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-11T10:34:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&#038;width=768&#038;dpr=4&#038;quality=100&#038;sign=2b3087e2&#038;sv=2\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cms.calcumate.co\/#website\",\"url\":\"https:\/\/cms.calcumate.co\/\",\"name\":\"Calcumate CMS\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cms.calcumate.co\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cms.calcumate.co\/?p=2294#primaryimage\",\"inLanguage\":\"en-GB\",\"url\":\"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2\",\"contentUrl\":\"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cms.calcumate.co\/?p=2294#webpage\",\"url\":\"https:\/\/cms.calcumate.co\/?p=2294\",\"name\":\"Filtering To Available Units - Calcumate CMS\",\"isPartOf\":{\"@id\":\"https:\/\/cms.calcumate.co\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cms.calcumate.co\/?p=2294#primaryimage\"},\"datePublished\":\"2025-01-08T11:27:02+00:00\",\"dateModified\":\"2025-01-11T10:34:53+00:00\",\"author\":{\"@id\":\"https:\/\/cms.calcumate.co\/#\/schema\/person\/bff12953f09a0f387bd98e279f9a65be\"},\"breadcrumb\":{\"@id\":\"https:\/\/cms.calcumate.co\/?p=2294#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cms.calcumate.co\/?p=2294\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cms.calcumate.co\/?p=2294#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cms.calcumate.co\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Filtering To Available Units\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cms.calcumate.co\/#\/schema\/person\/bff12953f09a0f387bd98e279f9a65be\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cms.calcumate.co\/#personlogo\",\"inLanguage\":\"en-GB\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2c6eead71d6286cd70069d998ed43eae?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2c6eead71d6286cd70069d998ed43eae?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/cms.calcumate.co\"],\"url\":\"https:\/\/cms.calcumate.co\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Filtering To Available Units - Calcumate CMS","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_GB","og_type":"article","og_title":"Filtering To Available Units - Calcumate CMS","og_description":"Filtering To Available Units Calcumate allows you to filter out specific units so that they do not appear in the results. This can be useful for managing inventory and ensuring only available units are displayed to users. Instructions Disabling Units To disable specific units, use the following JavaScript code: window.dispatchEvent(new CustomEvent(&#8220;calcumateLoad&#8221;, { detail: [&lt;Units ID&gt;,&hellip; Continue reading Filtering To Available Units","og_url":"https:\/\/cms.calcumate.co\/?p=2294","og_site_name":"Calcumate CMS","article_published_time":"2025-01-08T11:27:02+00:00","article_modified_time":"2025-01-11T10:34:53+00:00","og_image":[{"url":"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/cms.calcumate.co\/#website","url":"https:\/\/cms.calcumate.co\/","name":"Calcumate CMS","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cms.calcumate.co\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"ImageObject","@id":"https:\/\/cms.calcumate.co\/?p=2294#primaryimage","inLanguage":"en-GB","url":"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2","contentUrl":"https:\/\/help.calcumate.co\/~gitbook\/image?url=https%3A%2F%2F2142607565-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTTkW3ulcBeT90bhskPiJ%252Fuploads%252FhKILyOejnnXE8ZB3Sqfd%252FScreenshot_2024-08-01_at_11.48.15.png%3Falt%3Dmedia%26token%3D45401d97-ae77-4450-b961-6f600b9f84b3&amp;width=768&amp;dpr=4&amp;quality=100&amp;sign=2b3087e2&amp;sv=2"},{"@type":"WebPage","@id":"https:\/\/cms.calcumate.co\/?p=2294#webpage","url":"https:\/\/cms.calcumate.co\/?p=2294","name":"Filtering To Available Units - Calcumate CMS","isPartOf":{"@id":"https:\/\/cms.calcumate.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cms.calcumate.co\/?p=2294#primaryimage"},"datePublished":"2025-01-08T11:27:02+00:00","dateModified":"2025-01-11T10:34:53+00:00","author":{"@id":"https:\/\/cms.calcumate.co\/#\/schema\/person\/bff12953f09a0f387bd98e279f9a65be"},"breadcrumb":{"@id":"https:\/\/cms.calcumate.co\/?p=2294#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cms.calcumate.co\/?p=2294"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cms.calcumate.co\/?p=2294#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cms.calcumate.co\/"},{"@type":"ListItem","position":2,"name":"Filtering To Available Units"}]},{"@type":"Person","@id":"https:\/\/cms.calcumate.co\/#\/schema\/person\/bff12953f09a0f387bd98e279f9a65be","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/cms.calcumate.co\/#personlogo","inLanguage":"en-GB","url":"https:\/\/secure.gravatar.com\/avatar\/2c6eead71d6286cd70069d998ed43eae?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2c6eead71d6286cd70069d998ed43eae?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/cms.calcumate.co"],"url":"https:\/\/cms.calcumate.co\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/posts\/2294"}],"collection":[{"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2294"}],"version-history":[{"count":12,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/posts\/2294\/revisions"}],"predecessor-version":[{"id":2309,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=\/wp\/v2\/posts\/2294\/revisions\/2309"}],"wp:attachment":[{"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms.calcumate.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}