4 replies [Last post]
peach's picture
Offline
Joined: 01/30/2009
Juice: 67
Was this information Helpful?

Hi,

I was wondering if the Ubercart API can be used to generate a checkout programmatically.

What I have now is a complex form with webform module. The form takes a bunch of data, webform stores it, and a custom module posts data to a project management system.

I want to expand this form by programmatically creating an order upon submitting the webform and referring the user to a checkout page upon submitting the form. Is this possible with UC API, and what functions would I need?

thx
JR

EclipseGc's picture
Offline
Joined: 06/11/2008
Juice: 4
Peach

Checkout

http://drupal.org/project/webform_associate (allows you to append webforms to other node types like events)
http://drupal.org/project/uc_webform_productize (allows you to take associated webforms and associate a product with them to purchase on submission)

There's a lot of work left to do on both of these, and it only works for my scenario right now, but the basic workflow is this:

I have an event node type, events need registrations, so webforms are appended to the events. I need people to pay for the events so products are associated with them as well, and are automagically added into the submit hook of the webform for purchase.

If this looks compelling to you, find me and we can talk. I'm in IRC a lot and on twitter by the same names.

EclipseGc

peach's picture
Offline
Joined: 01/30/2009
Juice: 67
Re: Peach

Hi, I had looked at your modules last week and they seemed really cool but they are quiete massive already and I would like to implement a clean and lightweight custom implementation and I wouldn't need adminisatration pages and the like.

But you're definitely building something cool, it just needs some abstraction so that it can work for other people as well.

I'll talk to you on IRC!

btw. my webform also calculates the price of the product from the form input so I think that might exclude ubercart from participating here, as ubercart wants to use predefined products.

Coolof's picture
Offline
Joined: 02/22/2011
Juice: 24
Re: Re: Peach

btw. my webform also calculates the price of the product from the form input so I think that might exclude ubercart from participating here, as ubercart wants to use predefined products.

>>> so can you use ubercart product custom price module. And set attrubutes with jQuery depending on the form values.

seems it can be done this way,

allanx's picture
Offline
Joined: 03/04/2009
Juice: 25
Help: Broken Webform Associate

Hey anyone got any advice ?

warning: Missing argument 3 for webform_associate_menu_access() in /home/example/public_html/new/sites/all/modules/webform_associate/webform_associate.module on line 48.

This is line 48 in that .module file:

function webform_associate_menu_access($func, $arguments = array(), $node, $a3 = NULL) {

Code has got me puzzled... Anyone got answers?

Love to use this module for my clients...

Drupal 6.2
Webform Associate 6.x-1.0-beta2

Also posted issue here: http://drupal.org/node/358252

cheers
allanx