patch for ubercart alpha 7e

detour's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 10/02/2007
Juice: 150
patch for ubercart alpha 7e

aymerick,

Thanks for your work on this module. For compatibility with Ubercart alpha 7e, some code changes are required:

1. uc_order_get_status_id seems to be deprecated in favor of uc_order_status_data, as per the discussion at: http://www.ubercart.org/comment/3572/Re-Alpha-7e-Released

2. The second argument of hook_order has been changed from the order id to the new order object. See: http://www.ubercart.org/docs/api/hook_order

Attached is a patch for these two issues. With these modifications, uc_expiry is running on my site with Ubercart alpha 8.

Thanks!

AttachmentSize
uc_expiry-uc7e.diff 1.41 KB
Expirable Product By: aymerick (10 replies) Thu, 08/09/2007 - 11:59