VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: terp on April 15, 2012, 16:15:42 PM

Title: Remove the 'Already Registered' Login During Checkout
Post by: terp on April 15, 2012, 16:15:42 PM
Is there a setting I could toggle (I couldn't find one and the fields seem to be locked) to remove the login block during checkout (attached), or do I need to create a template override to hide it?



[attachment cleanup by admin]
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: DiveO2 on April 15, 2012, 18:24:37 PM
I don't fully understand the question....

When you say 'BLOCK', do you just mean the top bit of the form you attached? or the whole form?
Also, is there a chance that this is template specific?
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: terp on April 15, 2012, 20:25:03 PM
Yea, the top section, sorry....removing the login fields/etc...top half...and only show the address info.  I created an override, so good to go, but was wondering if I missed a setting somewhere to toggle that section off.

In the confirguation -> checkout section in the backend, there is a param for 'On checkout, as for registration,' so was thinking there might be a 'ask to login' setting hiding somewhere, if that makes more sense. :)
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: SupremeComputing on April 17, 2012, 18:00:49 PM
This would be a great option for us as we do not want or need to have people 'login'.

Terp - Sorry I am new to this, what steps did you take to create the override? I am unsure what an Override is or does.

Thanks in advance
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: terp on April 18, 2012, 22:30:01 PM
Quote from: SupremeComputing on April 17, 2012, 18:00:49 PM
This would be a great option for us as we do not want or need to have people 'login'.

Terp - Sorry I am new to this, what steps did you take to create the override? I am unsure what an Override is or does.

Thanks in advance

1.) Create a new folder in your template/html directory entitled com_virtuemart
2.) In this new folder, create another one called user
2.) Go to your ...\components\com_virtuemart\views\user\tmpl folder.
3.) Copy the edit_address.php file and paste it in your newly created template/html/com_virtuemart/user directory.
4.) Open the edit_address.php file you just put in the newly created user file.

Find the following on or around line 32:


<?php
echo shopFunctionsF::getLoginForm(false);
?>



...just comment that out or remove it, save, voila.

(I also removed the text up top):


    <h2><?php
if ($this->address_type == 'BT') {
    echo 
JText::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL');
} else {
    echo 
JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL');
}
?>

    </h2>


Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: SupremeComputing on April 18, 2012, 23:58:48 PM
Terp, Thank you very much that has worked for me!!
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: biowan on May 16, 2012, 14:40:07 PM
Does someone know if we can disable this feature by click in administration interface with 2.0.6 ?

Thanks.
Title: Re: Remove the 'Already Registered' Login During Checkout
Post by: biowan on May 23, 2012, 15:48:47 PM
I've hidden it in template CSS.
$template_path/css/general.css


form[name="com-login"]
{
  display: none ;
}


I find it is simple to update in new version of the component.