getdokan / dokan-wpml

WPML compatibility with dokan plugin
5 stars 11 forks source link

Deleting products from the dashboard does not delete translations #82

Closed decodekult closed 1 month ago

decodekult commented 2 months ago

Hi there

This is Juan from the WPML compatibility team. We got a report about deleting products using the Dokan frontend dashboard. It seems that this action is not deleting product translations despite the WPML setting on that matter.

I am opening related PRs against the main plugin and this glue plugin. We need a couple of actions triggered when deleting products from the dashboard, and callbacks to apply some WPML actions.

Sophie-2e commented 2 months ago

Hello @decodekult, I noticed the ticket you mention was created 3 years ago. So I just did a test to verify, in a default environment with WPML, Dokan, Dokan Pro and Woo updated to latest version. And I could delete the product from the seller dashboard, and the translations associated were automatically deleted too.

The only issue I faced is that if the admin delete a product, previously added via a seller dashboard, the translations associated with this product will not be deleted automatically. Instead the admin need to delete the translations associated manually, despite the WPML settings. But the issue only happen if we delete product from WP admin, not from the seller dashboard.