Shop Categories



Home Forums Agama Pro SearchBox

Topic Resolution: Resolved
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
  • #20533

    perfect thanks!

    Nick Simpson

    To get the Agama Pro magnifying glass to use WooCommerce Product Search my amazing developer implemented a temporary fix, which will be overridden when the Agama Pro plugin updates.

    Here’s the fix:

    Open up class-agama-helper.php, find the function get_search_box function () and within the form it creates add:

    $output .= ‘<input type=”hidden” name=”post_type” value=”product”>’;

    Zex, any chance of passing this info to your developers? Be great if this code could be activated within your plugin settings.


    Hello @Nick!

    Thank you for your feedback!

    As I wrote to you earlier we will implement this fix in some of the future theme updates.
    Anyway, there are always many choices to solve the problem, so, you can use whatever works for you.

    I suggest you use child-theme for theme modifications. Using a child theme lets you upgrade the parent theme without affecting the customizations you’ve made to your site.

    That’s why we suggest using additional plugins instead of modifying the theme (to avoid code override).
    Not everyone has amazing developers beside them 😉

    PS. For those who want to create a child theme from an existing theme without losing the configuration, I suggest using a CHild Theme Configurator plugin.
    Please check the following post:


    • This reply was modified 4 years, 5 months ago by Zex.
    Nick Simpson

    Hi Zex

    Looking at the edit I provided are you able to please give me brief instructions on how to make the edit within a child theme instead?




    Hello Nick!
    First, obviously, you need to create a Child theme.

    Please check the following post:

    Also,here is a well-explained video guide:
    How To Create A Child Theme For WordPress

    After you created a child theme, you need to copy the class-agama-helper.php file into your Framework folder in your Child theme (Path should be: agama-pro-child/Framework/)

    To do that, please follow the next steps:

    1.Install and activate the “File Manager” plugin (Dashboard->Plugins->Add new)
    2. Using the File Manager plugin, Create the “framework” folder in your agama-pro-child folder then Copy your modified class-agama-helper file in it.

    Here is the video guide I made for you:
    1. Creating a Child theme
    2. Copying the file.

    If you followed the above steps, your modified file is safe now.


Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.