Hi there,
Edward here, Ecwid Team.
Thank you for the message. I'll be happy to help you.
Quote:
How would I go about implementing that option to my own site?
|
It's possible to do with a bit of CSS coding. We have an article that describes different ways of hiding certain elements of your store based on various conditions, including customers being logged in/logged out:
https://support.ecwid.com/hc/en-us/a...in-pages-only-
To hide the prices from the customers who are logged out, you need to add a couple of pieces of the CSS code to your Ecwid store. Please, follow the below steps.
1. Go to the Ecwid Control Panel → Settings → Design → Click on the "Create Theme" button.
2. Create a new theme — hit the "New CSS Theme" button.
3. Add the below CSS code to the empty text field.
4. Activate and Save
If you already have a custom CSS theme, then just to the Ecwid Control Panel → Settings → Design → Edit theme → Paste the code below to the bottom of the field → Activate and Save
Code:
body.ecwid-customer-loggedOut .ecwid-productBrowser-price,
body.ecwid-customer-loggedOut .ecwid-productBrowser-cart-totalAmountPanel,
body.ecwid-customer-loggedOut .ecwid-productBrowser-cart-subtotalAmountPanel,
body.ecwid-customer-loggedOut .ecwid-productBrowser-cart-shippingAmountPanel,
body.ecwid-customer-loggedOut .ecwid-productBrowser-cart-taxAmountPanel{
display: none !important;
}
This code will hide the prices for any visitors who are not logged in.
Furthermore, you might want to change the text of some store elements to notify your visitors that they need to log in to see the prices. We have a detailed article on this topic in our Help Centre:
https://support.ecwid.com/hc/en-us/a...s-in-my-store-
I hope this helps.
Please, let me know if you have any questions.