Hello

On order review page i.e. on cart/checkout/review page when I click "Back" button it redirects me to the cart/checkout button but Billing information is cleared out.
But the help at this page suggest that "'If you need to change any information use your back button".
And also when anything wrong entered at cart/checkout page then also it gets cleared....
Can anybody help me on this ?

Comments

longwave’s picture

Status: Active » Closed (duplicate)

See #1104116: At checkout review, "back" button loses order data if cart/checkout paths are aliased and please contribute there with more information such as a link to your site if possible.

ericbroder’s picture

I had the same problem, and it was not caused by alias issues, but instead by the variable $_SERVER['SERVER_NAME']. On one environment, $_SERVER['SERVER_NAME'] was set to the hosting company's generic server name, and not the actual domain name that our users were accessing in their browser. And on another environment, there was simply a spelling error in $_SERVER['SERVER_NAME']. In both cases the referer check was returning FALSE because of this mismatch:

function uc_referer_check($urls) {
  global $base_path;

  $http_referer = uc_referer_uri();

  // Always return true if we have no referer; covers the case of page refreshes
  // and switching from HTTP to HTTPS. This bypasses the two-time check below...
  // is it safe?
  if (empty($http_referer)) {
    return TRUE;
  }

  // Check the user didn't shamelessly two-time us with another site.
  $referer = parse_url($http_referer);
  if ($referer['host'] != $_SERVER['SERVER_NAME']) {
    return FALSE;
  }

...
ericbroder’s picture

Looks like my ubercart back button problem is actually a duplicate of yet another issue: #1288114-4: uc_referer_check(), referrer checking code doesn't work on Apache with UseCanonicalName on, ubercart back button loses data.