cocart-headless / cocart-core

This is the core of CoCart that provides support for managing the user session and decouples WooCommerce.
Other
3 stars 1 forks source link

[Enhancement]: Add cart created timestamp as part of the current session #10

Closed seb86 closed 6 months ago

seb86 commented 10 months ago

Describe the solution you'd like

Expose the timestamp the cart was created for the current session rather than just save the current timestamp the cart was created.

Describe alternatives you've considered

No response

Additional context

No response

seb86 commented 6 months ago

Tried but not possible.

If a cart has no items in the cart then the session is not created to begin. If a cart does have items, we can't expose the timestamp until the next request is made for the cart.