VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: koaconsulting on November 16, 2019, 22:37:18 PM

Title: userFields empty in mail_html_reguser... no user details being emailed
Post by: koaconsulting on November 16, 2019, 22:37:18 PM
We just upgraded a client site from Virtuemart 3.6.x(?) to VirtueMart 3.6.10 10211 (Joomla! 3.9.13 Stable) and have a problem.  When either the new shopper email or the registration email are sent, the email is truncated.  You can see an example of the emails below.  We do have quite a few custom Shopper Fields created but this was never an issue until we just upgraded to Virtuemart 3.6.10.

We've debugged the code extensively and it seems that the views/user/view.html.php file is not setting the $this->userFields values at all.  So when the tmpl/mail_html_reguser.php file goes to display them they are always empty.

We disabled all overrides in the "html" folder of our Joomla template and the problem still exists.  Any suggestions or ideas would be great!  Thanks!

*************** Vendor email *********************
Hi vendor The Steve Frankel Group, LLC
The new shopper registration data
Username : Linda Lou
Displayed name: : Linda Lunsted

Entered address


*************** Shopper email *********************

Welcome Curran Keith
Your Registration data
Your Login Name: testkoa1
your displayed name: Curran Keith

Your entered address:
Title: Re: Registration and Vendor emails truncated with latest upgrade...
Post by: koaconsulting on December 12, 2019, 23:50:35 PM
Bump... anyone have any ideas or have the same issue?  Any help would be greatly appreciated!
Title: Re: userFields empty in mail_html_reguser... no user details being emailed
Post by: holanpan7 on January 02, 2020, 21:14:17 PM
Same problem here. The address is not being sent in the email.
Does anyone have this problem?
Title: Re: userFields empty in mail_html_reguser... no user details being emailed
Post by: holanpan7 on January 04, 2020, 11:30:03 AM
I tested on a fresh install VirtueMart 3.6.10 and Joomla! 3.9.13 and I have the exact problem as mentionned above.

I var_dump ($this->userFields) and it shows 'value' => null for each userfields.

Any ideas? Thanks

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