Developer forum

Forum » Ecommerce - Standard features » LedgerEntries.Count is not returning the correct value

LedgerEntries.Count is not returning the correct value

Lara Arsénio
Reply
Hello.

I am Using the App 'Customer Center' (from ECOMMERCE) to setup both List Orders (from loop "Orders") and List Invoices (from loop "LedgerEntries")
 
Ecom:CustomerCenter.Orders.Count - returns the total number of existing loopItems, regardless of the number of items to show per page.

Ecom:CustomerCenter.LedgerEntries.Count - limits the total number of items to the value set on ItemsPerPage (10 in this case), even if the total number of items is bigger than that

Currently i have to built a pagination area that shows a message like "You are seing x (10) of y (30) entries", and for that i need the total number of existing items.

 


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I found this bug and a fix for it. The list that populates the Count tag is being filtered. Seems like the quickest fix is the one suggested in the link.

https://www.screencast.com/t/fuMQwMcSyBi

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum