Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We have an Umbraco 6.1.6 site running TeaCommerce 2.2 and if we filter Orders / New > Order Stage = Cart in the backend we're seeing a new line entry every 5-10 minutes.
Is someone trying to hack our system, or is there a problem with our setup?
You properly miss the autoCreate: false parameter in GetCurrentOrder when you print out the mini cart or something like that.
https://documentation.teacommerce.net/razor-api/order/getcurrentorder/
Kind regards
Anders
We have this code in mini-cart.cshtml
if (TC.GetCurrentOrder(storeId, false) != null) { Order order = TC.GetCurrentOrder( storeId ); totalPrice = order.SubtotalPrice.ToString(); totalQuantity = order.OrderLines.Sum( o => o.Quantity ); }
should we change this line to:
Order order = TC.GetCurrentOrder( storeId, false );
I would have:
Order currentOrder = TC.GetCurrentOrder(storeId, false); if(currentOrder != null){ }
Just to optimize. BUT there must be somewhere else that you are missing the false statement where a lot of people are visiting your webshop.
I remember this being a bug in one of the TC versions, that was fixed in a patch release.
Double check what version of teacommerce you are using, and get patched up.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Thousands of empty cart records in backend
We have an Umbraco 6.1.6 site running TeaCommerce 2.2 and if we filter Orders / New > Order Stage = Cart in the backend we're seeing a new line entry every 5-10 minutes.
Is someone trying to hack our system, or is there a problem with our setup?
You properly miss the autoCreate: false parameter in GetCurrentOrder when you print out the mini cart or something like that.
https://documentation.teacommerce.net/razor-api/order/getcurrentorder/
Kind regards
Anders
We have this code in mini-cart.cshtml
should we change this line to:
I would have:
Just to optimize. BUT there must be somewhere else that you are missing the false statement where a lot of people are visiting your webshop.
I remember this being a bug in one of the TC versions, that was fixed in a patch release.
Double check what version of teacommerce you are using, and get patched up.
is working on a reply...