{"id":5677,"date":"2026-11-28T21:24:53","date_gmt":"2026-11-28T20:24:53","guid":{"rendered":"https:\/\/ticketack.com\/knowledge-base\/how-to-hide-point-of-sale-menu-items\/"},"modified":"2026-11-28T21:39:01","modified_gmt":"2026-11-28T20:39:01","slug":"how-to-hide-point-of-sale-menu-items","status":"publish","type":"ht_kb","link":"https:\/\/ticketack.com\/en\/knowledge-base\/how-to-hide-point-of-sale-menu-items\/","title":{"rendered":"How to hide point of sale menu items?"},"content":{"rendered":"<p>In some cases you want to hide a point-of-sale menu entry (web or POS app), or restrict the day strip (clock \/ today \/ following days \/ later), even though the user role still grants access.<\/p>\n<p><strong>Prefer roles and abilities first<\/strong> (user rights) in Kronos. Only use a custom script when rights cannot achieve the desired result.<\/p>\n<div class=\"alert alert-info\">\n<p><strong>Restrict advance sales (recommended)<\/strong><\/p>\n<p>To stop certain roles (e.g. cashiers) from selling showtimes too far in the future, the best approach is usually <strong>not<\/strong> to hide day tabs, but to configure <strong>contingents<\/strong> that forbid advance sales for those roles. Showtimes can stay visible as needed, while selling is actually blocked by business rules \u2014 unlike a UI-only hide.<\/p>\n<\/div>\n<div class=\"alert alert-warning\">\n<p><strong>Warning<\/strong><\/p>\n<ul>\n<li>A custom script diverges from the standard behaviour and can make support harder.<\/li>\n<li>Hiding an entry with JavaScript or CSS <strong>is not a security measure<\/strong>: it hides the link or button but does not remove access rights. Anyone who knows the URL can still open the page.<\/li>\n<\/ul>\n<\/div>\n<h2>Configure custom JavaScript<\/h2>\n<ol>\n<li>Host a <code>.js<\/code> file over HTTPS (e.g. on your site).<\/li>\n<li>In Kronos \u2192 point of sale settings, set the URL in <strong>pos.additional_js<\/strong>.<\/li>\n<li>Reload the POS (on the mobile app: fully quit then reopen).<\/li>\n<\/ol>\n<h2>API <code>TKT_POS_MENU<\/code><\/h2>\n<p>From the eshop, the script can call:<\/p>\n<pre><code>\/\/ Ids: vente | billets | releve_ventes | wallets | accounting\nTKT_POS_MENU.hide('billets');\nTKT_POS_MENU.show('billets');\n<\/code><\/pre>\n<p>The same call updates the <strong>web<\/strong> menu and the <strong>POS app<\/strong> hamburger menu.<\/p>\n<p>Conditional example (classes already on <code>&lt;body&gt;<\/code>: <code>user_\u2026<\/code>, <code>role_\u2026<\/code>):<\/p>\n<pre><code>if (!document.body.classList.contains('role_admin')\n    &amp;&amp; !document.body.classList.contains('user_root')) {\n  TKT_POS_MENU.hide('billets');\n  TKT_POS_MENU.hide('releve_ventes');\n  TKT_POS_MENU.hide('wallets');\n  TKT_POS_MENU.hide('accounting');\n}\n<\/code><\/pre>\n<p>If every entry is hidden (or fewer than two remain), the hamburger icon disappears in the app; the logo stays.<\/p>\n<h2>API <code>TKT_POS_DAY_FILTERS<\/code><\/h2>\n<p>To restrict the showtime day strip (without CSS <code>display:none<\/code>):<\/p>\n<pre><code>\/\/ Modes: passed | today | weekdays | later\nTKT_POS_DAY_FILTERS.hide('weekdays');\nTKT_POS_DAY_FILTERS.hide('later');\nTKT_POS_DAY_FILTERS.show('weekdays');\n<\/code><\/pre>\n<ul>\n<li><code>passed<\/code> \u2014 clock button (past showtimes)<\/li>\n<li><code>today<\/code> \u2014 today<\/li>\n<li><code>weekdays<\/code> \u2014 other days in the window<\/li>\n<li><code>later<\/code> \u2014 \u201cLater\u201d<\/li>\n<\/ul>\n<p>Example (cashiers: clock + today only):<\/p>\n<pre><code>if (!document.body.classList.contains('role_admin')\n    &amp;&amp; !document.body.classList.contains('user_root')) {\n  TKT_POS_DAY_FILTERS.hide('weekdays');\n  TKT_POS_DAY_FILTERS.hide('later');\n}\n<\/code><\/pre>\n<p>Prefer this API over CSS: hidden tabs are not offered, and the \u201cToday\u201d label stays readable on small screens.<\/p>\n<p>Reminder: to <strong>forbid<\/strong> advance sales (not just hide days), prefer role-aware <strong>contingents<\/strong>.<\/p>\n<h2>API <code>TKT_POS_CHROME<\/code><\/h2>\n<p>To hide UI elements that are <strong>not<\/strong> menu entries (e.g. the magic search loupe):<\/p>\n<pre><code>\/\/ Keys: magic_search\nTKT_POS_CHROME.hide('magic_search');\nTKT_POS_CHROME.show('magic_search');\n<\/code><\/pre>\n<p><code>TKT_POS_MENU<\/code> only covers navbar \/ hamburger menu ids. The loupe is not one of them: use <code>TKT_POS_CHROME<\/code> instead of CSS <code>display:none<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some cases you want to hide a point-of-sale menu entry (web or POS app), or restrict the day strip (clock \/ today \/ following days \/ later), even though the user role still grants access. Prefer roles and abilities first (user rights) in Kronos. Only use a custom script when rights cannot achieve the  [&#8230;]<\/p>\n","protected":false},"author":4,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"ht-kb-category":[101,77,69],"ht-kb-tag":[],"class_list":["post-5677","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-administration-and-configuration","ht_kb_category-administration-et-configuration","ht_kb_category-application-mobile"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb\/5677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/comments?post=5677"}],"version-history":[{"count":1,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb\/5677\/revisions"}],"predecessor-version":[{"id":5681,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb\/5677\/revisions\/5681"}],"wp:attachment":[{"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/media?parent=5677"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=5677"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ticketack.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=5677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}