WordPress.org

Ready to get started?Download WordPress

Forums

Pricing Table
How to delete Price and Detail word in table? (9 posts)

  1. metoo55
    Member
    Posted 2 years ago #

    How to delete or change wording Price & Detail in table?

    Thanks.

    http://wordpress.org/extend/plugins/pricing-table/

  2. Shaon
    Member
    Plugin Author

    Posted 2 years ago #

    for now you need to do it editing template file directly.

  3. mmozart
    Member
    Posted 2 years ago #

    Some more details what to edit in template file, please? Thank you in advance.

  4. mmozart
    Member
    Posted 2 years ago #

    Or translate "Price" and "Details" to another language :)

  5. JessicaWicks
    Member
    Posted 1 year ago #

    Just wondering if anyone has the answer to this? I'm looking through the plugin files in the editor, but I'm not sure what I need to take out to have "Detail" show up after the details in each column.

  6. Hedley
    Member
    Posted 1 year ago #

    I think I've figured it out, sort of.

    Edit the file "metabox-feature-options.php", found in /wp-content/plugins/pricing-table/tpls

    Search for:
    <strong><?php echo __('Detail','pricing-table'); ?></strong>

    Replace with:
    <strong><?php echo __('.','pricing-table'); ?></strong>

    Note, I replaced "Detail" with an actual character, in this case a period ("."). I tried using a space, and "&nbsp;", but each resulted in the display of "0" instead of "Detail".

    The one catch to this is that it seems that changing the .php file won't change the output of existing tables or packages, even if you clear your cache. I had to delete my entire existing pricing table, change the .php file, and then re-create a new table with new packages. Deleting your packages would probably be enough, but for the other unresolved bug in this plugin in which one cannot delete packages.

    Presumably, the modification would overwritten if the plugin is ever updated.

    This plugin has interesting potential, and might be useful if I can apply enough bandaids to make it so, but as it is, I'm not sure it will be practical, so it's hard to recommend it.

  7. Gary Wright
    Member
    Posted 1 year ago #

    I had a simular issue in the sense that I didn't want the word 'Detail' to appear after the actual field content.

    I edited the template file for Price Table and replaced this:

    echo "<li><b>".$value1."</b> $key1 </li>";

    with this:

    echo "<li><b>".$value1."</b></li>";

    This will allow the content to be loaded without the trailing word 'Detail'.

  8. lukeyluke
    Member
    Posted 1 year ago #

    Im trying to change it to upfront and monthly but for some reason, it doesn't reflect on the frontend.

  9. lukeyluke
    Member
    Posted 1 year ago #

    Ok, got it...It seems that this plugin is a little temperamental anyways. Changed the following, deleted the pricing table I created and removed from trash also, recreated it and the changes showed up...This should happen as soon as you change the PHP but ???

    $feature_key = str_replace(" ","",$value1);
            if(in_array($value1,array('Upfront','Monthly','Button URL','Button Text'))) $cls = "nodrag nodrop";
    <tr class="nodrag nodrop">
          <td class="Upfront">
            <strong><?php echo __('Upfront','pricing-table'); ?></strong>
          </td>
          </tr>
          <tr class="nodrag nodrop">
          <td class="Monthly">
            <strong><?php echo __('Monthly','pricing-table'); ?></strong>
          </td>
          </tr>

    All works now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic