VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Andrew on October 10, 2018, 02:53:33 AM

Title: After registering, says registration complete but doesn't carry on to cart
Post by: Andrew on October 10, 2018, 02:53:33 AM
Hi There. I have a site at https://livebrew.co.nz/index.php Joomla 3.8.13 and virtuemart 3.4.2 Using protostar template
When I add to cart and go to checkout, then register, I expect the page to carry on back to the cart after registration to complete the order but it just says 'Registration Complete'
Any ideas what I am doing wrong? Sorry, can't find anything in search.
Thanks
Andrew
Title: Re: After registering, says registration complete but doesn't carry on to cart
Post by: hellorain on October 10, 2018, 07:30:49 AM
Hello,

Need to set registration redirect in joomla that it will redirect to checkout page after registration.

Best Regards,
hellorain.

Title: Re: After registering, says registration complete but doesn't carry on to cart
Post by: Andrew on October 10, 2018, 08:28:14 AM
Thanks for your reply. Where do I set that? Can't find anywhere except in the standard joomla login module and that doesn't work.
Andrew
Title: Re: After registering, says registration complete but doesn't carry on to cart
Post by: Andrew on October 11, 2018, 00:18:31 AM
I've worked out that it works if I turn off Search Engine Friendly URLs. But since its best with that on I'd like to keep it. Any ideas what's going on?
Thanks
Andrew
Title: Re: After registering, says registration complete but doesn't carry on to cart
Post by: GJC Web Design on October 11, 2018, 11:47:40 AM
Stumped on this one

the site above is very clean and standard . no over rides,  Siteground hosted, forced https and no www , correct menus set for VM home, cart and account

std url :   https://livebrew.co.nz/store/my-account/editaddresscartBT

With SEF off the registration of a new user from the cart redirects to the cart when successful

with SEF on it stays on the VM reg page

the var $cart->_fromCart in the cntrl. saveUser() is empty and this is why it stays on the page

In the session  \"_fromCart\":true,

complete std code

   function saveUser(){
      $cart = VirtueMartCart::getCart();

vmdebug('saveUser _fromCart',(int)$cart->_fromCart,(int)$msg);

true,true with no SEF,    false,true with SEF

in the edit template $this->cart->_fromCart  is true so cancel buttons etc go back to cart etc

temp fix in user ctrl

$cart->_fromCart = true;