This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Settings #22236
    kondorkondor
    Participant

    yeah.. was trying to avoid “important”, but that will do…
    thanks!

    in reply to: Settings #22232
    kondorkondor
    Participant

    You cannot access this content.

    in reply to: Settings #22218
    kondorkondor
    Participant

    just another small question:

    vertical results have a small 20px (approx.) margin from search field and it is controlled by js.

    can you point me out to the correct file? i want to reduce that margin to 0 (search results start right after the search field)

    thanks

    in reply to: Settings #22197
    kondorkondor
    Participant

    Done! million thanks my friend 🙂

    ** I gave a review too 🙂

    in reply to: Settings #22137
    kondorkondor
    Participant

    Hi Ernest

    ok, i finally decided to change the query into searching only in specific custom field instead of excluding all the others… works great!

    1) is it possible to count amount of products in product category result and display it? (for example: result = product category “tables” which has 40 products in it) – so can i get the result to show “Tables (40 items in total)” as a result?

    2) i would like to rate your plugin and support since it is truly great, so i would appreciate if you can paste a link where i can rate it 🙂

    thanks!

    in reply to: Settings #22056
    kondorkondor
    Participant

    hi ernest,

    thanks, it works great.

    i found out that some other fields are being searched (such as “thumbnail_id”) and if i type a phrase that is included in the id of the thumbnail, it is returned too… which is not ok.

    i tried your code by changing it to: …….tm.meta_key NOT LIKE (‘cat_seo_text’,’thumbnail_id’) AND ” . $pre_fiel……… – but after that i get 0 results…

    is my query modification wrong?

    i also have the following code in functions (so it will return the correct image for result:
    add_filter( “asp_results”, “asp_acf_cf_image”, 1, 1 );

    function asp_acf_cf_image( $results ) {
    // Change this to the ACF custom field name
    $image_field = ‘thumbnail_id’;

    foreach ( $results as $k => &$r ) {
    if ( empty($r->image) && $r->content_type == ‘term’ ) {
    $imgID = get_field($image_field, $r->taxonomy . ‘_’.$r->id);
    $img = wp_get_attachment_url( $imgID );
    // $img = $imgArray[‘url’];
    if ( !empty($img) )
    $r->image = str_replace(“‘”, “%27”, $img);
    }
    }
    return $results;
    }

    but even after removing it from functions, still 0 results…

    any idea what is wrong here / or maybe how can i safely exclude other terms meta fields that might return wrong results (same as ‘cat_seo_text’ you excluded)?

    thanks!

    in reply to: Settings #21981
    kondorkondor
    Participant

    Hi Ernest,

    ok – so lets handle only first issue only (the 2nd issue i will follow up and add it manually)

    thanks 🙂

    in reply to: Settings #21964
    kondorkondor
    Participant

    HI Ernest,

    which one requires major mods? 1 or 2?

    in case you will point me out to these mods – wont i be able to re apply them after update?

    in reply to: Settings #21956
    kondorkondor
    Participant

    Hi Ernest

    ok, i get your point.

    I implemented the code you suggested for categories hierarchy – seems to work ok.

    1) i found why i am getting results that shouldn’t appear – it is related to a custom term meta that is called ‘cat_seo_text’ which include in its text the search phrase and that is why it showed up even though this category did not have a tag.

    how can i exclude the term ‘cat_seo_text’ from search?

    2) due to comma and multiple keywords issues with additional tags (your plugin built in tags) i took your advice about changing custom fields for tags into simple text field.

    only problem now is that for each tag that i add – it adds +1 to the custom field name :

    i set up a tab containing the repeater fields for tags and it is called “product_search_help_tags”
    each repeater field is called “product_tag_field” – but when i search for ” drag here custom fields you want to use!”, the repeater fields is in array so it adds up 0,1,2,3 (+1 to each new repeater/tag that i add).

    this forces me to keep track each time of the post with biggest amount of tags and add it…

    pls see attached screenshot.

    is there a way to globally search EACH product_tag_field without the need of rechecking how many tags the website owner added?

    THANK YOU VERY MUCH !!! 🙂

    in reply to: Settings #21927
    kondorkondor
    Participant

    Hi Ernest

    ok, i got the idea of what you suggested and applied it.

    1) for products i am using your additional tags

    2) for product categories i changed custom field to repeater text filed.

    exact words are searched now which is great!

    only problems i have now are:

    1) got products >> after adding tags and saving, the commas between each tag disappear and you cant know if it is a single word tag or 2 or 3 word tag (for example – if you insert the following tags: hello, john >> after saving you wont be able to know if the the tag is “hello john”, or if it is “hello”and “john”).

    2) product categories:
    a) still returning results that shouldnt return (seems like it is still searching in title too even after i removed the code you suggested)
    b) i need product categories results (if any) before product results + if it is main category (parent) – it should be above child)
    for example >> cat “fruits” is parent of cat” banana”

    both have tag “fruit”

    i need “fruits” (parent) to show before “banana”) – currently i believe banana will show before fruits due to ABC ordering?

    thanks!

    in reply to: Settings #21907
    kondorkondor
    Participant

    Hi Ernest,

    thanks again – your support is truly amazing, so a good word must be said 🙂

    I see what you mean, question is if it can also be enabled for product categories (the additional search tags) ?
    (if yes – than i guess it is same principle i did with custom field – only better, since it is based / part of your plugin, so it will work perfectly)

    i will also need to know which search settings need to be applied so it will search ONLY in your additional search tags and return only 100% exact matches.

    if possible, can you pls guide how to control search order (results from categories first if any, and products after)

    again – thanks!

    in reply to: Settings #21883
    kondorkondor
    Participant

    You cannot access this content.

    in reply to: Settings #21859
    kondorkondor
    Participant

    You cannot access this content.

    in reply to: Settings #21839
    kondorkondor
    Participant

    some are singular key words (“desk”), and some are multiple keywords with space (“black desk”)

    in reply to: Settings #21831
    kondorkondor
    Participant

    Hi Ernest

    thanks for your reply.

    the settings you suggested returned no results at all, no matter what I type… 🙁

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