Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Help Multistore 9.2 and Add Ins

  1. #1
    verishare is offline Junior Member
    Join Date
    Jul 2009
    Location
    Yakima,WA
    Posts
    5

    Default Help Multistore 9.2 and Add Ins

    As a test I built a class using the order options contract with no luck other than getting it to show up in the add in manager. My goal is to build my own taxrate addin to do some custom fee calculation on products. Does someone have an example or documentation (other than erps manual)?

  2. #2
    verishare is offline Junior Member
    Join Date
    Jul 2009
    Location
    Yakima,WA
    Posts
    5

    Default

    Using IInventory Contract with IShoppingCart GetInventories(IShoppingCart products, InventoryRequestTypeFlags requestType). How would one return a modified quantity back to the cart?

    Thus far I have:

    [AddIn("Inventory",
    Version = "1.0.0.0",
    Description = "Inventory",
    Publisher = "me")]

    public class CheckInventory : IInventory
    {

    public IShoppingCart GetInventories(IShoppingCart products, InventoryRequestTypeFlags requestType)
    {

    foreach (ICartItem ICitem in products.Items())
    {
    int itemQTY=ICitem.Quantity();

    //code to modify this items quantity

    }

    //something modifed to return as a modified IShoppingCart
    return products;
    }

    }
    Last edited by verishare; 02-18-2012 at 12:08 PM.