Skip to content

Creating empty order for every visitor? #1027

Closed Answered by Web10-Joris
Web10-Joris asked this question in Help
Discussion options

You must be logged in to vote

Hi Duncan,

Thanks for your detailed explanation.
I investigated all possible tags/middleware/controllers linked to Simple Commerce and found that the {{ sc:cart }} tag looping over items in the header was the problem (This placement provides a mini cart on hover of shopping cart icon). On new sessions this tag was creating an empty cart, so put that within a {{ if sc:cart:count > 0 }} and now it doesn't seem to happen anymore.

Hopefully this will also solve the other error as a lot fewer carts are now being created.

Thanks again for your help en also fixing the other issue!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Web10-Joris
Comment options

Answer selected by duncanmcclean
@duncanmcclean
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants