can pay with like plugin be used to generate a discount code after share?

Can the "Pay with a Like" plugin be used to provide the user with a discount code to lower membership subscription ? or together with the membership plugin

all users see one page i.e. Pricing table A then if user uses the "pay with a like" to share that page then they are direct to a differnt page (accessible only by completing the pay with like) to reveal a reduced membership rate? but if somone trys to access that page directly with the url they will not have permission to view it unless they have passed the pay with like
What kind of settings would need to be enabled for this (if possible)

domain - http://tinyurl.com/q4s78hn
Support Access is open

Thanks

Tom

  • Vinod Dalvi
    • WP Unicorn

    Hi Tom,

    I hope you are well today and thank you for your question.

    You can achieve this using Pay with a Like and Membership 2 Pro plugins.

    Just create a coupon code in the Membership 2 Pro plugin and display it on the memberships page by adding it in this page then just wrap this coupon code using Pay with a Like shortcode along with the text "Share the page to reveal coupon code".

    Now the user won't see the coupon code on memberships page until they share it and after sharing it they can use that coupon code to get discount.

    Best Regards,
    Vinod Dalvi

  • Tom
    • Code Wrangler

    Hi Vinod,

    Sorry would you mind specifying if the options and settings i have are ok?

    I have created a coupon code and added the shortcode but made some changes and not sure if it is correct?

    <?php
     $content = do_shortcode(['pwal id="9999" description="Share to receive a 10% discount code" content_reload ajax] MYCODEGOESHERE [/pwal]');
    ?>

    On the pay with like settings this is the current configuration
    1 - http://take.ms/taHVg
    2 - http://take.ms/YAGZF
    3 - http://take.ms/MlqoZ
    4 - http://take.ms/8nusp

    For some reason when i use the Code element in upfront and paste the code and click save nothing happens and it disappears?

    Thanks

    Tom

  • Kasia Swiderska
    • Support nomad

    Hello Tom,

    I'll just jump here with quick suggestion. If you want to use shortcode in Upfront you can use the Text Widget instead of Code Element. And your shortcode should look like this:

    [pwal id="9999" description="Share to receive a 10% discount code" content_reload="ajax"] MYCODEGOESHERE [/pwal]

    Please, try this and let us know if this works.

    Kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.