WordPress.org

Ready to get started?Download WordPress

Forums

Easy Pricing Tables by fatcat apps
[resolved] Suggestion - add tooltip feature (8 posts)

  1. Oizuled
    Member
    Posted 4 months ago #

    Just a feature suggestion for the future - the ability to include some sort of tooltip text on each line would be a nice extra (perhaps premium) feature.

    This would be especially useful for software, or other technical service comparisons to include a little extra information about the product/service someone is selling.

    Currently I'm using the Responsive Mobile-Friendly Tooltip plugin, which works just fine, but it would be nice if there was a tooltip option included with this plugin by default.

    https://wordpress.org/plugins/easy-pricing-tables/

  2. Oizuled
    Member
    Posted 4 months ago #

    I was a bit premature with that last post.

    I used the Responsive Mobile-Friendly Tooltip plugin's [tooltip] shortcode in a pricing table that had not yet gone live on my site. I previewed the pricing table with the [tooltip] shortcode included, and it looks exactly how I would expect it to with the selected text having the relevant tooltip underline, etc.
    For example:

    Some text
    Some more text with a tooltip
    Even more text

    However when I set the pricing table on an actual live page, the tooltip shortcode does not function properly. All I get is the shortcode's text included in the pricing table.
    For example:

    Some text
    [tooltip tip="Tooltip text describing what this is all about."]Some more text with a tooltip[/tooltip]
    Even more text

    I haven't been able to figure out why it shows up fine in the preview mode, but not while it's live on an actual page??

  3. Oizuled
    Member
    Posted 4 months ago #

    The quick fix that I came up with to get the shortcode to work inside the pricing table was to edit wp-content/plugins/easy-pricing-tables/includes/shortcodes.php. Find line 27:

    return dh_ptp_generate_pricing_table($id);

    and replace it with:

    return do_shortcode(dh_ptp_generate_pricing_table($id));

    Although I haven't tested it, this should also allow any other shortcode to work inside a pricing table.

  4. davidhme
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Oizuled,

    Thanks so much for your suggestion and bug report.

    Tooltips is something I've left out on purpose in order to keep the UI as simple as possible, but I agree that it would be a nice feature to have.

    I'm not sure if I'll add in this feature anytime soon, but I've noted down your vote for this feature.
    I'll also make sure to fix the current conflict between Easy Pricing Tables and the tooltip plugin you've mentioned asap - I'll keep you updated.

    In the mean-time, please don't update to the new version I've just released since it will override your fix.

    Thank you so much,
    David

  5. Oizuled
    Member
    Posted 4 months ago #

    The more I think of it, the more I agree - as long as there are other plugins out there that can add the tooltip feature, there's no need to clutter up your plugin's UI.

    I do think that having the ability to use a shortcode in the pricing table can be extremely useful though. Not just for tooltips, but I'm sure there are plenty of other uses I can't even think of right now that would be useful.

    Thanks for the update!

  6. davidhme
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Oizuled,
    I've fixed this with yesterday's update. Let me know if it still doesn't work for you.

    Thanks again for bringing this to my attention.

    Thank you,
    David

  7. Oizuled
    Member
    Posted 4 months ago #

    It works perfectly now. Thanks for the update. I already rated this plugin with 5 stars - I'd give it another 5 star rating if I could!

    Thanks again for the update, and great work with the plugin.

  8. davidhme
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks for the kind words =)

Reply

You must log in to post.

About this Plugin

About this Topic