Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there a way to Get a Product by Distributor Product Ref

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
PeterJ



Joined: 12 May 2017
Posts: 5

PostPosted: Fri May 12, 2017 2:24 pm    Post subject: Is there a way to Get a Product by Distributor Product Ref Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4815

PostPosted: Mon May 15, 2017 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PeterJ



Joined: 12 May 2017
Posts: 5

PostPosted: Tue May 16, 2017 4:18 pm    Post subject: Reply with quote

Ah that's great news, we'll do that!

Cheers,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group