WordPress.org

Ready to get started?Download WordPress

Forums

Pricing Table
Can't delete Feature (23 posts)

  1. exgreen7
    Member
    Posted 1 year ago #

    If I need to change the wording or delete a feature, sometimes it will not let me.
    I've had to do a whole new price table. What causes this delete feature bug, and is there a workaround?

    I have a price table with 4 columns and 8 Features. Don't want to have to keep redoing it.

    Thanks,
    Ed

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

  2. estuffs
    Member
    Posted 1 year ago #

    Same issue here, any idea anyone?

  3. exgreen7
    Member
    Posted 1 year ago #

    I never found an answer, or got any help. I ended up having to redo the whole table.

  4. Shaon
    Member
    Plugin Author

    Posted 1 year ago #

    It could be a js conflict with your other plugin you using there. Try deactivating other plugins

  5. exgreen7
    Member
    Posted 1 year ago #

    Thanks for replying.
    I am using it on a fresh site. The only plugins I have are askimet and hello dolly(deactivated).

  6. Shaon
    Member
    Plugin Author

    Posted 1 year ago #

    which theme are you using there

  7. exgreen7
    Member
    Posted 1 year ago #

    Figero
    By InkThemes

  8. estuffs
    Member
    Posted 1 year ago #

    Same here, any idea? I can't delete the feature and I really don't want to redo the whole matrix.

    Also, how do you get rid of the circle for the grey theme?

  9. Marcus03
    Member
    Posted 1 year ago #

    same problem to, I have to publish, then come out the table, then back into the table, then delete. Least try this before deleting whole table. ouch!

  10. leadology
    Member
    Posted 1 year ago #

    Same problem here.

  11. Ramzii
    Member
    Posted 1 year ago #

    Same here, no deletion possible whatsoever.. too bad. Had high hopes here.

  12. Reynock
    Member
    Posted 1 year ago #

    I can not delete package or feature. Could you please fix this issue?

  13. davidollerhead
    Member
    Posted 1 year ago #

    I've noticed this too, I believe it's to do with certain characters not being escaped in the ajax .post on deleting a feature.

    An ampersand in the feature title (&) will cause this for example. In firebug this causes an error with...

    Error: Syntax error, unrecognized expression: .FraudProtection&Security
    http://..../wp-admin/load-scripts.php?c=0&load%5B%5D=jquery,utils&ver=3.5.1
    Line 2

    @estuffs - if you want the remove the circle in the grey theme, just edit the css creating that. It's in the grey template file... pricing-table/tpls/price_table-gray.php - you can edit this within the wordpress gui.

  14. davidollerhead
    Member
    Posted 1 year ago #

    OK, pretty sure I've fixed this. Problem was with certain un-escaped chracters.

    In file
    metabox-feature-options.php

    You need to replace all instances of
    str_replace(" ","",$str);
    with
    preg_replace("/[^A-Za-z0-9]/","",$str);

    This is a bit stricter and strips out other characters which could cause jQuery some trouble.

    You of course have to 'Update' the table each time as this performs the save!

  15. Reynock
    Member
    Posted 1 year ago #

    I have something like this str_replace(" ","",$value);
    I replaced them with preg_replace("/[^A-Za-z0-9]/","",$str);
    and still cant delete anything.

  16. Shaon
    Member
    Plugin Author

    Posted 1 year ago #

    @Reynock, if possible, send a temporary wp-admin login info to contact@wpeden.com to check your issue.

  17. davidollerhead
    Member
    Posted 1 year ago #

    Just to clarify....

    In each instance of replacing..

    str_replace(" ","",$str);
    with
    preg_replace("/[^A-Za-z0-9]/","",$str);

    You need to make sure the $str is the same as the one replacing, there's no blanket find and replace you can do for the file as the $var the string replacement is working on varies. Make sure the preg replace applies to the same $var as the str_replace was.

  18. mbrsolution
    Member
    Posted 1 year ago #

    Hello all, I am new to this plugin.

    I read many of the comments here and in other post. I performed a test, I added packages and features and saved them. I viewed them on the front end using the green template and I was happy with the results. Then I did some testing by deleting packages and features, saved them and viewed them on the front end. All works well I can't find any issues. The theme that I am using is Suffusion. WordPress version is 3.5.1. And this is my test site where I have many plugins that I constantly test for revisions, updates and compatibilities.

    So if some of you are having problems deleting features, may I suggest that you test a different theme like the default theme that you get when you install WordPress 3.5.1 and if that does not work disable all the plugins and run another test. I suspect that you might have a compatibility problem with plugins or themes.

    I hope this helps anyone here.

    Kind regards

  19. seanyp200012
    Member
    Posted 1 year ago #

    @davidollerhead I appreciate your input, it helped me a lot. of course I had to ensure that the variable in the line matches what i am replacing.

    preg_replace("/[^A-Za-z0-9]/","",$<replace_variable_name>);

  20. koulpeeplz
    Member
    Posted 1 year ago #

    @Davidollerhead

    Thanks for your help with this issue. I made the change you suggested and it is working properly now! I really appreciate it.

    For others, I found just 3 instances of the code that needed to be changed. The "find and replace" feature doesn't work as someone else stated.

    You just have to manually search for str_replace(" ","", and then make the change Dave suggested.

  21. rpvp
    Member
    Posted 1 year ago #

    Can someone help me out -- I'm not quite understanding this hack. I see 3 instances of str_replace @ lines 76, 90 an 96.

    So like 76, for example is:
    str_replace(" ","",$value);
    I replaced it with:
    preg_replace("/[^A-Za-z0-9]/","",$str);

    And line 90 is:
    str_replace(" ","",$value1);
    and I replaced with:
    preg_replace("/[^A-Za-z0-9]/","",$str1);

    Line 96 is:
    str_replace(" ","",$value);
    And I replaced it with:
    preg_replace("/[^A-Za-z0-9]/","",$str);

    What am I doing wrong? Can someone show me in more detail?

  22. rpvp
    Member
    Posted 1 year ago #

    got it. The $str in the replacement code is not $str as the first code snippet appeared to me. Just leave the values as they are and change the rest.

  23. SilhouetteBS
    Member
    Posted 11 months ago #

    I have a Feature with '&' in it and cannot delete it. How can I modify the given fix above to accommodate for the '&'?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic