VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: cuxi on October 17, 2008, 17:03:14 pm

Title: Menu link to form login for virtueMart
Post by: cuxi on October 17, 2008, 17:03:14 pm
I create item menu( with name is login) in menu top. I want item menu( login) link to form login for VirtueMart. When i click menu login then display form login.
How make it?
Title: Re: Menu link to form login for virtueMart
Post by: jvillegas on December 05, 2008, 02:16:48 am
I also want to know.... anyone? i have a problem with this also.. i've created an image and put login text there and put it in a module position but i don't know what URL am I going to put there.
Title: Re: Menu link to form login for virtueMart
Post by: SFG on December 09, 2008, 09:56:44 am
I've been searching the forums for hours now but i couldn't find any useful information to this subject.
I as well wish to put a simple link on my main menu to a login form, so far no luck. Best option could be to create the menu as virtuemart component and set the page to account.index but it shows an ugly error message on top of the page (you must be registered to access this module)... at least it shows the login form though.
Other alternatives i found are:
1 = set the menu item to the joomla login page, but if the user is not registered and/or tries to register then the user is not registered to VM so he will get to register again when placing an order.
2 = set the menu item to a virtuemart component and use shop.registration as default page, this should be THE option but in this case it shows the login form AND the registration fields for new users - and i don't want that.
Besides, i am having an issue here: while i see on other sites that  the page shows login AND registration form on my shop it shows only the registration form.. which is useless to my intended use :)

What we are all looking for is a login form, exactly like the joomla login form, that only shows the username, password fields and links to registration/username and password recovery. (and probably the ability to customize this login page appearance with an image of choice and/or text)

Thanks anyone for any answer I (we) might get.
In the meanwhile i'll keep searching the forum to see if the question has been answered already (but so far i've had no luck searching)

PS: i've read the manual but sadly there's nothing about frontpage login configuration settings so please don't tell me RTFM :)
Title: Re: Menu link to form login for virtueMart
Post by: SFG on December 09, 2008, 09:57:50 am
Erhm, i didn't notice that the original post wasn't in the VM 1.1 section..
I'll post there
Title: Re: Menu link to form login for virtueMart
Post by: jschafer52 on April 08, 2009, 21:58:22 pm
I ideas or fixes for this login yet?  I have been looking all over for a login/ registration page that i can link to from a menu.
Title: Re: Menu link to form login for virtueMart
Post by: jenkinhill on April 10, 2009, 11:42:48 am
Does not need a fix, as it can already be done in Joomla!

If you publish the VirtueMart login module, mod_virtuemart_login which is part of the complete package then that can appear wherever you want to place it on a Joomla page as long as there is a suitable user position. So you could place it in position above maincontent if your J! template allows it. Maybe just have an image or some advertising in the main content position? This module already has a link to the registration page if someone does not already have an account.

If you just want to create a menu link to the registration page then make a Joomla! menu url link to the reg page - something like index.php?option=com_virtuemart&page=shop.registration&Itemid=41

Alternatively
Title: Re: Menu link to form login for virtueMart
Post by: cmstech.dk on August 28, 2009, 22:01:27 pm
There is a very easy way to do this.

1. Create an article and call it login.
2. In you article conten write {loadposition vmlogin}
3. Save your article
4. go to module managment and ad new module "Virtuemart Login"
5. In module position write vmlogin.
6. publish and save your module
7. Go to menu managment and create a new menu link, choose article layout.
8. choose the article you named login and save.

There you have it... A login page, directly from your main menu.


Cheers...

Title: Re: Menu link to form login for virtueMart
Post by: dj_hardbeat on September 08, 2009, 07:47:35 am
Excellent! Thank you..... Did not know this up to now  ;D
Title: Re: Menu link to form login for virtueMart
Post by: alainmarsol on September 08, 2009, 20:20:15 pm
Really appreciable.
I didn't knew about this.
Thanks.
------------------------------
piscine en bois (http://www.tech-loisir.com/piscine-bois-g.asp)
Title: Re: Menu link to form login for virtueMart
Post by: baggiesmad on September 10, 2009, 11:12:38 am
excellent, thanks!
Title: Re: Menu link to form login for virtueMart
Post by: vienna_os on September 13, 2009, 07:16:50 am
HI cmstech.dk

I tried your solution but instead of giving the new module the position vmlogin, I gave him another position "showcase" because the vmlogin position is not supported by the used template.
I have configured the new created module to be shown only if someone click the menu link. Now if I click on the menu link the login modul is displayed two times, one time in the content and one time in the modul position.
Any idea how I can solve this problem ?

I use the myxx template.

thanks in advance
Title: Re: Menu link to form login for virtueMart
Post by: nhradeuce on September 24, 2009, 19:42:47 pm
I tried your solution but instead of giving the new module the position vmlogin, I gave him another position "showcase" because the vmlogin position is not supported by the used template.
Go back and do it exactly as described by cmstech.dk. Even though your template does not have the vmlogin position available, you can type that name in to the drop down selector. By typing in the name of a module position that does not exist in the template you avoid having to mess around with where it displays or doesn't display. Try it, it works.
Title: Re: Menu link to form login for virtueMart
Post by: EsSa55 on December 02, 2009, 14:55:30 pm
Thanks, cmstech.dk
Title: Re: Menu link to form login for virtueMart
Post by: rohdimp24 on December 22, 2009, 04:34:42 am
Thanks, cmstech.dk
That solution helped me.
In addition to the login links, I want an account maintainence link. Can you help me on that ?
Title: Re: Menu link to form login for virtueMart
Post by: luwe on January 11, 2010, 17:50:30 pm
This help u in advance http://www.packtpub.com/article/customer-management-in-joomla-virtuemart
Title: Re: Menu link to form login for virtueMart
Post by: mike_9000 on February 11, 2010, 17:54:18 pm
cmstech, that is a brilliant solution & enables me to set things up exactly the way I wanted.

Please,can you do tell me if the same approach will work for 'View Cart' & 'Account Maintenance' (& if so, how).

Thanks again!
Title: Re: Menu link to form login for virtueMart
Post by: mike_9000 on February 12, 2010, 23:41:29 pm
I've fixed 'View Cart' (it's exactly the same procedure but with different titles & a different module - should have realised that!)

