Hello,
Is it possible to use access the eCom:Related.CustomersWhoSawThisAlsoSaw (accessible when using the normal Product Catalogue) loop when using Product catalog for ViewModel?
Hello,
Is it possible to use access the eCom:Related.CustomersWhoSawThisAlsoSaw (accessible when using the normal Product Catalogue) loop when using Product catalog for ViewModel?
Hi Vincent,
That functionality is currently not available in the viewmodel and we have no clear alternative.
The code (Dynamicweb.Ecommerce.Specialized.RelatedProductListProviders.CustomersWhoSawThisAlsoSaw) that contains the business logic, is not something I think you should add to the template.
BR
Martin
Thank you for your response - we'll make a custom service to retrieve the products.
Hi Vincent
The loop you mention is based on a SQL - which is pretty slow. Also loading this list as part of the product rendering is not the best solution because of performance. Also it uses the "Statv2session" data to find the data - in later (9.7+) versions of Dynamicweb we have Dynamicweb Tracking - see https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/web-and-http#8215
The new tracking is recording visitor data in a new way - data can be found in TrackingSession, TrackingView and TrackingEvent. TrackingSession tracks a visit - TrackingView all the pages, groups and products being visited in that visit and TrackingEvent tracks events like add to cart, submit form etc. 9.8 record more information than 9.7.
To solve this, my suggestion would be the following to get a performance that is good enough
I know it is a lot of steps, but it would be the best performing way and would scale well.
BR Nicolai
Thank you, Nicolai! We'll try your approach :-)
You must be logged in to post in the forum