VirtueMart 3.6.10 10211
Joomla! 3.9.14
Hello,
First of all Happy new Year.
I tested on Fresh install with no overides.
The problem is that when someone registers, the e-mail sent to both the vendor and the customer is missing the adress fields.
The username and displayed name are sent but the e-mail, adress fields, phone numbers etc... are empty.
I var_dump ($this->userFields) and it shows 'value' => null for each userfields.
array (size=5)
'fields' =>
array (size=19)
'email' =>
array (size=11)
'name' => string 'email' (length=5)
'value' => null
'unescapedvalue' => null
'title' => string 'E-Mail' (length=6)
'type' => string 'emailaddress' (length=12)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="email" id="email_field" name="email" size="30" value="" class="required validate-email" maxlength="100" /> ' (length=123)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'name' =>
array (size=11)
'name' => string 'name' (length=4)
'value' => null
'unescapedvalue' => null
'title' => string 'Displayed Name' (length=14)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="name_field" name="name" size="30" value="" class="required" maxlength="400" /> ' (length=104)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'delimiter_userinfo' =>
array (size=11)
'name' => string 'delimiter_userinfo' (length=18)
'value' => null
'unescapedvalue' => null
'title' => string 'Shopper Information' (length=19)
'type' => string 'delimiter' (length=9)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '' (length=0)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'delimiter_billto' =>
array (size=11)
'name' => string 'delimiter_billto' (length=16)
'value' => null
'unescapedvalue' => null
'title' => string 'Bill To Information' (length=19)
'type' => string 'delimiter' (length=9)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '' (length=0)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'company' =>
array (size=11)
'name' => string 'company' (length=7)
'value' => null
'unescapedvalue' => null
'title' => string 'Company Name' (length=12)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="company_field" name="company" size="30" value="" maxlength="64" /> ' (length=92)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'title' =>
array (size=11)
'name' => string 'title' (length=5)
'value' => null
'unescapedvalue' => null
'title' => string 'Title' (length=5)
'type' => string 'select' (length=6)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<select id="title_field" name="title" class=" vm-chzn-select" style="width: 210px">
<option value="" selected="selected">Please Select</option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
</select>
' (length=221)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'first_name' =>
array (size=11)
'name' => string 'first_name' (length=10)
'value' => null
'unescapedvalue' => null
'title' => string 'First Name' (length=10)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="first_name_field" name="first_name" size="30" value="" class="required" maxlength="32" /> ' (length=115)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'middle_name' =>
array (size=11)
'name' => string 'middle_name' (length=11)
'value' => null
'unescapedvalue' => null
'title' => string 'Middle Name' (length=11)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="middle_name_field" name="middle_name" size="30" value="" maxlength="32" /> ' (length=100)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'last_name' =>
array (size=11)
'name' => string 'last_name' (length=9)
'value' => null
'unescapedvalue' => null
'title' => string 'Last Name' (length=9)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="last_name_field" name="last_name" size="30" value="" class="required" maxlength="32" /> ' (length=113)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'address_1' =>
array (size=11)
'name' => string 'address_1' (length=9)
'value' => null
'unescapedvalue' => null
'title' => string 'Address 1' (length=9)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="address_1_field" name="address_1" size="30" value="" class="required" maxlength="64" /> ' (length=113)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'address_2' =>
array (size=11)
'name' => string 'address_2' (length=9)
'value' => null
'unescapedvalue' => null
'title' => string 'Address 2' (length=9)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="address_2_field" name="address_2" size="30" value="" maxlength="64" /> ' (length=96)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'zip' =>
array (size=11)
'name' => string 'zip' (length=3)
'value' => null
'unescapedvalue' => null
'title' => string 'Zip / Postal Code' (length=17)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="zip_field" name="zip" size="30" value="" class="required" maxlength="32" /> ' (length=101)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'city' =>
array (size=11)
'name' => string 'city' (length=4)
'value' => null
'unescapedvalue' => null
'title' => string 'City' (length=4)
'type' => string 'text' (length=4)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="city_field" name="city" size="30" value="" class="required" maxlength="32" /> ' (length=103)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'virtuemart_country_id' =>
array (size=13)
'name' => string 'virtuemart_country_id' (length=21)
'value' => string '' (length=0)
'unescapedvalue' => null
'title' => string 'Country' (length=7)
'type' => string 'select' (length=6)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<select id="virtuemart_country_id_field" name="virtuemart_country_id" class="vm-chzn-select required" style="width: 210px">
<option value="" selected="selected">Please Select</option>
<option value="1">Afghanistan</option>
<option value="2">Albania</option>
<option value="3">Algeria</option>
<option value="4">American Samoa</option>
<option value="5">Andorra</option>
<option value="6">Angola</option>
<option value="7">Anguilla</option>
<option value="8">Antarctica</option>
<option value="9">Antigu'... (length=10434)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'country_2_code' => string '' (length=0)
'country_3_code' => string '' (length=0)
'virtuemart_state_id' =>
array (size=13)
'name' => string 'virtuemart_state_id' (length=19)
'value' => string '' (length=0)
'unescapedvalue' => null
'title' => string 'State / Province / Region' (length=25)
'type' => string 'select' (length=6)
'required' => string '1' (length=1)
'hidden' => boolean false
'formcode' => string '<select id="virtuemart_state_id_field" class=" required vm-chzn-select" name="virtuemart_state_id" style="width: 210px">
<option value="">Please Select</option>
</select>' (length=183)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'state_2_code' => string '' (length=0)
'state_3_code' => string '' (length=0)
'phone_1' =>
array (size=11)
'name' => string 'phone_1' (length=7)
'value' => null
'unescapedvalue' => null
'title' => string 'Phone' (length=5)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="phone_1_field" name="phone_1" size="30" value="" maxlength="32" /> ' (length=92)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'phone_2' =>
array (size=11)
'name' => string 'phone_2' (length=7)
'value' => null
'unescapedvalue' => null
'title' => string 'Mobile phone' (length=12)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="phone_2_field" name="phone_2" size="30" value="" maxlength="32" /> ' (length=92)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'fax' =>
array (size=11)
'name' => string 'fax' (length=3)
'value' => null
'unescapedvalue' => null
'title' => string 'Fax' (length=3)
'type' => string 'text' (length=4)
'required' => string '0' (length=1)
'hidden' => boolean false
'formcode' => string '<input type="text" id="fax_field" name="fax" size="30" value="" maxlength="32" /> ' (length=84)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'address_type' =>
array (size=11)
'name' => string 'address_type' (length=12)
'value' => string 'BT' (length=2)
'unescapedvalue' => string 'BT' (length=2)
'title' => string '' (length=0)
'type' => string 'hidden' (length=6)
'required' => int 0
'hidden' => boolean true
'formcode' => string '<input type="hidden" id="address_type_field" name="address_type" size="0" value="BT" /> ' (length=89)
'description' => string '' (length=0)
'register' => int 0
'htmlentities' => boolean true
'functions' =>
array (size=0)
empty
'scripts' =>
array (size=0)
empty
'links' =>
array (size=0)
empty
'byDefault' =>
array (size=1)
'address_type' => int 1
Is this a new behaviour? or a bug?
Thanks for your help.
Best regards
Quote from: holanpan7 on January 06, 2020, 11:57:06 AM
Is this a new behaviour? or a bug?
A new behaviour. If I remember correctly, the reason was that private data should not be sent by email, because it's not necessary for registration.
I think it was discussed after a report that the registration email contained the password (which is a possible Joomla configuration option).
I will probably remove the "Address:" language string in the emails in the next VM version, in order to avoid confusion.
Thanks for your reply jjk,
I think it will be better to leave the choice as an option like in joomla.