Skip to main content

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​

Steps​

  1. 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.

  2. If the settings are for one store view, select it in the scope switcher at the top of the page.

  3. 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.

    Button With Alert settings with text, colors and alert texts
  4. Click Save Config.

  5. 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:

On Hyvä: product page with the replacement button in custom colors
On Luma: product page with the replacement button in custom colors

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

On Hyvä: alert dialog with its icon, title, text and button
On Luma: alert dialog with its icon, title, text and button

Limits​

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​

Last reviewed November 28, 2026