Home Forums Plugin Support WP User Frontend Pro link to subscriptions

This topic is: resolved

This topic contains 7 replies, has 2 voices, and was last updated by  trevor 5 years ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15369

    trevor
    Member
    Post count: 15

    Hi , I have created subscription plans and the work well but what I cant work out how to do is
    to place a link on the page that says ” you must purchase a pack before posting”

    I know I can place a short code and that works fine but I only want it to show if the user is not signed up to a package.

    Can you tell me how I can achieve this.

    Many thanks.

    #15377

    trevor
    Member
    Post count: 15

    Anyone?

    #15389

    Tareq Hasan
    Keymaster
    Post count: 2831

    Unfortunately there is no way doing this without adding some texts in php file. You can do that in /class/subscription.php in line 394.

    #15412

    trevor
    Member
    Post count: 15

    Thanks for the suggestion,

    I don't know much about code so how would I enter code to render the available subscription packages and or;

    a link saying click here to select view subscription packages.

    Thanks.

    #15435

    trevor
    Member
    Post count: 15

    Did you have any thoughts on this?

    #15442

    Tareq Hasan
    Keymaster
    Post count: 2831

    [php]
    if ( $force_pack == ‘yes' && WPUF_Subscription::has_user_error() ) {
    return __( ‘You must purchase a pack before posting', ‘wpuf' );
    }[/php]

    Change this to the following:
    [php]if ( $force_pack == ‘yes' && WPUF_Subscription::has_user_error() ) {
    return sprintf( __( ‘You must <a href="%s">purchase a pack</a> before posting', ‘wpuf' ), ‘http://your-link-goes-here.com' );
    }[/php]

    #15471

    trevor
    Member
    Post count: 15

    Great, Thank you this worked a charm, I also put a redirect to the selection page, works well.
    Thank you!

    #15665

    trevor
    Member
    Post count: 15

    Hello Tareq,

    Thanks for getting back to me,

    I see the line. So if I wanted display the plans how would I do that , I assume I can’t just put a short code in the php?

    How would I get subscription packs to show here

    Thank you

    Kind Regards,

    Trevor

    From: weDevs Team [mailto:support@mail333.us4.mandrillapp.com] On Behalf Of weDevs Team
    Sent: 12 February 2014 20:16
    To: trevor@tekclub.co.uk
    Subject: Re: [weDevs] link to subscriptions

    Tareq Hasan wrote:

    Unfortunately there is no way doing this without adding some texts in php
    file. You can do that in `/class/subscription.php` in line 394.

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

The topic ‘link to subscriptions’ is closed to new replies.