VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gringo211985 on December 17, 2012, 17:49:20 PM

Title: Remove login and register from "list orders" page
Post by: gringo211985 on December 17, 2012, 17:49:20 PM
Hi there,

As the title says I would like to remove the login and/or register options from the list orders page. I have added an image to help and outlined in red the part I want to remove.


[attachment cleanup by admin]
Title: Re: Remove login and register from "list orders" page
Post by: bytelord on December 17, 2012, 18:41:45 PM
Hello,

Just create a template override for the file components\com_virtuemart\views\orders\tmpl\list.php

- To create a template override for order list view copy the file  joomla_root_folder/components/com_virtuemart/views/orders/tmpl/list.php
Just copy that file under joomla_root_folder/templates/your_joomla_template/html/com_virtuemart/orders/list.php
If the folders are not exist please create them ... if you already use template overrides edit the overridden file.

Now, edit the new file and comment out the line 28

//echo shopFunctionsF::getLoginForm(false,true);

So, the login form will be shown.

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Template Overrides:
Creating Template overrides: https://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system


Please next time remember to post on the right section, this is not a bug  :o

Regards
Title: Re: Remove login and register from "list orders" page
Post by: tikhonov on December 30, 2012, 00:32:38 AM
Hi!

I tried that override gently provided by the Bytelord, but that disappears both login and order search fields. It seems that both are the output of the shopFunctionsF::getLoginForm(false,true); function.

Any suggestions?

Thanks,
Nikos

Joomla! 2.5.8
VM 2.0.14
Title: Re: Remove login and register from "list orders" page
Post by: bytelord on January 06, 2013, 17:44:52 PM
Hello,

Sorry for taking log time to respond. Yes you have right, never test it but as you said it hides the search field also.
You could edit the core file for that under components\com_virtuemart\helpers\shopfunctionsf.php around line 31 and make your changes or better you could change the login view template and make your changes.

VM2 uses joomla login component.

Regards
Title: Re: Remove login and register from "list orders" page
Post by: tikhonov on January 10, 2013, 22:47:28 PM
Thank you so much for your response.

Best,
Nikos
Title: Re: Remove login and register from "list orders" page
Post by: lanthan on April 08, 2014, 12:46:40 PM
The easiest way is to add this to your css override. Then you don“t have to change the core.

form#com-form-login fieldset.userdata, form#com-form-login div.width30 {
   display:none;
}