Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2012, 06:01 PM
Joe Leal's Avatar
Joe Leal Joe Leal is offline
Junior Member
 
Join Date: Jan 2012
Posts: 1
Default Show prices for registered user only.

I need to show prices for registered users only, this is a must for my client, since i can not find a solution for this requirement i can not use ecwid, it's a shame!
Reply With Quote
  #2  
Old 01-31-2012, 10:19 AM
Matt K's Avatar
Matt K Matt K is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,829
Default

Quote:
Originally Posted by Joe Leal View Post
I need to show prices for registered users only, this is a must for my client, since i can not find a solution for this requirement i can not use ecwid, it's a shame!
Hello,

Unfortunately, Ecwid doesn't currently have a built-in feature for hiding the prices for non-registered visitors in the storefront. However, there is a related suggestion in our ideas base. Please vote for it to get it implemented in Ecwid sooner:
http://ideas.ecwid.com/forums/22031-...

In the meantime you can consider a workaround. As you probably know, there is a way to hide product prices in a store at all (by modification of your custom CSS theme):
http://kb.ecwid.com/w/page/21851989/...

Since it should depend on whether a visitor is logged in or not, that CSS mod should be enabled or disabled dynamically. In order to do it you will need to make a slight JavaScript code, which will check a customer profile (it can be done by means of the Ecwid JS API). The exact way to implement it depends on:
- how you will manage your customers and give an ability to register in your store. The registration in Ecwid store is free for all customers, however, you can make an external registration with the help of the Single Sign On API so all registered users will need your approval.
- how you will integrate your store on your site. Ecwid widgets and a way how they can be integrated into existing websites give merchants an ability to set up the online store in many different ways so the site HTML structure can be different.
- whether the bag widget should be displayed when the prices are hidden or not.
- etc.

Could you explain how exactly it should look so I will suggest you a more suitable solution?
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
Reply With Quote
  #3  
Old 04-18-2012, 04:40 PM
marinalucio's Avatar
marinalucio marinalucio is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default

Hi guys...
I'm having the same problem here. I have Ecwid integrated with wordpress, and i want to show price only to the logged in users. Is there a way to do this? I want the client to register through a custom registration form in wordpress, and the price would show if they're logged in wordpress.
I'm not really good at php, but i can understand html and css just fine. How can i do this?
Reply With Quote
  #4  
Old 04-19-2012, 02:40 PM
marinalucio's Avatar
marinalucio marinalucio is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default

Anyone guys?! i really need some help here. I'm about to close this website, this is the only thing that i need now.
Reply With Quote
  #5  
Old 04-19-2012, 07:04 PM
Matt K's Avatar
Matt K Matt K is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,829
Default

Quote:
Originally Posted by marinalucio View Post
Hi guys...
I'm having the same problem here. I have Ecwid integrated with wordpress, and i want to show price only to the logged in users. Is there a way to do this? I want the client to register through a custom registration form in wordpress, and the price would show if they're logged in wordpress.
I'm not really good at php, but i can understand html and css just fine. How can i do this?
Hello,

In my previous message, I explained how to hide prices and add to bag buttons in Ecwid (in general):
Quote:
As you probably know, there is a way to hide product prices in a store at all (by modification of your custom CSS theme):
http://kb.ecwid.com/w/page/21851989/...
Since it should depend on whether a visitor is logged in or not, that CSS mod should be enabled or disabled dynamically.
If my understanding is correct, you want to check if a visitor is logged in to WP and show/hide prices accordingly. Here is how you can do it:
1. In the "header.php" file of your current WP theme, check whether a user is logged in or not.
As far as I know, there is a function in WP for such purposes. You can consider using it. Please refer to this document:
http://codex.wordpress.org/Function_...

2. If a user is not logged in, add some special CSS class to the <body> tag so that it will look like this:
<body class="my-special-class">

3. Add CSS rules to your custom CSS theme that will hide prices when the 'my-special-class' is set. Such a rule could look like this:
Code:
.my-special-class div.ecwid-productBrowser-price { 
  display: none; 
}
If you need help with creating of such a mod, please feel free to contact our friends from Qualiteam: sales@qtmsoft.com . They will be glad to help.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials

Last edited by Makfruit; 04-20-2012 at 08:45 AM.
Reply With Quote
  #6  
Old 04-19-2012, 08:08 PM
marinalucio's Avatar
marinalucio marinalucio is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default

Ok Makfruit,

Thank you for your reply. Let me see if i'm doing this right. I'm using the mercado theme btw.
I'll go to the header.php file, and add the
Quote:
<?php
if ( is_user_logged_in() ) {

} else {
<body class="my-special-class">
}
?>
code anywhere on the page?

I did the custom css already. But i'm doing it this way and it's not working. What i'm doing wrong here?
Reply With Quote
  #7  
Old 04-20-2012, 11:55 AM
Matt K's Avatar
Matt K Matt K is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,829
Default

Quote:
Originally Posted by marinalucio View Post
Ok Makfruit,

Thank you for your reply. Let me see if i'm doing this right. I'm using the mercado theme btw.
I'll go to the header.php file, and add the
code anywhere on the page?

I did the custom css already. But i'm doing it this way and it's not working. What i'm doing wrong here?
This way, you're creating another <body> tag on the page that already has one. It's not correct. You will need to add a CSS class to the existing body element instead of replacing the element or adding another one. In order to do it, find the place in code where the body tag is located and add a custom code there so that a special CSS class will be appended when an user is not logged in.
It's a bit difficult to recommend the exact way of integration such a mod and the exact code as it depends on many things: theme functions and styles, the site structure and layout - they all may be different for each WP installation. So I'd recommend you to hire a developer to make the changes for you.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
Reply With Quote
  #8  
Old 03-24-2013, 11:57 PM
Mike scheid's Avatar
Mike scheid Mike scheid is offline
Junior Member
 
Join Date: Mar 2013
Posts: 1
Default members only pricies

Is it possible to have prices only show to logged in users. We are wholesale shop and would like for the public to see our products but only give prices and purchase options to logged in members.

It this possible?

Thanks in advance for any advise!
Reply With Quote
  #9  
Old 03-25-2013, 12:54 PM
Liza's Avatar
Liza Liza is offline
Ecwid Team
 
Join Date: Jan 2013
Posts: 2,224
Default

Quote:
Originally Posted by Mike scheid View Post
Is it possible to have prices only show to logged in users. We are wholesale shop and would like for the public to see our products but only give prices and purchase options to logged in members.

It this possible?

Thanks in advance for any advise!


Please, refer to this post: http://www.ecwid.com/forums/showthre...
__________________
Liza P.
Customer Care
Ecwid Help Portal
Ecwid Knowlegde Base
Reply With Quote
  #10  
Old 07-08-2013, 06:25 PM
DKD's Avatar
DKD DKD is offline
Junior Member
 
Join Date: Mar 2012
Posts: 1
Default Hidden prices and shopping cart until logged in

Hi!

Is there a way to keep prices and the shopping bag hidden until the customer logs in via the "sign in" link?

Thanks.
Reply With Quote
Reply

Tags
members, prices, wholesale

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.