[Skip to main content](#vessel-content)

#   Clear customers cart

##

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347603](#347603) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347603 "Is there any config to clear customers cart history after 30 days?")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

Is there any config to clear customers cart history after 30 days?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 10 months ago [\#347606](#347606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347606 "Is there any config to clear customers cart history after 30 days?")*

Hi,

You have settings for that in the HikaShop configuration:
[ www.hikashop.com/support/documentation/5...g.html#advanced\_main](https://www.hikashop.com/support/documentation/54-hikashop-config.html#advanced_main)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347626](#347626) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347626 "Is there any config to clear customers cart history after 30 days?")*

I have settings 1 week, but carts remains 1year.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 10 months ago [\#347628](#347628) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347628 "Is there any config to clear customers cart history after 30 days?")*

Hi,

Can you provide a screenshot of the cart retaining settings in the HikaShop configuration ?
Also, how many carts do you have ?
Note that the setting only delete them 50 by 50, so if you have thousands of carts, this might take a while based on these settings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347632](#347632) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347632 "Is there any config to clear customers cart history after 30 days?")*

I have new cart entry every minute. So a lot. I think that some bot enters data.
Now I cleared table in database and set config to 5 days.
[ ![hika1&#95;2022-12-19.jpg](/forum/attachment/56165) ](/forum/attachment/56165 "...2022-12-19.jpg")

- [ ![hika1&#95;2022-12-19.jpg](/forum/attachment/56165) ](/forum/attachment/56165 "...2022-12-19.jpg") [ ](/forum/attachment/56165?download=1 "...2022-12-19.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 10 months ago [\#347634](#347634) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347634 "Is there any config to clear customers cart history after 30 days?")*

Him

If you configure the freauency to 1 day, it means that every day, it will delete 50 carts. But if you have 1 new cart every minute, then it means you will get more new carts than carts are being deleted. So it will just keep on piling up.
You should reduce the frequency like 1 every minute. That way, it will delete a lot more old carts every day and it should keep up with the new carts being created.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347643](#347643) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347643 "Is there any config to clear customers cart history after 30 days?")*

Ok, now I get the logic ![;)](/media/kunena/emoticons/11.png ";)")

Have any idea how to stop bots to create carts? As I see most IP is from msn bot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

3 years 10 months ago -  3 years 10 months ago [\#347644](#347644) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347644 "Is there any config to clear customers cart history after 30 days?")*

Hello,

You get how to proceed in such case from old forum subject, **[ here](https://www.hikashop.com/support/forum/install-update/889178-lots-of-abandoned-cartes-due-to-bots.html#313585)**.
Hope this will help you to prevent this.

Regards

Last edit: 3 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347672](#347672) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#347672 "Is there any config to clear customers cart history after 30 days?")*

The only working thing was htaccess block of bingbot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")**
- [![jazzbird's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33369-jazzbird "View jazzbird's Profile")
- [ Offline](/forum/user/33369-jazzbird)

Less More

- Posts: 63
- Thank you received: 1
-
-

2 years 9 months ago -  2 years 9 months ago [\#357928](#357928) by [jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")  Replied by *[jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#357928 "Is there any config to clear customers cart history after 30 days?")*

Hello,

I am also having the same issue of a cart with thousands of items that were created months ago. I have tried the settings above (cart retaining period 3 days, frequency of checking carts 1 minute) but it doesn't work. Only when I save the configuration, 50 records are deleted from the cart, but then it is stuck there. Every time I save the settings, 50 other records are deleted. But none are deleted automatically as it is supposed to do.

As a more general request, I really wish it were possible to have a lighter Hikashop. No extension bloats my website and database like it. Thousands of records that get stuck in a cart, thousands of zones, dozens of shipping plugins, nearly 200 DB tables... it would be nice to be able to set some of these as options upon install for those who wish to have a lighter and less cumbersome component.

Thank you, and wishing you a happy new year!

Last edit: 2 years 9 months ago by [jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

2 years 9 months ago [\#357941](#357941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#357941 "Is there any config to clear customers cart history after 30 days?")*

Hi,

Thanks, happy new year to you too !

HikaShop doesn't even add 50 tables to the database. The rest is Joomla and your other extensions. And an ecommerce solution has to be big. HikaShop is actually one of the lightest ecommerce solutions out there. Most of them have way more tables. For example, Prestashop's tables : [ github.com/PrestaShop/PrestaShop/blob/8....ata/db\_structure.sql](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/install-dev/data/db_structure.sql)
That's hundreds of tables.
Zones are necessary for the customers to be able to enter their address.
There are only 10 shipping plugins preinstalled with HikaShop, so not dozens.
I assure you we're trying our best to make it as light as possible, while maintaining backward compatible as best as possible, and allowing for as much capabilities as possible within that frame.

Regarding your issue with carts, I actually answered in length about this same issue on this thread:
[ www.hikashop.com/support/forum/orders-ma...-customer-carts.html](https://www.hikashop.com/support/forum/orders-management/907270-error-50-when-accesing-customer-carts.html)
So please read there and follow the instructions.

The following user(s) said Thank You: [jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")**
- [![jazzbird's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33369-jazzbird "View jazzbird's Profile")
- [ Offline](/forum/user/33369-jazzbird)

Less More

- Posts: 63
- Thank you received: 1
-
-

2 years 9 months ago [\#358214](#358214) by [jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")  Replied by *[jazzbird](/forum/user/33369-jazzbird "View jazzbird's Profile")* on topic *[Clear customers cart](/forum/35-orders-management/905555-clear-customers-cart#358214 "Is there any config to clear customers cart history after 30 days?")*

Okay, thanks, I think I figured it out!

And yes, I'm not sure where I got the "nearly 200 DB tables"... Sorry. I must have been looking at something else. I'm actually counting 43 tables, which is still about a quarter of all my website's tables! ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTU1NS1jbGVhci1jdXN0b21lcnMtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.337 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
