I needed to use this module for drupal 7. Did an initial port. Didn't get to any of the views stuff. Very preliminary but works great with basic functionality. I thought it was better to get the code out there rather than it just sitting on my computer. I hope this helps someone. Maybe if I have some time I will finish porting.

Comments

liliplanet’s picture

subscribe thx!

Alex Andrascu’s picture

Any update to this ? Looks really usefull.

paulgemini’s picture

subbing

mgladding’s picture

I'm interested in this as well. I tried moving to Drupal Commerce but it doesn't do everything I need yet.

paulgemini’s picture

Title: Port to drupal 7 » UC Node Checkout - D7 Port?
andregriffin’s picture

Very interested in this...

adshill’s picture

I just get the following on install:

DatabaseSchemaObjectExistsException: Table <em class="placeholder">uc_node_checkout_types</em> already exists. in DatabaseSchema->createTable() (line 652 of /Users/adshill/Documents/httpdocs/cne/includes/database/schema.inc).
The website encountered an unexpected error. Please try again later.

No functionality available. Will try to look into it if I can... would be great to have a D7 version.

adshill’s picture

We can offer a bounty of $500/£300/€350 for the port of this before Monday 17th October - realise its crazy short notice but we need it for then otherwise its not worth it for us.

Drop me a line if this is something you can deliver.

Alex Andrascu’s picture

Take a look at this maybe it helps. Do you need it specifically for UberCart or you just need a solution ? Second case i may be able to help.

adshill’s picture

Hi Alex, thanks for the info. I'm actually looking for something Ubercart specific as we're using the cart for many other products. But appreciate the info.

For info - pretty sure we've found someone to take on the work so there should be a D7 version of this module available in the next few days.

Cheers, Adam

liliplanet’s picture

Fabulous adshill, looking forward and appreciate your work!

adshill’s picture

StatusFileSize
new80 KB

Not my work Liliplanet! The work of Dave, longwave, my company Consult and Design just funded it.

So here is the last file I've received - I think its almost there but any help testing is greatly appreciated! Apparently it requires the latest dev version of Ubercart in order for the Views integration to work and was done in a hurry so maybe there are bugs.

Enjoy!

adshill’s picture

Title: UC Node Checkout - D7 Port? » UC Node Checkout - D7 Port
Component: Miscellaneous » Code
Status: Active » Needs review

Hmm... not sure why there is an extra _ in there, just remove it an the file works fine. Also changed the status of the issue.

adshill’s picture

When adding an association on the Node Checkout admin page I got the following:

Notice: Undefined index: restricted_fields in uc_node_checkout_type_form_submit() (line 198 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.admin.inc).
Notice: Undefined index: order_status in uc_node_checkout_type_form_submit() (line 210 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.admin.inc).
Notice: Undefined index: order_id in uc_node_checkout_type_form_submit() (line 211 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.admin.inc).
Notice: Undefined index: product_id in uc_node_checkout_type_form_submit() (line 212 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.admin.inc).

It also appears when removing an association - but doesn't show again after these actions.

Also, when I remove an item from the shopping cart (even with no node_checkout items set-up) then I get the following:

Warning: unserialize() expects parameter 1 to be string, array given in uc_node_checkout_uc_cart_item() (line 862 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.module).

adshill’s picture

As an anonymous user, if redirect to cart after creating the node is activated I get the following:

Notice: Undefined variable: _SESSION in uc_node_checkout_form_alter() (line 439 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.module).

adshill’s picture

Another one...(!)

When going into checkout I get the following:

Notice: Undefined index: title in uc_node_checkout_uc_cart_item() (line 891 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.module).
Unable to determine the product class associated with item so the shipping pane is included on this Ubercart display
Notice: Undefined index: title in uc_node_checkout_uc_cart_item() (line 891 of /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.module).
Unable to determine the product class associated with item so the shipping pane is included on this Ubercart display

Adam

adshill’s picture

Slightly more serious: Can't delete nodes

When trying to delete content that has been added to the cart using the node_checkout module I get a WSOD.

The logs show:

[15-Oct-2011 17:29:44] PHP Fatal error: Call to undefined function db_affected_rows() in /Users/adshill/Documents/httpdocs/cne/sites/all/modules/uc_node_checkout/uc_node_checkout.module on line 787

I then tried to delete the order, assuming it was because they are part of the orders that they won't delete, however the same thing happens. Doing this as user 1.

adshill’s picture

Final one for today - I'm moving on.

It seems this issue in 6.x is still a problem: #1181578: Unable to determine the product class associated with item so the shipping pane is included on this Ubercart display

I get the same error on checkout. Thanks.

andregriffin’s picture

I know the time frame was short, but is this still going to be released in the near future?

Anonymous’s picture

Looks like some good progress was made.

Would love to see this module up and running for D7, in the meantime I'm going to try and make do with custom rules.

longwave’s picture

Status: Needs review » Fixed

Fixed all errors reported in #13 through #18 and pushed to git. 7.x-2.x-dev will be available within the next 12 hours at http://drupal.org/node/1316174

adshill’s picture

I can confirm that this module is working great. Thanks Dave!

Anonymous’s picture

I just installed and configured this module with a node & product. using drupal 7.8 and 7.2x dev.

I got this error

Recoverable fatal error: Argument 2 passed to db_query() must be an array, null given, called in /var/www/vhosts/blah/blah/blah/sites/all/modules/uc_node_checkout/uc_node_checkout.module on line 1139

EDIT: I'm going to be testing this error out. I have a decent amount of modules enabled, so something could be interfering. I'll move this post to an issue queue if needed.

Status: Fixed » Closed (fixed)

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