I'm working on a site where a user can potentially have multiple shopping carts at any given instance (same basic concept as how etsy does it). I have everything working in a way described in #1350342: Multiple cart instances. The one problem is that the Checkout button for each cart only returns the most recent cart, not the cart for the cart form it's attached to. There's a redirect in the submit handler that looks as follows:

    $form_state['redirect'] = 'checkout';

So this will also take you to the checkout page without specifying the cart. The attached patch simply adds the order_id to the redirect.

CommentFileSizeAuthor
#1 commerce_checkout_1543844.patch587 byteshadsie

Comments

hadsie’s picture

StatusFileSize
new587 bytes
rszrama’s picture

Status: Needs review » Fixed

Ahh, yep. This wasn't strictly necessary when first implemented (since the Cart module whose form we're altering supplies the redirect to the proper URL with the Order ID in it), but it's a fine improvement that will prevent the unnecessary intermediate redirect. Committed. Thanks for pitching in. : )

Status: Fixed » Closed (fixed)

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