VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: quantum-llama on June 24, 2016, 17:30:16 PM

Title: Save button redirects to registration page
Post by: quantum-llama on June 24, 2016, 17:30:16 PM
Hello Everyone!

First things first, I'm not very familiar with Virtuemart, but I've dealt with BigCommerce and Prestashop before.

So, I downloaded the full installer with Joomla 2.5 and Virtuemart 3 and installed a postcode lookup from craftyclicks from here (https://craftyclicks.co.uk/plugins/download-info/virtuemart/).

Here comes the fun part:

When I'm adding my address without the lookup, the Save button it returns safely to the Cart, but when I'm adding my address with the help of the lookup, then for some reason it redirects me to the registration page.

Can you explain me why can it happen? I found the related code for the save button:
<button name="save" class="<?php echo $buttonclass ?>" title="<?php echo vmText::('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>" type="submit"
onclick="javascript:return myValidator(userForm, false);"><?php echo vmText::('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></button>


Can the myValidator cause the problem, because I'm interacted with the form elements in a different way? I really could use a few guidelines.

Have you ever encountered such behaviour before?


Thanks in advance,
Greg
Title: Re: Save button redirects to registration page
Post by: GJC Web Design on June 25, 2016, 01:50:54 AM
Quoteredirects me to the registration page

with an error?

try with protostar template to make sure errors are being displayed
Title: Re: Save button redirects to registration page
Post by: quantum-llama on June 28, 2016, 11:16:11 AM
I'm using the protostar template, and errors are not being displayed.
It simply just redirects me to the registration page, even if I switch off user registration.
Title: Re: Save button redirects to registration page
Post by: quantum-llama on June 28, 2016, 12:10:47 PM
A few more information: [One can't have enough information, information is like beer]

http://llama.lan/VM/index.php/cart is the url of the cart, where I click to the "Add/Edit shipment address"

http://llama.lan/VM/index.php/user/editaddresscartST?virtuemart_user_id[0]=0 is the url after I clicked the button

IF I use the postcode lookup the url turns into this: http://llama.lan/VM/index.php/user/edit_address and the register form appears.

IF I'm not using it, it just returns to the http://llama.lan/VM/index.php/cart
Title: Re: Save button redirects to registration page
Post by: GJC Web Design on June 28, 2016, 21:49:20 PM
1st test with sef off so u can actually see whats going on..
but also as it appears to be the 3rd party plugin that is causing it .. it will need debugging...
We can't give advice on something we have never seen...