Truly fine

Documentation.

Setting up Login to view price

Last update:

Whether you are doing B2B, want to increase signups to your store, or have any other reason to only show prices to logged in users, Athens has you covered.

It gives 3 different control methods, so you can hide prices for individual products, products that belong to a certain category, or even apply it globally just by flipping a switch. Additionally, products that have their prices hidden won’t display an “Add to cart” button.

Enable globally

Enabling the feature globally will unconditionally hide the prices for all your products. You just need to open the theme customization page, and under Theme settings > Layout, enable the Log in to view price option.

Enable for products in collection

You can hide the price for products that belong to one or more collections which are set to hide their products’ prices. This is an extremely flexible way to manage which of your products will hide their prices, as you can either have manual collections of products where you handpick them one by one, or even set automated collections that include products based on various filters, such as their title, price, tags, and others.

First, you’ll need a way to easily select whether a collection will hide its products’ prices. Navigate to Settings > Custom data > Collections, and press on the Add definition button. Inside the Name field type something appropriate, such as Login for price. Next, make sure the Namespace and key field is exactly “custom.login_for_price” (without the quotes). Finally, one the Select type dropdown select True or false. Press on the Save button and you’re (almost) done. You only need to this step once.

Now, go to Products > Collections and edit the collection that will hide its products’ prices. On the Metafields card towards the bottom of the page, click on Login for price and select True. Save your collection, and visit the page of a product that belongs to this collection. Its price should be hidden. You can repeat this step for as many collections as you want. When a product belongs to at least one of these collections, it will hide its price and prompt your customers to login.

Enable for individual products

If you only want to hide the price of a very small subset of products, while we recommend creating a dedicated collection for them, you have the option to enable the feature to products individually. The process is very similar with the collections method described above.

Navigate to Settings > Custom data > Products, and press on the Add definition button. Inside the Name field type something appropriate, such as Login for price. Next, make sure the Namespace and key field is exactly “custom.login_for_price” (without the quotes). Finally, one the Select type dropdown select True or false. Press on the Save button and you’re (almost) done. You only need to this step once.

Now, go to Products and edit the product that will hide its price. On the Metafields card towards the bottom of the page, click on Login for price and select True. Save your product, and visit its page. Its price should be hidden. You can repeat this step for as many products as you want.

Disclaimer regarding the “Login to view price” feature

The theme does its best to prevent non-logged in visitors from viewing the selected products’ prices inside the store. Due to the nature of the Shopify platform, themes can’t prevent a product from being added to the cart indirectly, and have no control whatsoever on the Checkout page.

Therefore, a knowledgeable user could manipulate the Shopify API into adding a product to the cart and subsequently viewing its price via the Checkout page. Additionally, the Shopify platform may disclose a product’s price via other methods, such as injected scripts or structured data (ld+son) used for SEO purposes.

If it’s absolutely vital that prices are not leaked to non-logged in users under any circumstances, you should instead look into specialized Shopify apps that may able to filter out prices from all places where themes don’t have any control.

Can't find what you are looking for? Feel free to submit a request.