Is that how it is supposed to be working? I'd prefer for the submit button to act as the Add to Cart button and take people to the cart page where they can choose to continue shopping or proceed to checkout.

Comments

esbon’s picture

I have the same need. I even put the Redirection location in webform to the cart page, but it still goes to the checkout page on form submit
Thanks for helping

esbon’s picture

I ended up changing the redirect right on the uc_event_registration.module file to: $form_state['redirect'] = 'cart'; on line 254
Hopefully there will be a way to do thing via the drupal interface.

Thanks for the module, just what we needed.

Rob_Feature’s picture

Assigned: Unassigned » AndyF

If you're seeing checkout as the redirect hardcoded into the module, then it's probably it's intended behavior (I didn't personally create this latest version...maybe AndyF did?

I thought the module used to redirect to the cart, AndyF did you intentionally redirect it directly to checkout? Please address this issue when you can (assigning to you). Thanks!

AndyF’s picture

Category: bug » feature
Status: Active » Fixed

Sorry for the delay! The checkout redirect is its original behaviour, but I've just added custom redirect to dev. You can now use the webform config page to set the redirect, and there are two new options: cart and checkout. Make sure to run update.php first as otherwise it will clobber any custom redirects when you next do an update.

Status: Fixed » Closed (fixed)

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

rebecca.ellis’s picture

Category: feature » support
Status: Closed (fixed) » Active

I'm opening this back up because I could really use some help:

Where exactly do i go to see the "webform config page" so I can set the redirect as you instruct? I've looked:
> admin/settings/webform - nothing
> node/190/webform/configure - (this is my registration form which is a checkout pane) here I see Redirection Location: with 3 options: confirmation page, custom URL (which is what I have chosen with /cart for the url), and no redirect, just refresh... but this form doesn't even show until they are in checkout....so I know I need to get the redirect BEFORE this page.
> /node/567/webform/configure - (this is a particular class/paid event) Here I DO SEE the option to go to cart or checkout. CART is chosen. yet I still get redirected to the checkout when I click submit on this item. Or i put /cart in the custom URL option. STILL redirected to checkout.

what the heck am i missing?

My problem is that if a user goes to sign up for a class but then leaves the site or hits 'back' and then goes through and does it again or tries to sign up for another class, the previous entry is still in the cart with NO option to remove it. I only want ONE item in the cart at a time. How can I fix this?

Thanks

rebecca.ellis’s picture

Status: Active » Closed (cannot reproduce)

Mysteriously works now. Not sure what did it. Seems I still have to go to EVERY product and fiddle with the options until it clicks.

AndyF’s picture

Status: Closed (cannot reproduce) » Closed (fixed)

Hi rebecca.ellis, it's better to open a new support request rather than reopening this one. Seeing as you closed it again I feel a bit silly opening a new issue so I'll just quickly comment here. If you want to follow up, please do open a new one.

My problem is that if a user goes to sign up for a class but then leaves the site or hits 'back' and then goes through and does it again or tries to sign up for another class, the previous entry is still in the cart with NO option to remove it.

The cart should still work for removing paidevents.

I only want ONE item in the cart at a time. How can I fix this?

The module doesn't protect you against this in any way I'm afraid. If a user adds a paidevent multiple times, then they'll have to update their cart before checkout to remedy the situation. There might already exist a UC module that tries to limit the number of times you can add a particular type of product to your cart, but I'm not aware of one.

rebecca.ellis’s picture

Andy,

Thanks for the response. I just thought since my issue was basically the same if I opened a new one someone would just try to redirect me here.

The cart does work for removing paid event, THATS IF I can manage to get the customer there. I was having a really hard time with them being redirected right to checkout.

Thanks for your help. I will just have to put a note on that page saying to only check out one item (class) at a time.