News:

Support the VirtueMart project and become a member

Main Menu

checkout select payment method loop [solved]

Started by nickm321, January 16, 2014, 17:19:17 PM

Previous topic - Next topic

nickm321

Hi. My cart keeps looping on checkout. I click the Checkout button, it goes to the Select payment method screen, where Paypal, the only option, is already selected. I click Save, and it goes back to the cart screen.

http://scubascenetaunton.com/shop/cart

Joomla 2.5.15
Virtuemart 2.0.26d
Standard Paypal payment method.

alatak

HEllo
There was some changes in the cart layout. PLease look here
http://forum.virtuemart.net/index.php?topic=120943.0
You can also turn off the OPC in the Vm config, and it will work.

flynny

Thanks you.
I had the same issue. Turned the One Page Checkout option off as Alatak suggested and it works fine.

kmeyer

Using Joomla 3.3.6, VM 3.02, site is test.kurtmeyer.com
I'm encountering the same loop, turning OPC off makes no difference. Thanks for any suggestions.

Milbo

Please be aware that the thread is a year old, which vm and joomla version you are using?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kmeyer

I can open a new thread if you prefer. Here are my details:

I am using Joomla 3.3.6, VM 3.0.2, site is test.kurtmeyer.com. You can use the Products/Ornaments And Magnets/Friendship Stars menu to add an item, and you can use the test account "buyer", pwd="buyer" when trying the checkout.


Milbo

Is not a problem to reuse it, but yes important to know your used version.

"Notice

Please accept the Terms of Service at the bottom of this page to proceed"

your layout override is broken, just remove it and use the original one.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kmeyer

Milbo, thanks for your response.  I don't believe I have any layout overrides in place. To make sure, I renamed my language override files and I switched my template to a fresh copy of Purity III. I had modified one vm file (plugins\search\virtuemart\virtuemart.php) per another thread to correct a problem with search. To make sure I hadn't changed any other files, I have renamed com_virtuemart and com_virtuemart_allinone and then copied those folders from a fresh install. The problem persists, and I don't know where to look to find what is causing this. You can see the re-created site with the re-set template, no language overrides, and fresh virtuemart paths at test2.kurtmeyer.com.

By the way, I don't think the problem is coming from Purity III, I tried a quick test with a fresh install including Purity III and a single product, and did not see the loop. Extensions I am using are Akeeba and JCE, I've run some directory comparisons between my site and a fresh install to make sure I'm not overlooking something.  Am I missing something obvious?

By the way, I had upgraded VM from 2.9.9d (or maybe e) to 3.0.2, in case that might be an issue.

I will PM you the credentials in case you can take the time to look at the backend. Thank you for your time and help!

Milbo

Sorry got neither ticket, nor pm. I just noticed last test, that clicking the tos does not automatically set it to confirmed. you have at the top the message taht you should click the tos.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kmeyer

After many experiments, testing, re-configuration, bashing of head against wall, etc., I found the problem, which I think is bizarre.

When I copied my API Signature credentials from PayPal's sandbox account screen (paypal.com/developer>Dashboard>Accounts, expand the sandbox merchant account, click Profile, select API Credentials tab on the Account Details pop-up) it was adding a couple of spaces at the end of the string, which I was then pasting into the VM PayPal Configuration screen. You can't tell because the entry is masked in the VM form. I only noticed the extra spaces because I tried setting up the PayPal configuration a second time, and on a whim tried pasting the API credentials into Notepad. I played around with that PayPal screen, and the spaces are only added if you select the Signature by dragging from the END of the string, not if you drag from the START of the string. Weird! I was using Firefox 35.0.1 to access that screen, perhaps other browsers would not have added the spaces.

When I stripped out the excess spaces, everything instantly worked. This makes me very happy, but I wish there had been a clearer indication SOMEWHERE that there was a problem with the API credentials. So many hours wasted on this problem!

GJC Web Design

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

alatak

Hello
Thank you for reporting this problem.
I have added the trim function everywhere one can do a copy/paste.
Quotebut I wish there had been a clearer indication SOMEWHERE that there was a problem with the API credentials.
It is impossible to check that the credentials are wrong in VM.
QuoteYou can't tell because the entry is masked in the VM form.
This is a security issue: fields that should not be shared are of type "password". A lot of users do a screenshot of their configuration and then send it to the payment support.
you have developer tools, that can display the content of that field, but yes, it is true, it will be still difficult to find out that there is a space at the end.

kmeyer

"It is impossible to check that the credentials are wrong in VM."

Hi alatak, perhaps instead of checking the credentials, it's worth looking at the flow--instead of simply coming back to the cart after a timeout from the payment system, with the TOS blanked back out and the message "Please accept TOS..." the flow should come back to the cart with the TOS preserved and the message "Timeout..." or some such. Not asking for this change, just suggesting it as something to think about.

Thanks for taking action to trim copy/paste locations!