Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abandoned and bots carts #1064

Open
damsfx opened this issue Oct 25, 2023 · 3 comments
Open

Abandoned and bots carts #1064

damsfx opened this issue Oct 25, 2023 · 3 comments

Comments

@damsfx
Copy link
Contributor

damsfx commented Oct 25, 2023

Bots carts

I see on multiple web site, that Search engine's bots (and other tool like Semrush or UptimeRobot) are creating multiple carts each time they visit the site.
At this time on one of my site, I have more than 200000 carts in database.
Can some of you, confirm that you also have a very large number of pending carts.

If this is confirmed, do you think we can exclude the creation of carts for these robots?

GDPR plugin data retention integration

I see #379 issue and the cart's model gdprCleanup() method.

This method is labeled as "Delete abandoned shopping carts", but it delete all carts updated past a date, either they are customer's carts or empty carts.
So I'm wondering whether the function should be called something else: Delete all old carts?
What do you think?

Cleanning

Meanwhile, if I want to delete all the shopping baskets created by search engine robots, but without deleting my customer's old shopping baskets, do you think is was possible to include this function in the plugin, or would it be better to create this cleaning function in my dedicated plugin (in both case either with the RGPD plugin functionality, or a command)?

@tobias-kuendig
Copy link
Member

@damsfx see #280 for more details. Ideally, a cart will only be created once the user adds a product.

@damsfx
Copy link
Contributor Author

damsfx commented Nov 2, 2023

@damsfx see #280 for more details. Ideally, a cart will only be created once the user adds a product.

Has this already been added to the plugin?
I can't find any reference.

If not, do you want a PR (it will be in the v2 branch - but the feature didn't evolve until the develop version)?

@tobias-kuendig
Copy link
Member

tobias-kuendig commented Nov 2, 2023

I haven't had the time to integrate it, so no the feature is not yet available. @Samuell1 once shared some code with me that they've come up with and I have posted it in #280. The bigger part of this feature is to test that it still works with the on-the-fly carts.

If not, do you want a PR (it will be in the v2 branch - but the feature didn't evolve until the develop version)?

That would be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants