{"id":6150,"date":"2023-12-01T10:14:57","date_gmt":"2023-12-01T10:14:57","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=6150"},"modified":"2023-12-01T10:14:58","modified_gmt":"2023-12-01T10:14:58","slug":"how-to-show-custom-error-messages-with-prestashop-private-products-category-module","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/","title":{"rendered":"How to Show Custom Error Messages with Prestashop Private Products &#038; Category Module?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here&#8217;s a step-by-step guide on how to show custom error messages with the PrestaShop Private Products &amp; Category Module:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Access your PrestaShop admin panel using your login credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <strong>Modules <\/strong>&gt; <strong>Module Manager<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click on <strong>&#8220;Addify Hide Product and Category&#8221;<\/strong> in the list of modules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, click on <strong>&#8220;Configure&#8221;<\/strong> for the &#8220;Addify Hide Product and Category&#8221; module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Create a New Rule:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the<strong> &#8220;+&#8221;<\/strong> button to create a new rule for catalog and page restrictions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configure Rule Details:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title: <\/strong>Enter a descriptive title for the rule (e.g., B2B Catalog Restriction).<\/li>\n\n\n\n<li><strong>Priority: <\/strong>Assign a numeric value to determine the rule&#8217;s priority. Lower values typically have higher priority.<\/li>\n\n\n\n<li><strong>Active:<\/strong> Enable or disable the rule based on your requirements.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Custom Message:&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter a custom message in the &#8220;Custom Message&#8221; field. This message will be displayed when the rule conditions are met and access is restricted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This message can inform users about why they cannot access certain products, categories, or pages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Redirect URL (Optional):&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer to use a redirection instead of a custom message, provide a complete URL in the &#8220;Redirect URL&#8221; field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use complete URLs like <a href=\"http:\/\/google.com\">http:\/\/google.com<\/a>, <a href=\"http:\/\/facebook.com\">http:\/\/facebook.com<\/a>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Save the Rule:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After configuring the rule details, including the custom message or redirect URL, click on the &#8220;Save&#8221; button to save the rule.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following these steps, you can effectively show custom error messages or redirect users when the PrestaShop Private Products &amp; Category Module restricts access based on your configured rules.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a step-by-step guide on how to show custom error messages with the PrestaShop Private Products &amp; Category Module: Access your PrestaShop admin panel using your login credentials. Go to Modules &gt; Module Manager. Click on &#8220;Addify Hide Product and Category&#8221; in the list of modules. Next, click on &#8220;Configure&#8221; for the &#8220;Addify Hide Product [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6145,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-6150","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 Show Custom Error Messages with Prestashop Private Products &amp; Category Module? - 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-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Show Custom Error Messages with Prestashop Private Products &amp; Category Module? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Here&#8217;s a step-by-step guide on how to show custom error messages with the PrestaShop Private Products &amp; Category Module: Access your PrestaShop admin panel using your login credentials. Go to Modules &gt; Module Manager. Click on &#8220;Addify Hide Product and Category&#8221; in the list of modules. Next, click on &#8220;Configure&#8221; for the &#8220;Addify Hide Product [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:14:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM\" \/>\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-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/\",\"name\":\"How to Show Custom Error Messages with Prestashop Private Products & Category Module? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM\",\"datePublished\":\"2023-12-01T10:14:57+00:00\",\"dateModified\":\"2023-12-01T10:14:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM\",\"contentUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/how-tos\\\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\\\/#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 Private Products &amp; Category By Customer Groups\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/prestashop\\\/prestashop-private-product\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s PPP\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/?page_id=6145\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Show Custom Error Messages with Prestashop Private Products &#038; Category Module?\"}]},{\"@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 Show Custom Error Messages with Prestashop Private Products & Category Module? - 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-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/","og_locale":"en_US","og_type":"article","og_title":"How to Show Custom Error Messages with Prestashop Private Products & Category Module? - Documentation","og_description":"Here&#8217;s a step-by-step guide on how to show custom error messages with the PrestaShop Private Products &amp; Category Module: Access your PrestaShop admin panel using your login credentials. Go to Modules &gt; Module Manager. Click on &#8220;Addify Hide Product and Category&#8221; in the list of modules. Next, click on &#8220;Configure&#8221; for the &#8220;Addify Hide Product [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/","og_site_name":"Documentation","article_modified_time":"2023-12-01T10:14:58+00:00","og_image":[{"url":"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM","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-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/","url":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/","name":"How to Show Custom Error Messages with Prestashop Private Products & Category Module? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/#primaryimage"},"thumbnailUrl":"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM","datePublished":"2023-12-01T10:14:57+00:00","dateModified":"2023-12-01T10:14:58+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/#primaryimage","url":"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM","contentUrl":"https:\/\/lh7-us.googleusercontent.com\/2H_kilIN5w5WjPZaiwasthqWtxhZuU0JrwIzNu0ZCd_B7BYETTDilGijgT1IEAU42EvmFo0QTFeX74Ly7n9zfstTeLlMXYk3ylczk9iiTJxUqCFgYWBKmi6oX2YNhqqx8qVyDTrqxVqsWUh5l0OoEaM"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/how-tos\/how-to-show-custom-error-messages-with-prestashop-private-products-category-module\/#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 Private Products &amp; Category By Customer Groups","item":"https:\/\/addify.store\/documentation\/prestashop\/prestashop-private-product\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s PPP","item":"https:\/\/addify.store\/documentation\/?page_id=6145"},{"@type":"ListItem","position":5,"name":"How to Show Custom Error Messages with Prestashop Private Products &#038; Category Module?"}]},{"@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\/6150","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=6150"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/6150\/revisions"}],"predecessor-version":[{"id":6151,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/6150\/revisions\/6151"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/6145"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=6150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}