{"id":7598,"date":"2024-11-21T12:51:28","date_gmt":"2024-11-21T12:51:28","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=7598"},"modified":"2024-11-21T13:01:15","modified_gmt":"2024-11-21T13:01:15","slug":"how-to-hide-items-based-on-ip-city-state-and-post-code","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/","title":{"rendered":"How to Hide Items Based on IP, City, State, and Post Code?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Hiding Items Based on IP, City, State, and Post Code<\/h2>\n\n\n\n<p>In today\u2019s eCommerce market, businesses need to customize their online store experience based on geographic locations. Being able to hide or show specific menu items based on a customer&#8217;s IP, city, state, or postal code allows store owners to cater to local regulations, regional promotions, or geographic preferences. The PrestaShop Hide Menu Items by Customer Groups module provides a flexible solution for implementing these location-based visibility rules.<\/p>\n\n\n\n<p>To configure location-based rules, follow these steps:<\/p>\n\n\n\n<p><strong>1.<\/strong> Start by installing and activating the PrestaShop Hide Menu Items by Customer Groups module.<\/p>\n\n\n\n<p><strong>2. <\/strong>Go to the module\u2019s general settings and ensure it is activated to enable the hiding\/showing feature for menu items.<\/p>\n\n\n\n<p><strong>3.<\/strong> Click on the &#8220;+&#8221; button to add a new rule for controlling menu visibility.<\/p>\n\n\n\n<p><strong>4. <\/strong>Configure Rule Settings<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Rule Enable: <\/strong>Toggle this option to activate or deactivate the specific rule.<\/li>\n\n\n\n<li><strong>Title: <\/strong>Add a descriptive title for the rule to easily identify it in the list of configurations.<\/li>\n\n\n\n<li><strong>Priority: <\/strong>Set a priority level to determine which rule takes precedence in case of conflict.<\/li>\n\n\n\n<li><strong>Hide and Show Menu Items: <\/strong>Choose whether the rule will hide or show specific menu items based on location.<\/li>\n\n\n\n<li><strong>Menu Items:<\/strong> Select the specific menu items that will be affected by the rule.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>5. <\/strong>Location-Based Visibility Filters<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Hide or Show by IP: <\/strong>Use this option to filter menu visibility based on the customer\u2019s IP address. This is useful for restricting content by region or network.<\/li>\n\n\n\n<li><strong>Country:<\/strong> Select the countries where this rule should apply.<\/li>\n\n\n\n<li><strong>City: <\/strong>Further refine visibility by selecting cities where the rule will be enforced.<\/li>\n\n\n\n<li><strong>State: <\/strong>Specify states to narrow down the visibility of the menu items.<\/li>\n\n\n\n<li><strong>Post Code: <\/strong>Choose postal codes to define precise areas where the menu items will be hidden or shown.<\/li>\n<\/ul>\n\n\n\n<p><strong>6. <\/strong>After configuring the rule, click \u201cSave\u201d to implement it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeIdHMANHANuOwvBY3wfShNcAclPL0SfQf-ExGr6SE6gK_P51MObeY8NRE5JFGsDI1-n1VuegxQKYIgB5eJ8UGLphXR_6GCjWum09psfZRYY0zz4ljk3MyyJb_dyIGrjmg7Dzkk?key=uxiBBZrvsYRkjOKAuBBzHw\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hiding Items Based on IP, City, State, and Post Code In today\u2019s eCommerce market, businesses need to customize their online store experience based on geographic locations. Being able to hide or show specific menu items based on a customer&#8217;s IP, city, state, or postal code allows store owners to cater to local regulations, regional promotions, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7584,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-7598","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Hide Items Based on IP, City, State, and Post Code? - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Hide Items Based on IP, City, State, and Post Code? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Hiding Items Based on IP, City, State, and Post Code In today\u2019s eCommerce market, businesses need to customize their online store experience based on geographic locations. Being able to hide or show specific menu items based on a customer&#8217;s IP, city, state, or postal code allows store owners to cater to local regulations, regional promotions, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-21T13:01:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/\",\"name\":\"How to Hide Items Based on IP, City, State, and Post Code? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh7-rt.googleusercontent.com\\\/docsz\\\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw\",\"datePublished\":\"2024-11-21T12:51:28+00:00\",\"dateModified\":\"2024-11-21T13:01:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh7-rt.googleusercontent.com\\\/docsz\\\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw\",\"contentUrl\":\"https:\\\/\\\/lh7-rt.googleusercontent.com\\\/docsz\\\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/how-to-hide-items-based-on-ip-city-state-and-post-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PrestaShop\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Prestashop Hide Menu Items by Customer Groups\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s HMIBCG\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-hide-menu-items-by-customer-groups\\\/how-tos-mp\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Hide Items Based on IP, City, State, and Post Code?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"name\":\"Documentation\",\"description\":\"Documentation for Addify Extensions\",\"publisher\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/addify.store\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\",\"name\":\"Documentation\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"contentUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"width\":6761,\"height\":1853,\"caption\":\"Documentation\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Hide Items Based on IP, City, State, and Post Code? - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/","og_locale":"en_US","og_type":"article","og_title":"How to Hide Items Based on IP, City, State, and Post Code? - Documentation","og_description":"Hiding Items Based on IP, City, State, and Post Code In today\u2019s eCommerce market, businesses need to customize their online store experience based on geographic locations. Being able to hide or show specific menu items based on a customer&#8217;s IP, city, state, or postal code allows store owners to cater to local regulations, regional promotions, [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/","og_site_name":"Documentation","article_modified_time":"2024-11-21T13:01:15+00:00","og_image":[{"url":"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/","url":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/","name":"How to Hide Items Based on IP, City, State, and Post Code? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/#primaryimage"},"thumbnailUrl":"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw","datePublished":"2024-11-21T12:51:28+00:00","dateModified":"2024-11-21T13:01:15+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/#primaryimage","url":"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw","contentUrl":"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXewIaj1jfHNPfNnQdwZBn_a4t2yNN-LG6-UepFp4X3Y5Mjishp-fU1nwu-x18q6gGMhn-Spp6d09nsenmVpgSPL1mQtK5jQUjDgapZdbmt6ERV-b8V2NloMZP0JcN4xw9boKL1obQ?key=uxiBBZrvsYRkjOKAuBBzHw"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/how-to-hide-items-based-on-ip-city-state-and-post-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/addify.store\/documentation\/"},{"@type":"ListItem","position":2,"name":"PrestaShop","item":"https:\/\/addify.store\/documentation\/prestashop\/"},{"@type":"ListItem","position":3,"name":"Prestashop Hide Menu Items by Customer Groups","item":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s HMIBCG","item":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-hide-menu-items-by-customer-groups\/how-tos-mp\/"},{"@type":"ListItem","position":5,"name":"How to Hide Items Based on IP, City, State, and Post Code?"}]},{"@type":"WebSite","@id":"https:\/\/addify.store\/documentation\/#website","url":"https:\/\/addify.store\/documentation\/","name":"Documentation","description":"Documentation for Addify Extensions","publisher":{"@id":"https:\/\/addify.store\/documentation\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/addify.store\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/addify.store\/documentation\/#organization","name":"Documentation","url":"https:\/\/addify.store\/documentation\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/","url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","contentUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","width":6761,"height":1853,"caption":"Documentation"},"image":{"@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/7598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/comments?post=7598"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/7598\/revisions"}],"predecessor-version":[{"id":7599,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/7598\/revisions\/7599"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/7584"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=7598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}