duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
146 stars 40 forks source link

[7.x] Add additional "has cart" checks to cart tag #1096

Closed duncanmcclean closed 3 months ago

duncanmcclean commented 3 months ago

This pull request adds some additional "has cart" checks to the cart tag.

This will hopefully fixes the issue where empty orders are created due to the {{ sc:cart }} tag attempting to "find or create" the customer's existing cart when some of the cart tags are used.

The issue in #1062 reports that the Debugbar integration might be causing an issue here, however, it doesn't really do anything without an active cart.

Fixes #1062.

github-actions[bot] commented 3 months ago

Released as part of v7.3.0.