Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using the following line of C# code:
int stock = Decimal.ToInt32(NodeStock.GetStock(node.Id).GetValueOrDefault());
to get the stock level (I've used this in another project and it works fine) but in this project it is returning the following error:
System.MissingMethodException: Method not found: 'System.Nullable`1 TeaCommerce.Data.NodeStock.GetStock(Int32)'.
What am I missing?
My mistake, I'd updated the version of TeaCommerce on the install, but the project file referenced a previous version of the dll and the new version of the function now takes two parameters.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Getting stock level in C# throwing an error.
I'm using the following line of C# code:
to get the stock level (I've used this in another project and it works fine) but in this project it is returning the following error:
System.MissingMethodException: Method not found: 'System.Nullable`1 TeaCommerce.Data.NodeStock.GetStock(Int32)'.
What am I missing?
My mistake, I'd updated the version of TeaCommerce on the install, but the project file referenced a previous version of the dll and the new version of the function now takes two parameters.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.