Can't get plugin to work

This topic contains 14 replies, has 2 voices, and was last updated by

 
Participant
7 years ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #3342

    Participant

    Hi I can’t get this plugin to work please could you help. I would also like to be able to search in the content of the product for example the product is a cartridge and in the content there are the printer models so when people search for their cartridge by using their printer model which they almost always do they are able to find it.
    Thanks so much in advance.
    I am really excited to get this working.
    Kind Regards
    Daren

    #3345

    Hi Daren!

    Are you sure that the printer models are indeed in the content, and they are not custom fields or categories or tags?
    I believe they might be stored as a custom field or tag or a custom taxonomy list, because the search would find it in the content for sure.
    Try to enable the search in terms option, it will help if the printers are stored as tags or terms: https://i.imgur.com/t0HK3GP.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3346

    Participant

    Hi there.
    The main issue is the plugin is not working. Is there any way to get it working. It appears (with my very limited knowledge ) that the theme is overriding your plugin. Could you help?
    Thanks so much.
    Rgds
    Daren

    #3347

    Could you please set up a page where the search is active? Just place the shortcode to any page, it doesn’t have to be visible to anyone, and send me a link to it. I will do some debugging then.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3348

    Participant

    Hi there
    here we go
    http://www.cartridgeemporium.co.za/help
    I would just like it to work in the header.
    thanks so much for the help.
    Rgds
    Daren

    #3349

    It is working for me. Here is a screenshot of it: https://i.imgur.com/xgDxLSW.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3350

    Participant

    Hi there. Just to conform. It’s working in the header?
    Thanks so much.
    Regards
    Daren

    #3351

    Oh, I see now what you mean. Unfortunately in wordpress a plugin can’t replace the original search form. That’s why there is a php shortcode provided as well, so you can replace the default wordpress search with that. It’s usually located in the themes header.php file somewhere. I can’t provide customisations and implementation services, but I can take a look and perhaps replace the search form in your header if I find it. Let me know and I will try 😉

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3352

    Participant

    Hi Ernest
    thank you so much you have been very helpful. If you could I would really appreciate it. If you could take a highlighted screen shot of the search you replace with the new one so when the theme is updated I could do it myself instead of bugging you. If that is okay with you. Only if you have time.

    Thanks in advance and many happy new years to you.

    Regards

    Daren

    #3353

    Of course. I need to go now, but I will start with your ticket tomorrow. I don’t usually do support on the weekends, but I need to fix some issues, so while I’m at it I’ll try to do yours as well. If however something comes up I will surely contact you on monday at the latest. I will make sure to take screenshots as well so you can update your theme safely.

    Happy new years to you too!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3356

    Hi!

    I’ve managed to find the piece of code which prints out the search form. I’ve modified it to show the ajax search pro with id 2.

    The modified file is: wp-content/themes/venedor/inc/functions.php on line 2074

    This line was added there:

    
    echo do_shortcode("[wpdreams_ajaxsearchpro id=2]"); return;
    

    Screenshot before: https://i.imgur.com/EWnfetl.png

    Screenshot after: https://i.imgur.com/DPPSaHJ.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3357

    Participant

    You are an absolute star!!! Very excited to see it thank you so much for all your help Ernest. Will Def give you a 5 star rating for going above and beyond. I hope it didn’t take you too long.
    Kind Regards and happy returns.

    Daren.
    Cape Town.

    #3371

    Participant

    Hi there Ernest
    I am so sorry to bother you again with this. I am trying to make the search return products with pictures first and then product tags come up second. What is happening is when I do a search for a cartridge it is picking up the tag first then much later the cartridge product title so the photo does not come up or price as it is a tag. I have tried changing priorities in the search relevance but it is not working. What should I do.
    Thanks in advance.

    Kind Regards

    Daren

    #3375

    Hi!

    This is actually a hard coded thing in the current version, but with a very quick modification you can change the order. If you open up the wp-content/plugins/ajax-search-pro/search.php file and go to lines 342-351, you should see this:

    
        } else {
           $results = array_merge(
            $alltermsresults,
            $blogresults, 
            $allbuddypresults["activityresults"],
            $allcommentsresults, 
            $allbuddypresults["groupresults"], 
            $allbuddypresults["userresults"], 
            $allpageposts
          ); 
    

    As you can see the $alltermsresults variable is merged into the results sooner than anything. Let’s move that variable to the end and the terms will appear after the contents:

    
        } else {
           $results = array_merge(
            $blogresults, 
            $allbuddypresults["activityresults"],
            $allcommentsresults, 
            $allbuddypresults["groupresults"], 
            $allbuddypresults["userresults"], 
            $allpageposts,
            $alltermsresults
          ); 
    

    Save the file. The terms should appear now after the regular results.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3376

    Participant

    Hi Ernest I found a work around. I deleted all the tags that repeat what the title said and hey presto the results for products with the images come first.
    Would be a nice addition if you added more customisation for the woocommerce results ie price in a didifferent colour with an option to add directly to cart or to wishlist. Then this plugin would be a force to be reckoned with in the woocommerce arena.
    Thanks for the help.
    Took me all day to delete all the irrelevant tags but my site is better off for it. It gives nice results.

    Kind Regards

    Daren

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.