News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove login and register from "list orders" page

Started by gringo211985, December 17, 2012, 17:49:20 PM

Previous topic - Next topic

gringo211985

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]

bytelord

#1
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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

tikhonov

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

tikhonov


lanthan

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;
}