Can you hide prices and add to cart buttons before user signs in

Dean_Legg1
Tourist
8 0 2

Hello

I have just started playing around with Shopify. Thinking about setting up a store on here. Used wordpress in the past (it's great but not specifically created for e-commerce).

Is it possible to set things up so prices and add to cart button will only show when a user has signed in?

Guessing it will need to be put into functions.php if there is one.

And is is support for questions like this normally free? The support forum is really important as I have only built 2 websites both on wordpress.

Thanks

Dean

 

 

rickydazla
Shopify Expert
690 0 73

{% unless customer %}

I'm a million different people
0 Likes
Dean_Legg1
Tourist
8 0 2

Okay thanks, where would I put this?

Is shopify just for web developers or is it also for people that have a little knowledge?

Thanks

Dean

0 Likes
Jamie
Shopify Staff (Retired)
Shopify Staff (Retired)
5715 0 152

Basically you would wrap anything that you don't want viewed by anyone but a signed in user with what Rick posted there for you. Have a look at the wiki for customer tags. And here is something for liquid tags:

http://wiki.shopify.com/UsingLiquid#If_.2F_Else_.2F_Unless

Shopify is for 95% of shop owners out of the box. If you want it to do something special you will have to roll up your sleeves and read the wiki and learn the system some.

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Dean_Legg1
Tourist
8 0 2

Okay thanks Jamie. Will have a think about rolling them sleeves up. Love the design aspect of shopify and a lot of the themes. Very clean.

 

It is whether I have the time to learn Shopify, Took a while to learn Wordpress.

 

Thanks for the response

0 Likes
Dean_Legg1
Tourist
8 0 2

Okay I am looking into it and it is all a bit confusing at the moment. Could you give me a head start with this one please.

Would like prices and add to cart to only appear for signed in customers.  What is the end tag for {% unless customer %}? 

Using radiance theme, wouldn't I just put the code somewhere in product.liquid? For example was thinking before and after this.

<p class="price"></p>                                 

                <input class="btn" type="submit" name="add" id="add-to-cart" value="Add to Cart" />

Thanks

Dean

0 Likes
Jamie
Shopify Staff (Retired)
Shopify Staff (Retired)
5715 0 152

Hey Dean, it's all on that wiki link: http://wiki.shopify.com/UsingLiquid#If_.2F_Else_.2F_Unless

'unless' always ends with 'endunless'

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Dean_Legg1
Tourist
8 0 2

Okay thanks for your help. Going to stick with wordpress for now until I get the time to learn how to use Shopify.

Shopify is the best e-commerce platform out there for design. Looks amazing when editing and a lot of stores built on the platform look great.