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]
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?
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. :)
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
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_virtuemart2.) In this new folder, create another one called
user2.) 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>
Terp, Thank you very much that has worked for me!!
Does someone know if we can disable this feature by click in administration interface with 2.0.6 ?
Thanks.
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.