Author Topic: Some user registration fields not showing in IE7  (Read 4563 times)

shinbet

  • Beginner
  • *
  • Posts: 23
    • Einfal Media
Some user registration fields not showing in IE7
« on: August 25, 2008, 20:07:56 pm »
hi
I have a small Virtuemart store on my site,
For some strange reason, when a user needs to create a new account, half the fields do no display in Internet Explorer
Though i've chosen to show, first name, last name, address, city, zip, email - this only shows in firefox,
In Internet explorer i only see First Name, Address, City and email.
 
I tried widening my template page to see if it would show in a second column, but no, i cannot see anything.

What might i be doing wrong?

This is my user registration page

http://www.ptach.org/index.php?option=com_virtuemart&page=shop.registration&Itemid=107

Any ideas?

Thanks so much
Everything you want, just cheaper http://www.cheaper.com

Helen Thomas, so we never forget
http://www.firehelenthomas.com

froudie

  • Beginner
  • *
  • Posts: 16
    • PortalWorks
Re: Some user registration fields not showing in IE7
« Reply #1 on: August 26, 2008, 14:57:37 pm »
I have this problem as well and I have solved it to some degree.

I edited (by luck) the login_registration.tpl.php file (/components/com_virtuemart/themes/default/templates/checkout/) as follows:

Was
<?php
   echo vmCommonHTML::scriptTag('', 'Window.onDomReady(function() {
   
   // get accordion elements
   myStretch = $$( \'.toggler\' );
   myStretcher = $$( \'.stretcher\' );
   
   // Create the accordion
   myAccordion = new Fx.Accordion(myStretch, myStretcher,
      {
         /*fixedHeight: 125,*/
         opacity : true,
         display: '.$open_to_stretcher.'
      });

});');
?>

Now

<?php
   echo vmCommonHTML::scriptTag('', 'Window.onDomReady(function() {
 
 // get accordion elements
 myStretch = $$( \'.toggler\' );
 myStretcher = $$( \'.stretcher\' );
 
 // Create the accordion
 myAccordion = new Fx.Accordion(myStretch, myStretcher,
  {
   fixedHeight: 1000,
   opacity : true,
   /*display: '.$open_to_stretcher.'*/
  });

The only problem is it does not expand when you select New Customer as it is a fixed height, but at least it works!

Any further help on fixing this is appreciated.

Andrew

shinbet

  • Beginner
  • *
  • Posts: 23
    • Einfal Media
Re: Some user registration fields not showing in IE7
« Reply #2 on: August 26, 2008, 16:33:45 pm »
hi
I tried your trick, but unfortunately, it does not work for me,

Someone suggested to me that perhaps the CSS is at fault, i'm looking at that now
If i disable all css on the page, using the IE developer bar toolbar , (similar to firebug for firefox if you know what that is) then i see all my fields.

So now i just need to know what or how to modify the css

Has anyone any info on this?
Everything you want, just cheaper http://www.cheaper.com

Helen Thomas, so we never forget
http://www.firehelenthomas.com

shinbet

  • Beginner
  • *
  • Posts: 23
    • Einfal Media
Re: Some user registration fields not showing in IE7
« Reply #3 on: August 27, 2008, 15:49:50 pm »
ok, I pulled my brains out on this one, almost fixed, i am sure an expert can tell us the total repair

components/com_virtuemart/themes/default/theme.css

i commented out the form code (line 183) and now , although my site does not look pretty, it shows all the fields.

Code: [Select]
General Form Styling

.formLabel {
float:left;
width:100%;
text-align:right;
font-weight: bold;
margin: 2px;
white-space: nowrap;
clear: left;
vertical-align: middle;
margin-top: 8px;
line-height:50px;
}

#agreed_div {
white-space: normal;
}

.formField {
float:left;
width:100%;
margin: 2px;
vertical-align: middle;
margin-top: 8px;
line-height:50px;

}
.missing {
color:red;
font-weight:bold;
}
Everything you want, just cheaper http://www.cheaper.com

Helen Thomas, so we never forget
http://www.firehelenthomas.com

stevenhouse

  • Beginner
  • *
  • Posts: 1
Re: Some user registration fields not showing in IE7
« Reply #4 on: October 12, 2010, 22:15:43 pm »
So this is a slightly older post but because I was searching for it I thought I'd post what my problem / solution was.  Problem: IE8 was not displaying username, password1, and password2 fields.  If I looked quickly enough I could see them flash in then disappear. 

I Viewed Source and saw that the HTML was indeed there for those fields but I couldn't see them.  I though CSS, but found not to be true (changed templates then changed back), and also used IE developer tools to disable CSS.  Found out this was my problem. 

In ps_userfield.php the following code was the culprit:

if( VM_REGISTRATION_TYPE == 'OPTIONAL_REGISTRATION') {
               echo '<div><script type="text/javascript">
               //<![CDATA[
           function showFields( show, fields ) {
               if( fields ) {
                   for (i=0; i<fields.length;i++) {
                       if( show ) {
                           document.getElementById( fields + \'_div\' ).style.display = \'\';
                           document.getElementById( fields + \'_input\' ).style.display = \'\';
                       } else {
                           document.getElementById( fields + \'_div\' ).style.display = \'none\';
                           document.getElementById( fields + \'_input\' ).style.display = \'none\';
                       }
                   }
               }
           }
           try {
               showFields( document.getElementById( \'register_account\').checked, new Array(\'username\', \'password\', \'password2\') );
           } catch(e){}
           //]]>
           </script></div>';

I commented out inside the last else: /* document.getElementById( fields + \'_div\' ).style.display = \'none\';
                           document.getElementById( fields + \'_input\' ).style.display = \'none\'; */

and it worked.  Hope this helps y'all.