help with simple order form linked to jos_users

lownotes

Member
I'm looking for some help on linking a simple order form to jos_users or better, CB comprofiler.

Here is the form
http://www.securalign.com/component/option,com_fabrik/Itemid,33/

What I'm looking for is the simplest route to prepopulate the order form data or link the orders to the users table. Require them to register for the site and then present them with the product details form.

Can someone steer me in the right direction, show me an example or some steps on how to get this started?

Thanks
 
Hi

The simplest way is to create a username element in your form. This will record the users ID who is filling in the form and thus link the record to a user.

Cheers
rob
 
prepopulate a form with CB profile

Hi,

here what I did to prepopulate address with CB profile address info, also I add possibilitie to user to add a different address.


Using Fabrik v1.0.6

Create a set of elements equating to the CB address data you want.
The defaults it installs with are address, city, state, zip, etc.
Give 'em a prefix like cb_city, just to distinguish them from the editable set. Make the cb_ elements Read Only.

Select Eval

Code:
global $database, $my;
$database->setQuery("SELECT city FROM jos_comprofiler WHERE user_id = '" . $my->id . "'");
return $database->loadResult();
here is the complete thread :
http://fabrikar.com/forums/showthread.php?t=7720

*Rob maybe you should add this to FAQ

regards,
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top