Hi,

as described above: when a customer reaches the order review and clicks "back" to make a change - for example on the address - he will come to the checkout but all his input is lost. All fields are empty. Did I do something wrong in the settings or did someone else had the same issue?

Best,
Tobias

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tobiberlin’s picture

nobody else found this issue?

longwave’s picture

This works as expected for me; I click Back from order review and the details are left intact. Do you have missing images, or mixed HTTP/HTTPS content on your order review or checkout pages? This could perhaps cause the problem you describe, due to identity theft prevention code in Ubercart that may be mistakenly triggered on those pages.

tobiberlin’s picture

No, there is no SSL on this project yet. Any other ideas what could cause this issue?

longwave’s picture

Broken links (missing images, or similar) on your checkout or review pages? Check your web server logs carefully, or use Firebug's Net tab, to find page requests that are made on the checkout and review pages and see if there is anything unexpected.

longwave’s picture

A link to your site would also help if possible, so others can try to reproduce or diagnose the issue.

longwave’s picture

tobiberlin’s picture

I checked all logs and found no messages there.

You can have a look at the project at http://www.beocos.de/ - user: beocos, password: seeliger

I would really appreciate if someone could help me with this.

Best,
Tobias

longwave’s picture

I see it happening there, but cannot spot the cause from here. Also noted when testing your site is that if you refresh on the "review order" page, you are taken back to a blank checkout page, with no explanation message.

Perhaps a contributed module is causing this, or it may be related to the path aliases for /cart/checkout and /cart/checkout/review - try removing those temporarily and see if that helps? Otherwise I'm out of ideas, I'm afraid.

tobiberlin’s picture

your are right... it was related to the aliase. I removed them and all customer input remains in checkout when going back from review or when refreshing the checkout. do you have any idea how I could change the URL without this effect?

longwave’s picture

Title: When user reaches cart/checkout/review and clicks "back" the customers input gets lost » At checkout review, "back" button loses order data if cart/checkout paths are aliased

Not sure at the moment, will look into it more when I have time, but changing the title for future reference.

malcomio’s picture

yes - i get this problem too, and removing aliases fixes it

yonailo’s picture

+1, yes I get this problem too, and removing aliases makes it work.

longwave’s picture

Version: 6.x-2.4 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
865 bytes

Please test the attached patch.

longwave’s picture

Wait, that one didn't work. Try this one :)

yonailo’s picture

Version: 6.x-2.x-dev » 6.x-2.4
Status: Needs review » Active

I have fixed this problem using the function drupal_get_path_alias at the following line in uc_cart.pages.inc:uc_cart_checkout_form():

  if (uc_referer_check(array(drupal_get_path_alias('cart/checkout'), drupal_get_path_alias('cart/checkout/review')))) {

Bye bye.

longwave’s picture

Status: Active » Needs review

#14 is a similar approach but should also work if unaliased paths are mixed with aliased paths (#15 only checks aliased paths, so if any unaliased paths are still used somehow, they will fail).

longwave’s picture

Status: Needs review » Fixed

Tested and committed #14 on both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.