PDA

View Full Version : What Would You Recommend?


mgersting
06-07-06, 11:21 PM
Many thanks in advance for your help, everyone.
I'm going to briefly lay out what I want to do as I understand it. Any insight, help, direction would be greatly appreciated.

-------------------
Summary:
I want to be able to offer different companies discounts on our products. My idea is to create several price groups, one for the various levels of discounts, say 10-55%.

I would like users to be able to hit a login page and enter an additional code. If the code validates when Miva creates their customer record I just need it to automatically add them to the appropriate price group.

My plan of attack was:

1. Price Groups
I've set up 4 groups - Discount Group 10%, Discount Group 25% etc, and correlated the appropriate products into those groups.

2. Partner Code
I created a table in MySQL (please note: apparently my version of Miva is not the MySQL driven version) to store string codes.

3. Sign up Page
I was guessing I would submit the sign up form to a PHP page that would validate the code, and then try to pass the data onward to the standard Miva signup code?


What do you guys think?

ids
06-07-06, 11:39 PM
What version of Miva Merchant? Are you using Compiled MM4 with OpenUI?

Scott

mgersting
06-07-06, 11:40 PM
Good question - sorry I forgot to mention that. No, I'm using MM5.

Tongo
06-08-06, 04:24 PM
You could use a Log Module to check the code after Miva validates the customer account. If you submit to the PHP script first, what happens if the account creation fails in Miva. You could have the module submit to the PHP script or just do the validation of the code

mgersting
06-08-06, 10:01 PM
is there a particular module you might recommend?

Tongo
06-09-06, 01:30 AM
You would have to custom code one. I don't know of any available module that could do exactly what you are trying to do.

mgersting
06-09-06, 05:05 PM
Gotcha. The information on coding a Miva 5 module seems exceptionally lacking. Any good references you can recommend?

Bruce - PhosphorMedia
06-09-06, 05:29 PM
Check out the information posted by Bill Guindon (http://extranet.miva.com/forums/showthread.php?t=1670)