- Posts: 25
Feature Requests
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
[Closed] Map Virtuemart shopper fields
- dave
- Topic Author
- Offline
- Junior Member
-
Less
More
13 years 8 months ago - 13 years 3 months ago #1
by dave
[Closed] Map Virtuemart shopper fields was created by dave
Is there a way to map all virtuemarts shopper fields to moodle?
There are only some of the basic account fields available in the mapping tab.
I have 1 shopper field thats required during checkout that I need mapped to the same moodle field, but its not showing up as an option.
There are only some of the basic account fields available in the mapping tab.
I have 1 shopper field thats required during checkout that I need mapped to the same moodle field, but its not showing up as an option.
Last edit: 13 years 3 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Map Virtuemart shopper fields
Hi, you are right: currently field list is hardcoded, so it does not include all fields.
I will move this to Feature Request, so we can look into it for a future release.
I will move this to Feature Request, so we can look into it for a future release.
Please Log in or Create an account to join the conversation.
- dave
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
13 years 8 months ago #3
by dave
Replied by dave on topic Map Virtuemart shopper fields
Where can I find the hard coded list of virtuemart fields?
Maybe I can add the field we need to the list.
Including all of virtuemarts fields as an option for mapping would be extremely useful - since virtuemart takes and processes the users payments for courses.
Maybe I can add the field we need to the list.
Including all of virtuemarts fields as an option for mapping would be extremely useful - since virtuemart takes and processes the users payments for courses.
Please Log in or Create an account to join the conversation.
- dave
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
13 years 8 months ago #4
by dave
Replied by dave on topic Map Virtuemart shopper fields
I figured it out. For those looking to add additional fields to the virtuemart mapping heres what I did
Take note of the virtuemart shopper field(s) you've setup.
Open the following file in an editor root/administrator/components/com_joomdle/helpers/mappings.php file
at about line 612 the virtuemart mappings start. copy one of the mapped fields
$field = new JObject ();
$field->name = 'zip';
$field->id = 'zip';
$fields[] = $field;
and replace $field->name and $field->id = 'zip'; with your new shopper Field name.
In my case it looks like this
$field = new JObject ();
$field->name = 'vm_license';
$field->id = 'vm_license';
$fields[] = $field;
Save the file and upload it to the server. Then go to mappings in Joomdle and you should see you new field(s) listed in virtuemart.
Take note of the virtuemart shopper field(s) you've setup.
Open the following file in an editor root/administrator/components/com_joomdle/helpers/mappings.php file
at about line 612 the virtuemart mappings start. copy one of the mapped fields
$field = new JObject ();
$field->name = 'zip';
$field->id = 'zip';
$fields[] = $field;
and replace $field->name and $field->id = 'zip'; with your new shopper Field name.
In my case it looks like this
$field = new JObject ();
$field->name = 'vm_license';
$field->id = 'vm_license';
$fields[] = $field;
Save the file and upload it to the server. Then go to mappings in Joomdle and you should see you new field(s) listed in virtuemart.
Please Log in or Create an account to join the conversation.