Sure, this is possible. The UI uses a SQL stored procedure, you can call this procedure in your custom XSLT extension class. Here's my way of doing this:
public static XPathNodeIterator GetTopSellers(int count) {
try { List<UCommerce.EntitiesV2.Product> products = new List<UCommerce.EntitiesV2.Product>();
Thanks Christian, this is really useful. We are thinking about starting a uCommerce Contrib project (simular to the Contour Contrib project) so we can collect all of the useful uCommerce extensions into one library, would you be interested in being a contributor?
does anyone know how to do that same without using SubSonic.Schema; now that it's no longer shipped in ucommerce 2.0? trying to modify the uCommerceContrib source myself but not having much luck
I have the following
SPs procedure = new SPs(); var top10 = procedure.GetProductTop10();
//how then to pass the right info to the datareader object?
Accessing the Top 10 products
Anyone know, is it possible to access the top 10 selling products (in the analytics section of uCommerce UI) via the API/Razor or XSLT?
Thanks,
Jeavon
Sure, this is possible. The UI uses a SQL stored procedure, you can call this procedure in your custom XSLT extension class. Here's my way of doing this:
Best regards
Christian
Thanks Christian, this is really useful. We are thinking about starting a uCommerce Contrib project (simular to the Contour Contrib project) so we can collect all of the useful uCommerce extensions into one library, would you be interested in being a contributor?
Regards,
Jeavon
does anyone know how to do that same without using SubSonic.Schema; now that it's no longer shipped in ucommerce 2.0?
trying to modify the uCommerceContrib source myself but not having much luck
I have the following
a bit out of my depth really
thanks for any help.
- Tim
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.