View previous topic :: View next topic |
Author |
Message |
PeterJ
Joined: 12 May 2017 Posts: 8
|
Posted: Fri May 12, 2017 2:24 pm Post subject: Is there a way to Get a Product by Distributor Product Ref |
|
|
Hi,
We're about to take the plunge and buy ILS as it looks perfect for what we need, and we're planning on integrating it into our in house CMS to automatically create licenses using the Infralution.Licensing.Data library.
One thing we'd like to do is to be able to get a product via our internal Part numbering - for example we might have a Product with an ILS ProductID=123 but our internal part reference for it in our CMS is PABCD.
So I guess we sort of want to do a "database.GetProductByPartReference("self","PABCD") which would return a Product with .id=123
Is there a built in way to achieve this, or shall we query the SQL DB direct? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon May 15, 2017 10:52 pm Post subject: |
|
|
You can set the IPN.NET Item Number for your product to be the CMS product ID (PABCD) and then use the Database.GetProductByIpnItemNumber method. You can do this even if you aren't actually using IPN.NET. _________________ Infralution Support |
|
Back to top |
|
|
PeterJ
Joined: 12 May 2017 Posts: 8
|
Posted: Tue May 16, 2017 4:18 pm Post subject: |
|
|
Ah that's great news, we'll do that!
Cheers, |
|
Back to top |
|
|
|