News:

Support the VirtueMart project and become a member

Main Menu

Save button redirects to registration page

Started by quantum-llama, June 24, 2016, 17:30:16 PM

Previous topic - Next topic

quantum-llama

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

GJC Web Design

Quoteredirects me to the registration page

with an error?

try with protostar template to make sure errors are being displayed
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

quantum-llama

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.

quantum-llama

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

GJC Web Design

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...
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