Hello Dynamicweb
I have solution where i'm using two EcomCart Contexts, one called "Cart_1" and "Cart_2". The contets are based upon pre-orders(1) and normalt products(2).
When i'm using the cart module i can send the parameter "&OrderContext=" with my url to decide which context that i want to access, and do whatever i need. My solution is working with this, but for some reason it is very slow.
I have a cart with about 25+ orderlines(consisting of variants). The template i am using is only standard dw templatetags. Upon adding the "debug=true" parameter to the url, the log reveals some expensive queries to the database. I am not entirely sure why they take so long and how reduce them.
I attached some examples.
I have been using the cart module many times before without seeing these expensive queries, but this is the first time I'm using it with two different contexts. It seemed pretty straightforward, but switching between them 'on the fly' seems to be very expensive.
So any pointers would be very much appreciated.
Best regards, Jeppe.