Home Forums Plugin Support WP User Frontend Pro Hide cancel button when pack

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Nayem 3 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71668

    Chardon
    Member
    Post count: 10

    I need to hide the cancel button when the buyer orders a one time fee pack instead of a recurring package. Is this possible? Anyone knows a php if/else code?

    #71673

    Chardon
    Member
    Post count: 10

    Also it would be great if the cancel button came with a confirmation: Are you sure you want to cancel — to avoid accidental cancellations

    #71779

    Nayem
    Moderator
    Post count: 6480

    To hide cancel button for free pack you have to open Wp user frontend/class/subscription.php file and replace this line with line number- 759-760

    $pack_price  = get_post_meta( $current_pack->pack_id, 'wpuf_billing_amount',true );
    if ( $pack_price ) {

    For you second post- I will notify to our developer team about this.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Hide cancel button when pack’ is closed to new replies.