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

Custom logout redirect

Started by sander_v_bergen, May 29, 2012, 15:02:41 PM

Previous topic - Next topic

sander_v_bergen

Hi,

If users are not logged in to my Virtuemart site they can only see products and discription (no prices). Viewing the shopping cart isn't possible either.

If someone logs out using the 'log out' button in the shopping cart, he/she remains on the shopping cart page. Since non loggin in users can't buy/use shopping cart I'd like to redirect them after logging out.
Where can I change the logout link? Is it somewhere in the com_virtuemart/views/user/tmpl/login.php file?

Thanks!

-Sander

EDIT: Virtuemart version 2.0.6

lipes

Login / logout options > Login Form it's a Joomla module ( index.php?option=com_modules ) ...
search there

humm.. "discription (no prices)" ... Are you working with VM in Catalogue mode?
In your configuration area ( index.php?option=com_virtuemart&view=config )
uncheck the "Use only as catalogue"
1) See if you got prices active in the same "Configuration" area but in "Price" Tab
2) See if Shopper groups get price displayed too
3) See if you remove the price in your template... or test it working with the Default Joomla Template + VM template (no override)
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

sander_v_bergen

Hi,

Thanks for your reply.

I think my post wasn't completely clear.. The info about the prices being nog visible for unregistered users was just to explain the current situation (how I set it up). So no problems with that matter :).

Regarding the logout button:
I know that it's a module, but I've set the redirecting to a specific page already. If I logout using the joomla module everything works fine. But the logout button in the cart doesn't redirect to this page.
I think it's in the virtuemart login.php somewhere but I don't know where exactely.

-Sander

lipes

humm.. VM2 doesnt have login module.... like tou could see in the Modules folder.
Maybe you're using a 3rd party module extension.. and had a old link and not work so well with VM2 and joomla....

here in my website you could see the default joomla login module... it's working fine  :)
http://outros.net23.net/
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

sander_v_bergen

Hi,

The login is working, but since unregisterd users can't buy they shouldn't be able to visit the cart. Because the cart module is only visible to registerd users this usually isn't possible.
BUT if registerd users are already on the cart page, and they log out, they stay on the cart page. So they are now 'unregistered' users who can visit the cart.

I know that this is only possible if you have an account, since you first have to be logged in to view the cart page, but it just looks kind of strange to me.

Hope it's clear to you ;). I will create a test account on your website so I can check out your logout redirection (name 'sander').


lipes

humm... In my config i've got "unregisterd users can't buy" too...
but they could add products to the cart ... and also see the checkout page... but they can finalize that last steps in checkout.
So they must register to do that...
in my config if i am registered.. and i've added a product to the cart, but not finalize the checkout and leave/exit the account i go to index.php file ...
i dont know if i am answer your questions.. (i am not native english) so i can not understand your questions clearly.

you could allways wait for a here member answer.. they know a lot of VM stuff and much more than me...
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

sander_v_bergen

Well, I'll just go and play around a bit more with it.
Maybe some one knows the answer :).

Anyway, thanks for helping!

lipes

VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

sanket1992

i can't logout from vituemart