LoadProductTree

Nov 5, 2009 at 2:06 PM

I try Commerce on Umbraco 4.1 beta, but the Product Tree only show from a to z node that is not expanded to product level.

Another thing is the null error at  dashCommerce.Net\Utility\Utility.cs    Line: 717

  sUserName = Member.GetCurrentMember().Text;

Do you have any idea?

Coordinator
Nov 6, 2009 at 2:18 PM

The product tree does not auto-expand...this follows the conventions of Umbraco.

Not sure of the context of your error, but you might see this if you expected a current member to be logged in, when there was not one.

-Paul

 

Nov 7, 2009 at 7:47 AM

My product tree is loaded but it only show A to Z and others nodes. When I click into any nodes of product tree, there is nothing instead of that it must load all products which has name like '[a..z]%')

 

 

Nov 9, 2009 at 3:20 AM

Hi! If u have no products that begin with "H" letter, u could not expand "H" letter in the tree. If u have product, after u expand "H" letter, u find all products, that begin with "H".

Nov 9, 2009 at 3:25 AM

I found the error.

Wrong code

 

for (int i = 97; i < 123; i++)

                    {
                        XmlTreeNode xNode = XmlTreeNode.Create(this);
                        .................
         
                    }

Fixed code:

XmlTreeNode xNode = XmlTreeNode.CreateRoot(this);