wp-cloud-deploy icon indicating copy to clipboard operation
wp-cloud-deploy copied to clipboard

WooCommerce | Redirect "Trash" Server Button to Cancel Subscription?

Open unakriti opened this issue 2 years ago • 0 comments

Hi,

This somewhat relates with https://trello.com/c/1UBdBWdt/166-add-wp-capabilities-to-control-whether-the-delete-server-link-can-be-shown-to-user

When I try to delete a server (bought with WooCommerce) using the "Trash" button (I guess it is mapped internally to post row actions), the system pops up a warning about a related Subscription (see screenshot below) and eventually allows the deletion.

WPCD Subscription Trash Post Row Actions Screenshot from 2022-07-15 20-01-14

Now that V5 introduces frontend admin panel, this Trash button can perhaps be redirected to Cancel Subscription under WooCommerce -> My Account Dashboard. It just makes things easier to follow purely from a customer's workflow perspective.

PS: I might also risk suggesting to disable the Trash button altogether (even on the backend) when a server is deployed as a result of a Woo subscription.

PS: File I am testing is the Beta versions of WPCD Core and Woo Addon

Kind regards,

unakriti avatar Jul 15 '22 17:07 unakriti