• Resolved Morgan

    (@morganmcreynoldsgmailcom)


    Hi,

    I really love this plugin – it has helped greatly. However, I think I may be experiencing something odd and need some help.

    I use this for many little snippets, but one of which is (or was) a snippet to hide the word “optional” on optional products that are part of bundles as configured by using the WooCommerce Product Bundles. You can see the snippet that WooThemes makes available for this here:

    https://docs.woothemes.com/document/bundles/bundles-tips-tricks-and-snippets/#remove_optional_suffix

    It worked great. But time has passed and I have reconsidered how I want this appear, and now I want the “Optional” to appear. So, simply disable the snippet, right? That didn’t work. So I deleted it…still, I can’t make “Optional” reappear.

    I tried setting up an entirely new bundle (thinking somehow a few of my bundles had become corrupted or something)…still, it would not appear.

    How can I check if the code that is this now-deleted snippet is still somehow functioning in my site?

    Thanks, Morgan

    https://wordpress.org/plugins/code-snippets/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Morgan

    (@morganmcreynoldsgmailcom)

    Hi,

    To add a little more to this thread, I used a separate site to create a new snippet (to enforce a minimum order amount in WooCommerce cart and checkout). Tested it, it worked.

    Then I deactivated the snippet. The functionality from the snippet is still in place.

    Unfortunately, this is consistent with my experience above.

    Am I misunderstanding what deactivating a snippet means? I took it to mean doing the same thing as commenting out a snippet from the theme’s functions.php file (assuming, of course, i had put the snippet in the theme’s functions.php to begin with). In other words, making it as if the snippet never existed at all and completely disabling it.

    Please help. I am using this plugin to AVOID putting things in my child theme’s functions.php, but I am going to have to do that if I can’t understand why this is happening and assess risk of it happening in the future.

    Thanks, Morgan

    Thread Starter Morgan

    (@morganmcreynoldsgmailcom)

    My apologies. I need to retract my 2nd post here…when I deactivated the snippet it DID disable the functionality of that snippet. It was a testing error on my part. Again, my apologies for missing that.

    Now my first post is still an issue with functionality appearing to still be in place. I appreciate any help you might be able to provide.

    Thanks, Morgan

    Plugin Author Shea Bunge

    (@bungeshea)

    This is really strange – deactivating the snippet should stop it from running on the website. Have you you checked that you do not have the same code in the theme or a plugin, and it’s running from there instead of from a snippet? Try deactivating the Code Snippets plugin and see if the problem persists.

    Thread Starter Morgan

    (@morganmcreynoldsgmailcom)

    Thanks for the reply. My theme’s functions.php is completely empty and there are no other plugins where this would exist.

    I completely deactivated the Code Snippets plugin itself…and it still runs. I can’t figure it out. I even removed all custom Javascript to see if that was it – still there.

    There must be some kind really weird conflict (I do have a lot of plugins on my site, in fairness).

    I’m going to have to figure out a way to “unhook” what this snippet was adding. By doing CTRL+F5, I can tell it is there, then being hidden / removed.

    I’m just going to have to very cautious with this going forward.

    Plugin Author Shea Bunge

    (@bungeshea)

    This is simply a basic filter hook snippet. There is no way it could be running from the Code Snippets plugin if the plugin is uninstalled. It must be due to some other PHP file on your server.

    Plugin Author Shea Bunge

    (@bungeshea)

    I’m assuming that your issue is not related to this plugin, and so I’ll resolve this thread for now. Please feel free to reopen it if you have more information to share on this issue.

    Thread Starter Morgan

    (@morganmcreynoldsgmailcom)

    Hi Shea,

    Yes, good to close, and I appreciate the follow-up. I haven’t conclusively found the issue, but it appears to be related to another plugin and I have had a developer drop me a new version of that (although I haven’t had time to test it yet).

    Thanks again, and good plugin.

    Morgan

    Plugin Author Shea Bunge

    (@bungeshea)

    Thanks for the update! I hope you can get it working.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Deleted snippet still active on system?’ is closed to new replies.