Hello,
I am trying to change the serial key provider. For this I am creating a class which inherits from CommerceBuilder.DigitalDelivery.DefaultSerialKeyProvider and overriding AcquireSerialKey() to implement my custom serial key generation logic.
To generate keys for the correct product, I need the Product ID(s) or SKU(s). Does anyone know how I can access product information from the order?
Thank you in advance.
Digital Goods serial number generation
Try the Token class. I know it provides current store and user information.
Usually Able passes the ProductId as a session state object though when jumping from class to class. At least that's as far as I my knowledge can understand it...still learning this advanced ASP.Net stuff.
Usually Able passes the ProductId as a session state object though when jumping from class to class. At least that's as far as I my knowledge can understand it...still learning this advanced ASP.Net stuff.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Or better still, try PageHelper.GetProductId() or PageHelper.GetOrderId()
So something like this (VB):
or
Then you can work with the strongly-typed version of the data you need.
So something like this (VB):
Code: Select all
DIM _Product as Product = ProductDataSource.Load(PageHelper.GetProductId())
Code: Select all
DIM _Order as Order = OrderDataSource.Load(PageHelper.GetOrderId())
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com