Add destination to URL from Checkout page

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

alpha 7e.
In the Checkout page, change the link that's in:
"Order information will be sent to your account email listed below.
You can edit your account information here."

from
http://localhost/drupal/user/3/edit

to
http://localhost/drupal/user/3/edit?destination=/cart/checkout (or whatever checkout page is defined)

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Good call. Done.

Good call. Done.

Changed line 55 in uc_cart_checkout_pane.inc to the following:

<?php
 
. t('You can edit your account information <a href="!url">here</a>.', array('!url' => url('user/'. $user->uid .'/edit', 'destination=cart/checkout')));
?>
amitaibu@drupal.org's picture
Offline
Bug Finder
Joined: 09/08/2007
Juice: 239
Thanks. I think I saw a
Assigned to:Ryan» amitaibu@drupal.org

Thanks.
I think I saw a possibility to change the default cart checkout - in that case this URL should not be hardcoded.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Thanks. I think I saw a
Assigned to:amitaibu@drupal.org» Ryan

You can only change the checkout completion page, not the actual checkout form page. It's a safe fix and works great. Smiling