Skip to content

The Visitor Experience

This page is the storefront side of the plugin, seen as a guest on the demo store. Each section is one thing a visitor can run into.

Products whose price is hidden show your message where the price was. Their Add to cart button is replaced by the rule’s button, or removed. Products no rule covers look exactly as they did before.

The shop as a guest: cheaper items priced, others showing the message

The message has a light blue badge by default. Clear the Background Color on the Display tab and it becomes plain coloured text instead.

Each rule picks one, so a store can use all four at once.

The default. The button opens a login popup.

A product with the login button

The button opens a quote form. The demo uses it for the Accessories category, with the message “Price on request”.

A product with the Request a Quote button

The button is a plain link to any page. The demo sends sunglasses buyers to its contact page to apply for a trade account. The message here uses the {product_name} placeholder.

The sunglasses with an Apply for a trade account button

Only the message shows. The demo uses it for a launch, where there is nothing to do yet but wait.

A hoodie showing Prices go live on 1 November and no button

The visitor logs in without leaving the product.

The login popup over the product page

It is WooCommerce’s own login form, so it has Remember me and Lost your password?. When WooCommerce lets customers create accounts on My Account, a New here? Create an account link appears under the form. It goes to the My Account page.

After logging in, the visitor lands back on the same product. If no rule hides prices from their role, the price and the Add to cart button are there.

The same product after logging in, with its price and the Add to cart button

With Login Popup turned off on the Display tab, the button goes to the My Account page instead, and the visitor still returns to the product after logging in.

The form asks for Name and Email (both required), Phone, Quantity and a Message. The product’s name sits above the fields. A signed-in visitor finds their name and email filled in.

The quote form filled in for 40 beanies

Send Request saves the request and shows the success message in the form. The fields clear, so the visitor can ask about another quantity.

The quote form after sending, with the thank-you message

The visitor also gets a copy of their request by email, if Customer Copy is on.

Each variation is checked on its own. On the demo’s Organic V-Neck Tee the $20 Red variation is hidden and the $15 Blue one is not. Pick Red, and the message and the login button appear where the price and Add to cart would be.

The Red variation selected: hidden price and the login button

Pick Blue, and the price and Add to cart come back.

The Blue variation selected: $15 and Add to cart

The price under the title reads “$15.00”. The product’s full range is $15 to $20, but the $20 figure belongs to a hidden variation, so it is left out. See How Hidden Prices Work.

A link such as ?add-to-cart=21 for a hidden product does not add it. WooCommerce answers “Sorry, this product cannot be purchased.”

The notice Sorry, this product cannot be purchased above the product

Rules hide prices from guests unless they say otherwise. On the demo, a signed-in customer sees every price except the sunglasses, whose rule includes the Customer role. That rule’s wording asks for a trade account rather than a login, because some of the people reading it are already signed in.

The sunglasses as a signed-in customer: still hidden, with the custom URL button

A login button never shows to someone already signed in. A rule that targets a role and keeps the login action shows that role the message and no button.