• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Pre-fill form with user info from Virtuemart

Pre-fill form with user info from Virtuemart 17 years 2 months ago #1974

  • jdunagan
  • jdunagan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Can any one help me change this script:
global $my;

if($my->id){
foreach($fields as $i=>$field){
if($field->name=='fullname') $fields[$i]->default_value = $my->name; //Assuming your rsform text field is called \"fullname\"
if($field->name=='email') $fields[$i]->default_value = $my->email; //Assuming your rsform email text field is called \"email\"
}
}

I need it to pull the user information from VirtueMart instead of Joomla! - Does that make sense? I have some billing and shipping fields that I would like to pre-populate in my form so my users don't have to type it in every time. If anyway can help I would really, really appreciate it!

Thanks for your help.

Post edited by: jdunagan, at: 2008/02/17 12:43
The administrator has disabled public write access.

Re:Pre-fill form with user info from Virtuemart 17 years 2 months ago #1980

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
It sounds like you've have to get this question answered on the Virtumart forums.
I'd ask them if they have any global replacers or placeholders that can be called.

If you can call the data, you should be able to add it to a form.

I use global replacers as hidden fields in my forms such as
{jos_userip}, {jos_username} I'm sure there is something for Virtumart but it's possible that they might not have any.
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:Pre-fill form with user info from Virtuemart 17 years 1 month ago #2341

  • jdunagan
  • jdunagan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
That's not going to work for me. In VirtueMart I have fields named address1, address2, phone1, phone2, fax... I need those fields to be pre-filled in my rsform.

Someone out there has to be smart enough to help me figure this out. Please HELP!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!