News:

Support the VirtueMart project and become a member

Main Menu

VM 3.0.16 Users cannot register

Started by AdrianB86, May 11, 2016, 12:35:42 PM

Previous topic - Next topic

AdrianB86

Hi,

Ever since i updated my joomla version to 3.5.1 new users cannot register, they would be redirected to the home page.

I disabled the VM user registration and just using no user registration for checkout.

How can i fix this?

www.shoedivas.co.za

Thanks in Advance!

Jörgen

You don´t say what VM version You have.

With Joomla 3.5.1 VM3 has to have shopfunctions.php modified or use VM 3.0.16

Regards

Jörgen @ Kreativ Fotografi.se
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AdrianB86

Hi Jorgen,

I did. 3.0.16. In the subject line.

How must i modify shopfunctions.php?

Thanks

Jörgen

It is done in the VM 3.0.16

You did not say from what version You upgraded, could be a template issue.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AdrianB86

How can i see what version i came from? Whatever the previous one was.

I have spoken to the template developers and they say the issue is not on their end. I just cant wait any longer for them to to help me.

Thanks

Studio 42

The problem is that Joomla 2.5.1 do not tolerate SEF link for return URL.
You have to change manually the return URL.
I added to fix it in MYSITE/templates/MYTEMPLATE/html/com_virtuemart/user/login.php
if($this->from_cart) $url = 'index.php?option=com_virtuemart&view=cart';


GJC Web Design

just tried your cart.. u don't have registration enabled

so tried as i assume guest and on confirm it just returns to the cart

too many unknowns.. start by double checking your config and trying with the std Protostar template

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AdrianB86

#7
Quote from: Studio 42 on May 11, 2016, 13:12:16 PM
The problem is that Joomla 2.5.1 do not tolerate SEF link for return URL.
You have to change manually the return URL.
I added to fix it in MYSITE/templates/MYTEMPLATE/html/com_virtuemart/user/login.php
if($this->from_cart) $url = 'index.php?option=com_virtuemart&view=cart';

Can i just add this in anywhere in the php file or between anything specific?

Im using Joomla 3.5.1


Quote from: GJC Web Design on May 11, 2016, 13:41:22 PM
just tried your cart.. u don't have registration enabled

so tried as i assume guest and on confirm it just returns to the cart

too many unknowns.. start by double checking your config and trying with the std Protostar template

So i turned off user registration with VM, so i enabled the option that "users can checkout without registration".

Changing templates... wont that break anything i have currently if i switch back to it?


Studio 42

Sorry 2.5.1 > 3.5.1.
Last Joomla has a security nulnerability fix, so now only internal URL (not SEF) can be used, but Virtuemart use SEF return URLS.
So now you need to provide to joomla registration return url the not sef link without site name(see my code before).
This perhaps break other Vm links, but i only had this problem on VM user login form for now.

AdrianB86

Quote from: Studio 42 on May 11, 2016, 14:30:24 PM
Sorry 2.5.1 > 3.5.1.
Last Joomla has a security nulnerability fix, so now only internal URL (not SEF) can be used, but Virtuemart use SEF return URLS.
So now you need to provide to joomla registration return url the not sef link without site name(see my code before).
This perhaps break other Vm links, but i only had this problem on VM user login form for now.

So if i use the code you gave me i can put it in the php and see?

I just dont understand how im the only one getting this issue...

Studio 42

I think no one checked this and many shop loose customers and simply don't know.
I stop to report bugs, because this get ignored last months, so i only give directly a solution to help Virtuemart user.
But i think this is same for all shops running Joomla 3.5.1.
For the code you have to add this after $url is set so not at top of file, but some lines later(this depend template overide and vm release)

AdrianB86

So after a lot of fiddling and searching i used the code from "Studio42

if($this->from_cart) $url = 'index.php?option=com_virtuemart&view=cart';

And found this fix from Rupostel.com

www.rupostel.com/svn3/shopfunctionsf_joomla_installer.zip

And all of a sudden, it is miraculously working!

Hooray!!