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
Apologies if I've missed something obvious.
Is there any stock management in the demo shop? Or is this something I need to build?
e.g. Set a number against a vcariant, once that number has been sold it will get flagged as "Out of Stock"
Found this which might help. Simple Inventory Management With UCommerce:
http://www.publicvoid.dk/SimpleInventoryManagementWithUCommerce.aspx
Just follow the instructions in the article to get it going.
Cool.
So, how do I display thet InventoryOnHand value?
In Razor you go product["InventoryOnHand"] like any other property.
Hmm. That's not how I'm accessing any property. I'm kind of using
var myProduct = Product.All().Single(x => x.ProductId == int.Parse(str_productID));
@myProduct["InventoryOnHand"]
Is no use, obviously
I don't follow. Your posted code looks right. Are you not getting the value you expect from the call?
That outputs this: UCommerce.EntitiesV2.ProductProperty
Try a .Value on the end like this
product["InventoryOnHand"].Value
Odd. It's happy now.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Stock levels
Apologies if I've missed something obvious.
Is there any stock management in the demo shop? Or is this something I need to build?
e.g. Set a number against a vcariant, once that number has been sold it will get flagged as "Out of Stock"
Found this which might help. Simple Inventory Management With UCommerce:
http://www.publicvoid.dk/SimpleInventoryManagementWithUCommerce.aspx
Just follow the instructions in the article to get it going.
Cool.
So, how do I display thet InventoryOnHand value?
In Razor you go product["InventoryOnHand"] like any other property.
Hmm. That's not how I'm accessing any property. I'm kind of using
Is no use, obviously
I don't follow. Your posted code looks right. Are you not getting the value you expect from the call?
That outputs this: UCommerce.EntitiesV2.ProductProperty
Try a .Value on the end like this
Odd. It's happy now.
is working on a reply...