Skip to content

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

@unakriti

Description

@unakriti

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions