Skip to main content

Where hidden prices stay hidden

The short answer​

Does a hidden price really stay private, or can a customer find it somewhere else? HidePrice Pro keeps the price out of what the store sends to a customer who may not see it, not only off the visible page. That covers the page code, options, filters and sorting, search, feeds, widgets and the store's APIs. A product whose Add to Cart is hidden can't reach the cart or an order by any other route either.

How it works​

What is kept out​

HidePrice Pro decides for each product and each customer whether the price and Add to Cart are hidden, with the rules from Choose which products, Choose who sees prices and Per-product rules. The same decision then applies everywhere the store could show the price or sell the product. The sections below list those places.

Prices in the page code​

The page code of product pages and product lists carries no hidden price. This holds before any script runs, so the price can't be read from the page source. It includes the data behind the price box, configurable options and swatches, swatches in product lists, custom options, bundle options and downloadable links. On Hyvä, the theme's price data returns no price either.

The price meta tags of the product page are sent empty. The tag stays in the page, with no amount and no currency. This applies to every product HidePrice Pro covers for the customer, also with Add to Cart Only, where the price stays visible on the page.

Tier prices​

Tier prices, such as "Buy 3 for $9.00 each", are hidden on every product HidePrice Pro covers for the customer, also with Add to Cart Only. This applies to simple and configurable products and to the selections of a bundle.

Options, bundles and downloads​

Custom options, bundle selections and downloadable links show without their surcharge or price, such as "+ $5.00". This covers dropdowns, radio buttons and checkboxes. Customers can still choose them. Configurable products keep working swatches, without prices in their data. To hide the options altogether, use Hide Product Options. See Product options, wishlist and compare.

A bundle shows its price replacement and the price request button once on its product page. On Hyvä, the bundle's price as configured box is hidden, and radio selections show no stray "+".

Search, filters and sorting​

A price range or a price order would reveal what products cost. So HidePrice Pro removes them wherever a list can show a product with a hidden price:

  • The Price filter in layered navigation goes, together with filters of other price-type attributes. When prices are hidden for the whole catalog, this applies to every category. Otherwise it applies to categories that hold such a product, and to search results when the store has one.
  • The Price option of Sort By goes in the same places. A link that asks for sorting by price opens with the default sort order.
  • Advanced Search offers no price fields, and ignores a price range given in its link.

The GraphQL product search and the search API ignore price filters and price sorting too, and return no price ranges. See Price visibility in standard APIs.

APIs​

The GraphQL API returns no hidden price. A request with a customer token gets the prices that customer's group may see. A request without a token is treated as a guest. Your developer finds the details in Price visibility in standard APIs.

Feeds and recently viewed​

  • The special products RSS feed leaves out products whose price is hidden. The feed takes a customer group from its link, so a product is left out when its price is hidden from the visitor or from that group. While HidePrice Pro is on, the catalog feeds that print prices are built fresh for every request, so one visitor never gets a feed made for another.
  • The Recently Viewed and Recently Compared widgets get no hidden price in their product data. On Hyvä, a product with a hidden price is not added to the Recently Viewed list.

Related products show without Add to Cart when the button is hidden for them. The recently ordered sidebar shows such a product without the option to add it to the cart again.

Analytics data layer​

With the WeltPixel Google Analytics 4 extension, the data layer sent to analytics leaves out the hidden price.

Cart and checkout​

When the Add to Cart button of a product is hidden from a customer, the product can't reach the cart in any other way:

  • Not with a direct cart link, the cart form, the REST or GraphQL API, from the wishlist or by reordering. The customer sees a message that the product can't be added to the cart. A reorder leaves the product out of the cart without a message: Magento doesn't show reorder errors on the storefront.
  • The group of the customer who adds the product decides: the signed-in customer, the customer of the API token, or a guest. The group stored on the cart doesn't.
  • Products already in a cart when you hide the button for a customer group are taken out of the carts of that group, with a message that names each product.
  • When a guest signs in and the guest cart is merged into the customer's cart, the customer's group decides. Items whose Add to Cart is hidden from that group are taken out. See Add to Cart is still visible.
  • An order that holds such a product is refused, on the storefront and through GraphQL, REST and SOAP. Orders you create in the admin, and orders placed by scheduled jobs, are not checked.
  • For a grouped product, the grouped product's own settings decide for every product of the set.

With Price Only, customers can add the product to the cart, and its price stays hidden there too:

  • The cart row and the mini cart show the price text in place of the price: the product's own Custom Text to Display Instead of Price, or else the Text of Price Replacement. If neither is filled in, for example when the price is replaced with a button, the price cell stays empty. The row subtotal stays empty.
  • Subtotal, Grand Total and checkout show the amount the customer pays, the product's price included.
  • A product the customer accepted in an EasyQuote quote shows its agreed price.

Two kinds of products stay in the cart on purpose:

  • A product the customer accepted in an EasyQuote quote stays in the cart at the agreed price.
  • A free gift from a promotion module stays when that module is registered with HidePrice Pro and the gift costs nothing. A gift that keeps a price, even one a discount brings down to nothing, is taken out like any other product with a hidden Add to Cart, so its price is never shown. No promotion module is registered by default.

Your developer finds how both work, and how to register a promotion module, in Cart exemptions and free gifts.

Check it yourself​

A guest, or a customer of a hidden group, who views the page source of a covered product finds no price amount. A category with such a product shows no Price filter and no Price sort option. A cart link or the wishlist is refused with a message. A customer of a group that may see prices gets all of these back. The same checks work on any store view.

What this means for you​

  • A customer who may not see a price can't find it in the page source, in options, filters, sorting, search, feeds or the API.
  • Hiding Add to Cart is enough to stop online orders of a product. You don't need to block the cart or checkout yourself.
  • Changing Show For or the groups takes effect on carts that already hold such products.
  • With Price Only, the product can still be bought. The cart row and the mini cart keep its price hidden, but Subtotal, Grand Total and checkout show the amount to pay. Hide Add to Cart too if the price must stay fully private. See Choose what to hide.
  • If you run a promotion module that gives free gifts, ask your developer to register it.

What's next​

Last reviewed November 28, 2026