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.

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jul 17, 2012 @ 12:55
    Steen Tøttrup
    0

    Import puts data in database, but not in tree

    I'm working on doing a bulk import, and have been looking at doing it outside the web enviroment (http://www.publicvoid.dk/CategoryView,category,uCommerce.aspx). I've got the import working, creating categories etc. (they're in the database), but nothing new shows up in the tree in the uCommerce section, even after restarting the site etc.

    What could I be missing? I've created a new ProductCatalog (using the API), and looking in the uCommerce_ProductCatalog table, it's there and just like the default one. So is there something else I should create to make this catalog visible in the back-office uCommerce tree?

    The site runs on Umbraco 4.7.2 and uCommerce 2.6.1.0

    Thanks,
    Steen

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jul 18, 2012 @ 08:24
    Steen Tøttrup
    0

    Found it, you need to let the admin have access to the new node.

    Now I just need to figure out how to do this with the API.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 18, 2012 @ 08:58
    Søren Spelling Lund
    0

     

    var roleService = ObjectFactory.Instance.Resolve<IRoleService>();
    var roles = roleService.GetAllRoles().ToList().Where(x => x.Allows(entity));
    roleService.AddUserToRoles(user, roles.ToList());

     

Please Sign in or register to post replies

Write your reply to:

Draft