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.

  • Anne 8 posts 48 karma points
    Jan 06, 2014 @ 15:14
    Anne
    0

    Importing products and cache

    Hi,

    Im making a user control to import/Update/Delete products in ucommerce. This works fine, but if i set the DisplayOnSite to false through the api, the product is shown.

    ISessionProvider sessionProvider = ObjectFactory.Instance.Resolve();

    IStatelessSession statelessSession = (sessionProvider as SessionProvider).GetStatelessSession();

    product.DisplayOnSite = false;

    product.ModifiedOn = now;

    product.ModifiedBy = "admin";

    statelessSession.Update(product);

    product.Save();

     

    I have tried with both save and update method, but nothing works. Is there som cache i need to clear?

    I have tried to do an iis reset but the products is still shown. If i go to the product in ucommerce the property displayonsite is correctly set to false

    So what am i missing in the import function?

  • Morten Skjoldager 440 posts 1499 karma points
    Jan 06, 2014 @ 15:45
    Morten Skjoldager
    0

    Hi Anne,

    The Api doesn't take DisplayOnSite into account. You have to query them away yourself. 

    Can you paste the code from where you fetch the products to be shown on the page?

    Regards

    Morten

Please Sign in or register to post replies

Write your reply to:

Draft