Shop Categories

X

SearchBox

Home Forums Agama Pro SearchBox

Topic Resolution: Resolved
  • This topic has 19 replies, 3 voices, and was last updated 3 years ago by Zex.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #20533
    biotxakur
    Participant

    perfect thanks!

    #20543
    Nick Simpson
    Participant

    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.

    #20576
    Zex
    Moderator

    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: https://theme-vision.com/forums/topic/traslate-social-share-session/#post-7139

    Regards

    • This reply was modified 3 years ago by Zex.
    #20613
    Nick Simpson
    Participant

    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?

    Thanks

    Nick

    #20633
    Zex
    Moderator

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

    Please check the following post:
    https://theme-vision.com/forums/topic/traslate-social-share-session/#post-7139

    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)
    https://prnt.sc/px9a5t
    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.

    Regards

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