Hello All,

I'm trying to get the node checkout part of my site to go directly from the button saying "add to Cart" to skip over the cart and go directly to the payment gateway

I'm using
UberCart 1.7
Drupal 5.15
Case Tracker 1.3 beta2

Comments

jbothma’s picture

Any luck with this? I'm doing event registration on a conference reg site. There's no point in viewing the shopping cart, I want them to go from add/registrant-profile to cart/checkout.

I think you can do what you want at admin/store/settings/cart/edit/basic by setting Add to cart redirect: to cart/checkout but this has the side effect that, if they use their back button and click add to cart again, they'd end up with more than one registrations. Since they're skipping the cart they cant remove an incorrect one.

This is with:
Drupal 6
some UberCart that's the Stable release right now

vinny960’s picture

It seems that the only way to fix this is to write some custom code to make the quantity portion editable on the checkout page. Also, something that resets the cart every time something is added (so the user always sees a qty of 1 and then can decide how many he wants). I'll let you know when I have something working in the next couple of days.

vinny960’s picture

Okay, so it seems that one easy way to achieve this is to download ubercart tweaks contributed module.
http://drupal.org/project/uc_atctweaks
That will allow you to add a redirect to each product (or product class) to checkout and reset the cart every time something is added. You can also enable the optional quantity field in ubercart settings to allow adding multiple items to cart (since the cart is resetting).

gfors’s picture

uc_atctweaks works great, but the modules functionality doesn't extend to the node_checkout "add to cart" button.

any thoughts on how to get around this? ive been poking around with settings for hours but have had no luck.

cscott5288’s picture

I know this is old, but for anyone looking for the answer, you can use the cart links api to create a link directly to the checkout page with the item added:
http://www.ubercart.org/node/1427

If you want to make sure multiple items don't get added, I'd suggest removing all cart items on each page load (put this in your theme template):
uc_cart_empty(uc_cart_get_id());

mikebrsv’s picture

The link does not work any longer, ubercart moved to http://ubercart.me

Could you please point to the right direction on the new api reference?

vm’s picture

did you type uc_cart_links into the search field of api.ubercart.me ?