Developer forum

Forum » Development » Updating info in custom module

Updating info in custom module


Reply
Hi,

I'm making a custom module where i have to change the name of certain products. When i change the name it does change the name if you view it in ecom. But it seems the name doesn't change in my custom module. I have to log out and in again before i can se the updated name of the product in my module. 

Så my question is, if there is a way you can force the module to get the updated data?

Thanks in advance :-)!

Replies

 
Reply
Hi
There is my code and it works properly

            Dynamicweb.eCommerce.Products.Product p = new Dynamicweb.eCommerce.Products.Product("PROD17");  //p.Name equals "Acer1"
            p.Name = "Acer1ModifiedName";
            p.Save();

            Dynamicweb.eCommerce.Products.Product p2 = new Dynamicweb.eCommerce.Products.Product("PROD17");
            string productName = p2.Name;   //equals "Acer1ModifiedName"

Provide please your code. I will check it.

 

You must be logged in to post in the forum