However, I cant find a module for 'Account Maintenance'. Is there any way to create a link to this, too, please?.
Title: Re: Menu link to form login for virtueMart
Post by: mike_9000 on February 13, 2010, 00:54:40 am
Should have realised...

To create a link to the 'Account Maintenance' page
Title: Re: Menu link to form login for virtueMart
Post by: Forrest on February 13, 2010, 03:33:34 am
Really there is a far simpler solution than what has been offered here altogether.

For basic login form page:
1. Access menu to put link in via admin menu manager.
2. Add a new User menu item -> Default Login Layout
3. Adjust your params if necessary!


For other VM pages:
1. Access menu to put link in via admin menu manager.
2. Add a new Virtuemart menu item.
3. Under Parameters Component of menu item, add the page name

Several page name options are:

account.index (set to registered access only!)
account.shipping (set to registered access only!)
account.billing (set to registered access only!)
account.orders (set to registered access only!)

shop.cart
shop.index
shop.registration
shop.search
shop.tos

etc.

Handling it this way keeps the links looking internal to Joomla (epically for sitemaps like xmap), allows you to apply a menu alias, and doesn't convolute item_ids. No articles, no external links! Simple :)
Title: Re: Menu link to form login for virtueMart
Post by: mbit on March 23, 2010, 11:07:31 am
Any idea whats the link for the ajax login/register form which appear at check out but using it to log in or to register and not to ckeck out ?

at localhost the link looks like :
index.php?page=checkout.index&option=com_virtuemart&Itemid=53&redirected=1&Itemid=53
Title: Re: Menu link to form login for virtueMart
Post by: jenkinhill on March 23, 2010, 12:31:22 pm
Link to the registration form would be domain.com/index.php?option=com_virtuemart&page=shop.registration
but you cannot login that way. Use the login from a VM module, either mod_virtuemart or mod_virtuemart_login which also have the link to the registration form.
Title: Re: Menu link to form login for virtueMart
Post by: mbit on March 23, 2010, 19:34:57 pm
there is no way to use the ajax form ? ( look at the check out withount being logged)



edit: another question just came me up, is the ?option=com_user&view=login (mod_login   ) the same with mod_virtuemart_login  or there is nothing to do with the module?

thanks in advance

[attachment cleanup by admin]
Title: Re: Menu link to form login for virtueMart
Post by: Forrest on March 23, 2010, 19:51:36 pm
Login mods are two different modules.

I don't really understand your other question.
Title: Re: Menu link to form login for virtueMart
Post by: mbit on March 23, 2010, 20:05:37 pm
Should have realised...

To create a link to the 'Account Maintenance' page
  • Open the shop, go to the Account Maintenance page
    • Copy the URL
    • Go to admin --> main menu
    • Add a new menu item "Account"
    • Select 'External Link' instead of 'Article'
    • Paste copied URL into link text box
    • Save

    If you click on this new link when you are not logged in, it shows an error message,  tells you "you must be logged in", & includes log in boxes so you can.


i did this but dont have the option to log off neither to register if its a new  user.

Login mods are two different modules.

I don't really understand your other question.


I want to make a link where the user has the ability to register or to log in/off .
link to mod_virtuemart_login and if logged in to  Acc Maintenance , is this possible?
Title: Re: Menu link to form login for virtueMart
Post by: Forrest on March 23, 2010, 22:28:38 pm
mod_virtuemart is a MODULE. You can't link to it... you add modules to menu items/links.

Account maintenance link is possible. Refer to this post in this tread:
http://forum.virtuemart.net/index.php?topic=47003.msg221646#msg221646