Granular Price Control in PrestaShop: Beyond Catalog Mode with "Hide Price Pro"

Granular Price Control in PrestaShop: Beyond Catalog Mode with "Hide Price Pro"

PrestaShop, while a powerful e-commerce platform, sometimes presents limitations when merchants require highly specific control over their product displays. A common challenge arises when the default "catalog mode" – which globally hides all prices – proves too broad for nuanced business needs. Many online stores, particularly those operating in B2B, wholesale, or multi-country environments, need the ability to selectively hide prices based on customer status, geographical location, or even individual product attributes.

The forum thread #1110325 introduces a module designed to fill this critical gap: Hide Price Pro by MEG Venture. This module offers a robust, server-side solution for merchants looking to implement advanced price visibility rules without resorting to custom code or compromising store integrity.

Addressing PrestaShop's Core Limitations

The module directly tackles the inadequacy of PrestaShop's native catalog mode. Instead of a shop-wide "all or nothing" approach, Hide Price Pro allows for a single, powerful rule to be applied. This rule dictates who should not see prices, offering four distinct options:

  • Paused: No prices are hidden.
  • Guests Only: Prices are hidden from visitors who are not signed in, often redirecting them to a sign-in page.
  • Country-Specific: Prices are hidden from visitors in selected countries, leveraging PrestaShop's native geolocation for accuracy and security (failing closed if location is uncertain).
  • Product-Specific: Prices are hidden only on products that have been individually flagged by the merchant.

This exclusive rule system prevents conflicting configurations, ensuring straightforward management and predictable outcomes.

Technical Sophistication and Security

One of the most compelling aspects of Hide Price Pro, particularly for PrestaShop 1.7.5 and newer, is its server-side implementation. The module leverages PrestaShop's actionPresentProduct and actionPresentProductListing hooks to rewrite product data before the page is built. This means the price is removed from the data model itself (show_price off, price strings emptied, add-to-cart URL removed), preventing it from ever reaching the HTML source code. This approach offers superior security compared to client-side (CSS/JavaScript) hiding, which merely conceals the price while it remains accessible in the page's source.

The module's design prioritizes compatibility and upgrade safety:

  • No Core Modifications: It avoids overwriting controllers, templates, or classes, making it resilient to PrestaShop upgrades.
  • Comprehensive Coverage: The price hiding applies across the entire shop, including category pages, search results, homepage blocks (featured, best sellers), quick view, and product pages.
  • Cart Protection: Even if a restricted product's add-to-cart link is manually constructed, the module intervenes at the actionCartSave stage, removing the product from the cart server-side, thereby preventing unauthorized purchases.

Customization and Deliberate Exclusions

In place of the hidden price, merchants can display custom messages per language, optionally including a "Sign in" button that returns the visitor to their original product page. For product-specific rules, custom HTML can be used, allowing for "Request a quote" forms, phone numbers, or contact links.

It's crucial to understand what the module deliberately *does not* do:

  • Not a B2B Pricing Engine: It hides prices; it does not calculate different prices for different customer groups or tiers. For dynamic pricing, other modules or PrestaShop's native group prices would be required.
  • Server-Side Masking Requirement: Full server-side price removal requires PrestaShop 1.7.5 or newer. Older versions (1.7.0 to 1.7.4) fall back to CSS/JS hiding, where the price is rendered but then concealed.
  • Manual Product Flagging: Version 2.0.0 removed mass import/export for product flagging, meaning thousands of products must be flagged manually. This limitation primarily affects the product-specific rule.

The module supports eight languages and is compatible with PrestaShop 1.7 through 9. For PrestaShop merchants grappling with the limitations of standard catalog mode, Hide Price Pro offers a sophisticated and secure solution for granular price visibility control, making it a valuable tool for specialized e-commerce operations.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools