• Resolved mspreer

    (@mspreer)


    Hi there,

    first of all I want to say thank you for this awesome product. It is really great!

    It seems like I found one little bug so far: When I start searching for something, that can not be found (people might do that) the plugin will suggest a product (which is good), but it says the product would be free. The product actually is not free, so I do not understand where it gets the info from. When the user then clicks on the product the regular price will show (of course). But that could be misleading …

    When I am using for the very same product the price provided is the right one. So this just happens, when the plugin suggests a product while the search does not produce any results.

    I hope I made myself clear, my English is not necessarily the best.

    Thank you and blessings!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    do not think the plugin suggests a random product when characters for “autosuggest” are not matched, is actually good.

    It happens when one makes searches without any matches on “Categories” or “Tags” pages (on all other pages is ok), the plugin returns the first product that is listed from the page. Because of the search is not done on that particular product, price variable is not populated and one gets “free” on price.

    It should be fixed.

    Thread Starter mspreer

    (@mspreer)

    Dear rikofert,

    thank you for answering! Not sure if I got you completely right though.

    Yes, it happens when one makes a search without matches and I can see, that it returns the first product on the page (in my case it is the general “shop” page).

    But how should it be fixed?

    Hi,

    sorry for the delayed response, hope plugin’s maintainer is going to fix this issue, meanwhile you can change line 38 in “includes/class-result-details.php” with:

    if ( isset( $_REQUEST[ 'post_id' ] ) && is_numeric( $_REQUEST[ 'post_id' ] ) && !empty( $_REQUEST[ 'post_id' ] ) ) {

    This way you will not have results that do not match your users’ research.

    Please try the change in your test environment before.
    Regards.

    Thread Starter mspreer

    (@mspreer)

    Thank you rikofert, this works…

    Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    I’m aware of this bug. Thanks rikofert for help. This bug will be fixed in the next plugin release.

    Best
    Damian

    Thread Starter mspreer

    (@mspreer)

    Hi Damian,

    that would be great. Just out of curiosity: do you have a rough idea when that might j happen?

    Best regards
    Martin

    Plugin Author Damian Góra

    (@damian-gora)

    In a few days.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Suggested Product – wrong Price (free)’ is closed to new replies.