How to access current order from custom serial key provider?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
poconnell
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Tue May 06, 2008 4:31 pm

How to access current order from custom serial key provider?

Post by poconnell » Tue Sep 23, 2008 11:08 am

How can I get access to the current order from within a custom serial key provider?

In my store, the SAME digital good is available with 1 and 12 month subscriptions and this needs to be reflected in the assigned key.

My experiments show that the DigitalGood provided in the Initialize method is simply a reference into the catalog as a whole and provides no means to navigate to the actual order being placed/activated.

Am I missing something? Is there a "global" way to access the active order (via HttpContext perhaps?)

Thanks for any suggestions,

Pete

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: How to access current order from custom serial key provider?

Post by afm » Tue Sep 23, 2008 1:56 pm

According to this thread, the order is not easily accessible (I'm thinking it is not accessible at all in the current build).

According to bug 7047, there will be a new AcquireSerialKey overload in 7.1 that provides access to the order item (and order, etc). The notes suggest that they may send you a private hotfix with the new overload if you request it.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

poconnell
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Tue May 06, 2008 4:31 pm

Re: How to access current order from custom serial key provider?

Post by poconnell » Wed Sep 24, 2008 8:46 am

Thanks Andy.

I hadn't seen that bug report/discussion - but it sounds like that hotfix is what I needed.

Pete

Post Reply