'Register or login to see price' in a white button with black outline and black text

45 0 5

Hi there,


I recently added a 'Register or login to see price' line in the product pages of most of the items on my website (see details below)



Details of my website:


password is chonga


In order to achieve that, I added some codes at the beginning and at the end of the price.liquid snippet.

The full instructions I followed are at:




I would like to have the text 'Register or login to see price' in a white button with black outline and black text, like the one that I have on some other pages where I have set the price on request (see link below).





Any suggestions are welcome.


With best




Reply 1 (1)

Shopify Partner
448 63 93

Hi there @Andrecolap 


Hope you are doing well


You can change the class and type of the existing tag




After changing the tag from <a> to <button> and adding the class="product-form__submit button button--full-width button--primary"


I have selected it that's why it is looking blueish it is black.



If you are unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.


Hopefully, it will help you. If yes then Please don't forget to hit Like and Mark it as the solution!


Deepak Sharma || Shopify Developer || Helping eCommerce Stores
- Was my reply helpful? Accept it as solution
- Was your question answered? Mark it as an Accepted Solution.
-CHAT ON WHATSAPP | BUY ME A COFFEE | MAIL ME: ds2305187@gmail.com