Pro Sites Cancel Button not visible for earlier accounts subscribed

Issue with early accounts that were subscribed through Prosites. The cancel button is not visible for these accounts. On new accounts subscribed, cancel button does show.

  • Ben
    • The Reaper

    developer, install a previous version from say 3 years ago. Create subscriber.
    Then upgrade the version to the latest version, then open the following file:

    pro-sites-files/lib/ProSites/View/Front/Gateway.php

    find the bit of code that says:

    Cancel link?

    And then modify the code bewlow it similar as below to reveal your bug:

    $content .= 'We Made it 1';
    $content .= print_r($info_retrieved, true);
    if ( empty( $info_retrieved['cancellation_message'] ) ) {
        $content .= 'We Made it 2';
        if ( ! empty( $info_retrieved['cancel_link'] ) ) {
            $content .= 'We Made it 3';
            $content .= '<div id="psts-cancel-link" class="psts-cancel-link">' . $info_retrieved['cancel_link'] . $info_retrieved['cancel_info'] . '</div>';
         } else if ( ! empty( $info_retrieved['cancel_info_link'] ) ) {
            $content .= 'We Made it 4';
            $content .= '<div id="psts-cancel-link" class="psts-cancel-link">' . $info_retrieved['cancel_info_link'] . $info_retrieved['cancel_info'] . '</div>';
         }
                                            // Receipt form
     if ( ! empty( $info_retrieved['receipt_form'] ) ) {
        $content .= 'We Made it 5';
        $content .= '<div class="psts-receipt-link">' . $info_retrieved['receipt_form'] . '</div>';
      }
    }
  • Joel James
    • Developer

    Hey Ben,

    Are you sure that the old site's subscription is recurring? Cancellation link is not set when the subscription is already cancelled or not recurring.

    I have tested this from version 3.5.6, but could not reproduce this. If you are sure that the old subscription is recurring and not cancelled, can you share the old version number, from which you upgraded to the latest version? It will be helpful for us to debug this further.

    Regards,
    Joel

  • Ben
    • The Reaper

    >> have tested this from version 3.5.6, but could not reproduce this

    I have about 60 active pro-sites subscriptions, just pulled a random one started in Dec 29, 2014 that is annual. He doesn't have a cancellation link.

    So...go back further? Figure out where $info_retrieved['cancel_link'] started being a variable that was populated?

  • Patrick Freitas
    • Staff

    Hi Ben

    Hope you are doing well.

    Thank you for the update, I forwarded to the developer this information.

    Have about 60 active pro-sites subscriptions, just pulled a random one started in Dec 29, 2014 that is annual. He doesn't have a cancellation link.

    Wouldn't you mind please, grant the support access on any of the site that it is happening, and it can help on the debug?

    Let us know when support access is granted.
    Best Regards,
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.