Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Tony Kiernan 278 posts 341 karma points
    May 31, 2011 @ 13:21
    Tony Kiernan
    0

    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"

  • Tony Kiernan 278 posts 341 karma points
    May 31, 2011 @ 13:38
    Tony Kiernan
    0

    Found this which might help. Simple Inventory Management With UCommerce:

    http://www.publicvoid.dk/SimpleInventoryManagementWithUCommerce.aspx

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 31, 2011 @ 15:44
    Søren Spelling Lund
    1

    Just follow the instructions in the article to get it going.

  • Matt Taylor 873 posts 2086 karma points
    Jun 22, 2011 @ 11:22
    Matt Taylor
    0

    Cool.

  • Tony Kiernan 278 posts 341 karma points
    Jul 05, 2011 @ 13:44
    Tony Kiernan
    0

    So, how do I display thet InventoryOnHand value?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2011 @ 16:57
    Søren Spelling Lund
    0

    In Razor you go product["InventoryOnHand"] like any other property.

  • Tony Kiernan 278 posts 341 karma points
    Jul 05, 2011 @ 17:11
    Tony Kiernan
    0

    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

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2011 @ 17:14
    Søren Spelling Lund
    0

    I don't follow. Your posted code looks right. Are you not getting the value you expect from the call? 

  • Tony Kiernan 278 posts 341 karma points
    Jul 05, 2011 @ 17:40
    Tony Kiernan
    0

    That outputs this: UCommerce.EntitiesV2.ProductProperty

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2011 @ 17:42
    Søren Spelling Lund
    0

    Try a .Value on the end like this

    product["InventoryOnHand"].Value
  • Tony Kiernan 278 posts 341 karma points
    Jul 08, 2011 @ 10:38
    Tony Kiernan
    0

    Odd.  It's happy now.

Please Sign in or register to post replies

Write your reply to:

Draft