Button text and colors
What it does
Change what the replacement buttons say and how they look, so they match your store. This covers the Button With Alert, a button that opens a dialog with your own message, and the Authentication Button, the sign-in button. You set them up in Stores → Configuration → MageMe Extensions → HidePrice, under General, in Price Replacement and in Add To Cart Replacement.
Before you start
- A button is chosen as the replacement. The fields on this page appear only when Replace Price With or Replace Add To Cart With is Button With Alert or Authentication Button. See Replace the price and Replace the Add to Cart button.
- Other texts are set where their feature is set up: the Text replacement in Replace the price, Request Button Text in Set up the price request form, and the WebForms button in Price request through a WebForms form.
Steps
-
Go to Stores → Configuration → MageMe Extensions → HidePrice. Expand General, then the group of the element you replaced: Price Replacement or Add To Cart Replacement. Only the group that matches Elements to Hide is shown.
-
If the settings are for one store view, select it in the scope switcher at the top of the page.
-
Under the replacement you selected in Replace Price With or Replace Add To Cart With, fill in the fields described below: Button With Alert or Authentication Button.

-
Click Save Config.
-
If both the price and Add to Cart are replaced by a button, expand the other group and repeat step 3. The fields are the same, and each group keeps its own values, so the two buttons can differ.
Button With Alert
The button opens a dialog over the page with an icon, a title, your message and a close button. Use it for "How to order" or "Call us" information.
| Field | What it sets | Default |
|---|---|---|
| Button Text | The text on the button. | Click For Info |
| Button Text Color | The color of the button text. | The theme's color |
| Button Background Color | The background color of the button. | The theme's color |
| Alert Icon | The icon at the top of the dialog. See the options below. | Info |
| Alert Title Text | The title of the dialog. | Info |
| Alert Text | The message in the dialog. | MageMe HidePricePro |
| Alert Button Text | The text of the button that closes the dialog. | Close |
Alert Icon has these options:
| Option | What the dialog shows |
|---|---|
| None | No icon. |
| Success | A check mark in a circle. |
| Error | A cross in a circle. |
| Warning | An exclamation mark in a circle. |
| Info | An "i" in a circle. This is the default. |
| Question | A question mark in a circle, with MageMe Core 2.2.1 or later. With an older Core, no icon. |
Alert Text can hold several paragraphs, bold text and links. The default text is the extension's name, so replace it with your own message before you go live.
When you click a color field, a color picker opens. You can also type the color as a six-digit hex code. Leave a color empty to keep the theme's own button colors. If you clear a text field, the button shows the default from the table.
All settings of these groups: Price Replacement · Add To Cart Replacement.
Authentication Button
The sign-in button. A guest clicks it and signs in without leaving the product. How it works is described in Sign-in button (Authentication Button).
| Field | What it sets | Default |
|---|---|---|
| Button Text | The text on the button, for example Sign in to see prices. | Sign In |
| Button Text Color | The color of the button text. | The theme's color |
| Button Background Color | The background color of the button. | The theme's color |
All settings of these groups: Price Replacement · Add To Cart Replacement.
What you should see
Open a product with a hidden price on the storefront. The button shows your text and colors where the price was:


Click the Button With Alert. The dialog opens with your icon, title, text and close button:


Limits
- Every field here can differ per store view. See Store views and customer groups.
- The button shape, size and font come from your theme. HidePrice Pro sets only the two colors.
- Signed-in customers never see the Authentication Button. See Sign-in button (Authentication Button).
Troubleshooting
- The fields aren't on the page. The replacement in this group isn't Button With Alert or Authentication Button. Select it first, see Replace the price.
- The group isn't on the page. Price Replacement shows only when Elements to Hide hides the price, and Add To Cart Replacement only when it hides Add to Cart. Check Elements to Hide, see Choose what to hide.
- The button still shows the old text. Check the store view in the scope switcher. A value saved for a store view comes before the default one.
- The button shows in the wrong place or twice. See The replacement shows in the wrong place or twice.
What's next
- Catalogue without online ordering: a full setup that uses the Button With Alert for ordering information.
- Sign in to see prices: a full setup with the Authentication Button.
- Hyvä theme settings: style the price request form on a Hyvä store.