• Resolved umchal

    (@umchal)


    Hi,

    Very nice plugin.

    I have a suggestion that to support inheriting url query arguments in the set button url. This is important when you build an affiliate system on your site.

    Most affiliate systems tracks referrals with URL queries, something like http://your-site/product_x/?referral=myaffiliateid. Say, you set a button link to http://your-site/product_x/ which links to the product page and if an affiliate member introduces the product with ?referral=person_a and somebody referred lands on the pricing table page, then the button link becomes http://your-site/product_x/?ref=person_a.

    I just looked over your code and technically it is fairly easy to implement. Adding this line after the assignment to the $btn_link variable will let you do it.

    $btn_link = add_query_arg(
        $_GET,
        $btn_link
    );

    Or if it is something difficult to implement, adding a filter for it would be appreciated.

    $btn_link = apply_filters( 'rpt_button_link', $btn_link );

    Thanks for your consideration.

    https://wordpress.org/plugins/dk-pricr-responsive-pricing-table/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Darko

    (@spwebguy)

    Hi there,

    Sorry for the slow answer, we mostly do support from http://wpdarko.com/support. Next time please submit a ticket there, we’ll get back to you very quickly.

    If you are still interested in this I can get you in touch with our dev here, this can be a good idea.

    Keep us posted.

    Thread Starter umchal

    (@umchal)

    Hi,

    Yeah, I’m interested. But it is just a suggestion to use the apply_filters() function for the button link url so that it can be modified from a different plugin. Using the function will provide a convenient means to customize the behavior of the plugin. So it is recommended.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘URL Query Arguments For Button Link’ is closed to new replies.