PDA

View Full Version : Hiding Prices Until Customer Logs In


SusanP
09-07-06, 03:10 PM
Hi,

A new need has arisen for our store. I'll try to describe what we need.

We need our customers to first fax us a copy of their professional medical license before they may see our prices and make purchases. We do want everyone else to be able to view our products and descriptions.

So, after we receive their faxed license, we need to somehow issue a password to them, and then voila...our prices and shopping capabilities will appear.

I am not sure how to even begin. Any ideas? Also, will this involve setting up two stores (one with prices, one without)?

I would appreciate any advice.

Susan

DesignExtend-MSI
09-07-06, 03:17 PM
There's a few things you'd want to do here.

1. Disable allowing just anyone to signup for an account. You could just remove the functionality of their creating an account by modifying the page template for the account screen.

2. Use a condtional to not display the product price if they are not logged in.

Try this:

<mvt:if expr="g.Basket:cust_id EQ 0">
Whatever message (or blank) you want displayed if not logged in
<mvt:else>
Price: &mvt:product:formatted_price;
</mvt:if>

Vic - WolfPaw Computers
09-07-06, 04:31 PM
You would have to modify this behavior in several screens, plus it would not prevent a customer adding it to their basket, unless you hide the buy/add buttons as well.

DesignExtend-MSI
09-07-06, 04:47 PM
Vic is correct. I wanted to give a starting point, but yes, you'd have to use the conditional on all displayed screens (category, product list, basket, etc.) and also I overlooked that you would need to hide the buttons.

Pat
09-07-06, 09:36 PM
We do this for our B2B website.

Everone can see products.
Nobody can see product prices or buy anything unless they have created an account and the account is 'approved'

'approved' means we move them to a price group called 'approved' which does not change the price, just has the customers as members of the group.

You need to put a condiional around the price display and the buy buttons in the Category, Product Display, Product List and Search pages so no one can see the price or buy the product without having logged in and being a member of a price group.

The conditional we use is

<mvt:if expr="g.Basket:cust_id EQ 0">
You must be a member
<mvt:else>
<mvt:if expr="g.Customer:PGRPCOUNT NE 0">

Price or Buy display Code Here

<mvt:else>
Waiting for approval
</mvt:if>
</mvt:if>

If you are logged in and are not a member of a price group ( ie not being approved) , you get the message 'waiting for approval'.
If you are just browsing the site, you see 'You must be a member'

SusanP
09-21-06, 01:38 PM
Hi,

Thank you all for the advice. But, I have no idea where to put the code or how to do it. Do you mind explaining this further and pretend I'm in the 4th grade?

Thank you,
Susan

Vic - WolfPaw Computers
09-21-06, 04:01 PM
That was included in the initial post by Pat:


You need to put a condiional around the price display and the buy buttons in the Category, Product Display, Product List and Search pages so no one can see the price or buy the product without having logged in and being a member of a price group.


You need to find the text in each of those pages where the price is displayed and the buy/add to cart buttons are coded.

Usually you will find this in the Product Display Layout item portion of the page. View the page editing in Advanced Mode and you'll be able to see the actual code.

Hi,

Thank you all for the advice. But, I have no idea where to put the code or how to do it. Do you mind explaining this further and pretend I'm in the 4th grade?

Thank you,
Susan

SusanP
09-25-06, 07:03 PM
Hi,

I really appreciate the help, but I don't know how to do this at all. Is there any way I could pay someone to do this for me?

Susan

SusanP
09-28-06, 01:37 PM
Hi,

I have tried to figure out all the instructions above, but I am not familiar enough with MIVA to figure it all out.

Do you mind giving me a little more specific instructions? Also, is there anyone who can do this for me?

Thank you,
Susan

Vic - WolfPaw Computers
09-28-06, 04:16 PM
You can contact us off the forums using the email in my signature below if you would like a quote on having us do this work for you.