Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Trouble with logging in users



******    message to minivend-users from Ed LaFrance <newmedia@newmediaems.com>     ******

Masahiro -

Perhaps you could try a different approach.  How does your catalog 
distinguish a government purchasing agent from a regular user?  Do they 
both log in?  If not - in other words, if only government agents log in - 
you could do:

[if session logged_in]
         [discount ALL_ITEMS] $s * .8 [/discount]
[/if]

According to the 3.1x docs, this would give a 20% discount to all gov 
agents if you put in on their welcome page - no need for a special pricing 
field!

If you allow all types of users to log in, you could have a column in 
userdb named is_gov, and set it to a non-blank value for government 
agents.  Then you could do something like:

[if data userdb::is_gov::[data session username]]
    [discount ENTIRE_ORDER] $s * .9 [/discount]
[/if]

...to take 10% off of their order when you put this on the checkout page.

These are just untested examples.  Read up on discounts in the docs.

Good luck!

- Ed L.



At 10:17 AM 3/15/00 -0800, you wrote:
>******    message to minivend-users from "Snowcrest eCommerce Development" 
><minivend-dev@snowcrest.net>     ******
>
>Hi List users.
>
>I'm a web developer at a local ISP in northern CA and I am running into some
>problems using minivend for an eCommerce solution we are currently
>developing.
>
>Here's what I'd like to do:
>Set up a login area for buyers to login as a government agent to obtain
>reduced prices.
>Set up reduced prices for government agents in a pricefield in the products
>db via the Locale settings for government agents.
>Have the fly page and results page display appropriate prices.
>
>Here's what I've gotten done:
>Properly set up the products db to contain a price column for retail buyers
>and a serparate price column for government buyers.
>Made the Locale for government agents switch pricefields to reflect the
>reduced prices.
>Using the switched pricefield, government agents will be able to view
>reduced prices in the results and fly page if they login.
>
>Here's what I can't do:
>Set up a secure login area that will log a user in as a government agent and
>then switch the locale setting, causing the prices to display the reduced
>amounts.  I've bashed my head against the wall trying the figure this out,
>but no luck.  I have the code set up to log the user in, but I have no
>flippin clue how to add the user in the userdb file with the appropriate
>password encrypted.  I wouldn't mind scrapping the encryption algorithm to
>have the userdb.asc tab-delimited text change the userdb.db file, but I'm
>lost as to how to do this.
>
>Help!
>
>Masahiro Knittel
>
>
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: