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

Andrecolap
Excursionist
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)

Andrecolap_0-1709736178652.png

 

Details of my website:

https://77af35.myshopify.com/products/brouer-mobelfabrik

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:

https://www.froonze.com/blog/how-to-hide-prices-to-unlogged-customers-in-shopify

 

 

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

https://77af35.myshopify.com/products/3-seater-sofa

 

Andrecolap_1-1709736221674.png

 

Any suggestions are welcome.

 

With best

 

Andrea

 

Reply 1 (1)

deepaksharma
Shopify Partner
448 63 93

Hi there @Andrecolap 

 

Hope you are doing well

 

You can change the class and type of the existing tag

Before

deepaksharma_0-1709737759180.png

 

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

deepaksharma_1-1709737815236.png

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

deepaksharma_2-1709737921736.png

 

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