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.

  • Chris Roberts 74 posts 106 karma points c-trib
    Feb 11, 2011 @ 00:51
    Chris Roberts
    0

    Multiple 'Suppliers' in uCommerce

    Hello,

    I'm interested in using uCommerce for a site which we've been asked to build, but I have a question about some specific functionality we need.

    We need to support having products from 4 different suppliers. Each supplier will need to be able to login to the admin system to manage the product catalogue, but only their own products.

    When someone places an order, the suppliers will need to be able to login and view the orders, but only for the products which they supply.

    Can this be done? If so, can I do it with the starter edition?

    Thanks,

    - Chris

  • Søren Spelling Lund 1797 posts 2786 karma points
    Feb 11, 2011 @ 12:05
    Søren Spelling Lund
    0

    Hi Chris,

    Thanks for your interest in uCommerce.

    It can certainly be done, even using Starter edition.

    Basically you'd set up your Product Definitions to include an enum with supplier information. Each product would then have a supplier assigned to it.

    For the suppliers you can create a site protected by Umbraco member login. The site would have to basic functions: Allow the suppliers to edit product information and view orders specific to them.

    When the supplier logs in, grab the supplier id from the member profile and load up the products with that supplier id assigned it, and present a UI to edit the information you need. Pretty straightforward.

    Finally you do the same thing for orders. Basically load up any order line with the supplier id assigned to it (you can do this via dynamic order properties).

    It might seems like a lot, but the LINQ to uCommerce makes is easy to grab this information. Here's an example of what it would take to load up all order lines specific to a given supplier:

    var q = from orderLine in OrderLine.All()
        where orderLine.OrderProperties.Where(x => x.Key == "SupplierId" && x.Value == mySupplierId.ToString()).Count() > 0
            select orderLine;

    Another way to go about it is to go with uCommerce Pro, which will include a permission feature on store and catalog level. What you'd do in this scenario is set up a user account for each of the suppliers and assign them to individual catalogs containing only their products. Each of these catalogs would be aggregated into a single catalog displayed to the store customers.

    The order management UI would require a little tweaking to only display order lines with a specific supplier on it, but it's easily done by extending the uCommerce backend.

    Hope this helps.

Please Sign in or register to post replies

Write your reply to:

Draft