Author Topic: Menu link to form login for virtueMart  (Read 32503 times)

mike_9000

  • Beginner
  • *
  • Posts: 39
    • PV Mounting Direct
Re: Menu link to form login for virtueMart
« Reply #15 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!
You're only young once - but you can be immature for ever...

mike_9000

  • Beginner
  • *
  • Posts: 39
    • PV Mounting Direct
Re: Menu link to form login for virtueMart
« Reply #16 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?.
You're only young once - but you can be immature for ever...

mike_9000

  • Beginner
  • *
  • Posts: 39
    • PV Mounting Direct
Re: Menu link to form login for virtueMart
« Reply #17 on: February 13, 2010, 00:54:40 am »
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.
You're only young once - but you can be immature for ever...

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Menu link to form login for virtueMart
« Reply #18 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 :)

mbit

  • Jr. Member
  • **
  • Posts: 323
Re: Menu link to form login for virtueMart
« Reply #19 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27480
  • Always on vacation
    • Jenkin Hill Internet
Re: Menu link to form login for virtueMart
« Reply #20 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

mbit

  • Jr. Member
  • **
  • Posts: 323
Re: Menu link to form login for virtueMart
« Reply #21 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]

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Menu link to form login for virtueMart
« Reply #22 on: March 23, 2010, 19:51:36 pm »
Login mods are two different modules.

I don't really understand your other question.

mbit

  • Jr. Member
  • **
  • Posts: 323
Re: Menu link to form login for virtueMart
« Reply #23 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?

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Menu link to form login for virtueMart
« Reply #24 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