Developer forum

Forum » Ecommerce - Standard features » Add to Cart and setting the EcomCustomerEmail in the Cart

Add to Cart and setting the EcomCustomerEmail in the Cart

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We noticed that, even being logged in, when we simply add a product to the cart, the EcomCustomer info is not populated until you access a page with the shipping cart module. That means some carts are not picked up by the Abandoned Carts Recipient Provider.

 

We can easilly work around that, but I am thinking of what would be the best way to do that:

  1. Add to cart to a page without the cart module, but make an API call to confirm if the email is set
  2. Add to cart to a page with the cart module (which causes a few more DB requests to render)
  3. Have Dynamicweb set the EcomCustomerEmail when a product is added to the cart and the user is logged
    (Feature request)

 

Any thoughts?

 

Given what we already developed, we'll likely go with option 1 (for now at least).

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Don't bother. It will be illegal on May 23rd anyways :-).

Apart from that, I would go with 2.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

Got point. I will go with #2

 

Thanks,

Nuno Aguiar

 

You must be logged in to post in the forum