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
Hi
So I need to update the stock level of a product in Tea Commerce. I can't seem to use ContentService like this:
contentService.SaveAndPublishWithStatus(content,0,false);
Is there a way I can update the stock level via ID of the product or SKU?
Hi Neil,
You can yes, however it's not available on the TC facade like GetStock so you'll need to go via the ProductService instead.
TC
GetStock
ProductService
ProductService.Instance.SetStock( long storeId, string sku, decimal? value );
Hope this helps
Matt
Brill! Once again Matt, thank you for the amazingly quick response to this.
That's was the last part of the puzzle for my demo/proof of concept with the client in the morning,
Sage now integrated :)
You are more than welcome.
Good luck with the PoC tomorrow 😁
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Update Stock Level of Product programmatically
Hi
So I need to update the stock level of a product in Tea Commerce. I can't seem to use ContentService like this:
Is there a way I can update the stock level via ID of the product or SKU?
Hi Neil,
You can yes, however it's not available on the
TC
facade likeGetStock
so you'll need to go via theProductService
instead.Hope this helps
Matt
Brill! Once again Matt, thank you for the amazingly quick response to this.
That's was the last part of the puzzle for my demo/proof of concept with the client in the morning,
Sage now integrated :)
You are more than welcome.
Good luck with the PoC tomorrow 😁
is working on a reply...