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

Forum Replies Created

Viewing 15 posts - 16,711 through 16,725 (of 18,420 total)
  • Author
    Posts
  • in reply to: Some products dont show in search #6587
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You can upload a .txt file or edit your first post in this thread for the details.

    Both methods are safe and only visible to me and you.

    in reply to: Incompatable with Karma theme #6586
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I’ve just tested and debugged the issue.

    In this case I’m afraid it’s the theme at fault. At closer inpection I discovered that they are using their own formatter instead of the wpautop() function. The formatter automatically runs on every content element and appends paragraphs and empty line tags where it’s needed. It’s a very handy function, but the problem is, that this custom formatter does this to shortcodes content as well. This modifies the search shortcode final layout and causes a problem with the script initialization.

    I cant do anything to the search plugin to prevent this, unless they add the search shortcode as an exception to the handler.

    But to help you, I suggest the following minor change to the theme functions.php file:

    1. Find this function: truethemes_formatter($content) – for me it was on line 328 – 358 in functions.php file in the theme folder
    2. Replace the function with this slightly modified one: http://pastebin.com/raw.php?i=qtRkUPNj

    That should put the search shortcodes to the exceptions list, and the problem should go away.

    I will contact the theme author to append this modification to the next version of the theme 🙂

    in reply to: Products from one category only #6583
    Ernest MarcinkoErnest Marcinko
    Keymaster

    As I stated in the previous answer:

    The rest is not displayed because they all match one category/term from the excluded categories list. (Advanced Options panel)

    Each of the rest matches at least one of the excluded terms, so it’s not displayed. If you remove some of the exlusions, they should start displaying.

    in reply to: Products from one category only #6581
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I found the problem!

    The override was enabled and configured to show random content always. (General Options -> Override content? option)

    I’ve also selected the product_tag taxonomy to match, as the simple tags doesn’t work with products, only posts and pages. Now it displays 1 element on the page with a matching product tag.

    The rest is not displayed because they all match one category/term from the excluded categories list. (Advanced Options panel)

    in reply to: Some products dont show in search #6579
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Can you please provide temporary FTP and Administrator access?

    I would like to check the search configuration and debug the code for the problem.

    in reply to: Products from one category only #6578
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Indeed, they are different tags. Can you please also check the log-in details? I can’t seem to be able to log-in to your back-end to check the configuration.

    in reply to: Some products dont show in search #6575
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Looks like the translation ID for italian is missing from Cesarini Sartori Rossobastardo product. If I switch to english, I can see the result.

    You can try 3 different solutions:

    1. Solution

    • Deactivate and Activate WPML again. This should generate the missing tranlsations.
    • …then Re-create the Index Engine (Delete Index -> New index: http://i.imgur.com/PoFPNGg.png )

    2. If 1. solution not working, then:

    Open wp-content/plugins/ajax-search-pro/includes/etc/indextable.class.php file and go to line 908 – 926, where you should see this:

    [php]private function langcode_post_id($post){
    global $wpdb;

    $post_type = "post_" . $post->post_type;

    $query = $wpdb->prepare("
    SELECT language_code
    FROM " . $wpdb->prefix . "icl_translations
    WHERE
    element_type = ‘%s’ AND
    element_id = %d"
    , $post_type, $post->ID);
    $query_exec = $wpdb->get_row($query);

    if ( null !== $query_exec )
    return $query_exec->language_code;

    return "";
    }[/php]

    Change it to:

    [php]private function langcode_post_id($post){
    global $wpdb;
    global $sitepress;

    $post_type = "post_" . $post->post_type;

    $query = $wpdb->prepare("
    SELECT language_code
    FROM " . $wpdb->prefix . "icl_translations
    WHERE
    element_type = ‘%s’ AND
    element_id = %d"
    , $post_type, $post->ID);
    $query_exec = $wpdb->get_row($query);

    if ( null !== $query_exec )
    return $query_exec->language_code;

    if ( is_object($sitepress) && method_exists($sitepress, ‘get_default_language’) )
    return $sitepress->get_default_language();

    return "";
    }[/php]

    Then Re-create the Index Engine (Delete Index -> New index: http://i.imgur.com/PoFPNGg.png )

    Let me know if any of this helps!

    in reply to: Related Post Pro and Ajax Search Pro Stopped Working #6573
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Your host seems to be offline. Let me know if it’s back online again.

    in reply to: Products from one category only #6572
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I see a related products widget below the post, but it’s not the Related Posts Pro. Can you please check if the correct plugin is activated?

    in reply to: Plural searches fail #6571
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Well, there is no simple solution unfortunately, because of the irregular patterns of the singularization – pluralization forms of english language. In many cases adding/removing the “s” from the word ending is not enough.

    I’ve done some research, and looks like there might be a pre-created code that covers most of these cases as well. I’ve made a few changes to integrate it with the search, and it looks like it’s working as a temporary solution.

    Try putting the code on this url to your theme’s functions.php file: http://pastebin.com/raw.php?i=m4q0VF6K

    This will go through all search words inputted and detects if in singular/plural form, then it will append (invisibly to the user) the opposing forms as well to the search phrase.

    in reply to: BFI Error message #6570
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Make sure you update to the latest plugin version (4.5.5). This was known in previous version, and should be fixed now.

    If you use an older version (pre 4.5), then I recommend following the safe update guide to make sure everything goes smoothly: https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/update_notes.html

    in reply to: More result button and woocommerce #6564
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    On the Layout Options -> Results layout panel you will have to change the Show more results.. url option to I believe ?s={phrase}&post_type=product

    http://i.imgur.com/kEmidgM.png

    That should trigger the woocommerce override and display the product results page.

    Also, you can turn off the Override the default WordPress search results page? option, as it’s not working with the woocommerce engine (woocommerce has its own override).

    in reply to: Error when creating index #6561
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    There is no way to “choose” your search page. It’s a theme feature, whereas the search.php file in your theme directory displays the results. You can change the url, if the default search redirect to a different location on the Layout Options -> Results Layout panel the Show more results URL option: http://i.imgur.com/SKJXbTo.png

    There is an option to override the results, but it might not work with multiste. (it’s hard to get cross-site posts correctly as they can have matching IDs per site) On the General Options -> Behavior panel, the Override the default WordPress search results page? option: http://i.imgur.com/L8sPa4N.png

    in reply to: Related Post Pro and Ajax Search Pro Stopped Working #6559
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I can’t seem to be able to log in with the details anymore. Can you please check them?

    The configuration seems to be correct to me, can you please also povide temporary FTP details like I asked for previously?

    I want to debug through the code to see why the images are not found.

    in reply to: Scrollbar and excluding pages #6558
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Thank you for the kind words!

    1. I remember someone had a similar issue just the other week. It was something to do with the same scrollbar script used by another plugin. If I recall correctly, the following thing helped him: Open the Compatibility Options submenu and change the Javascript source option to Minified: http://i.imgur.com/hxT2IXp.png

    Don’t forget to clear your cache after doing so, to make sure the source is indeed swapped. You can try the other options values as well, if the “Minified” does not solve it.

    2. On the Advanced Options panel if you scroll down, you can exclude posts/pages by ID or you can also exclude Page parents as well: http://i.imgur.com/UoRk71x.png

Viewing 15 posts - 16,711 through 16,725 (of 18,420 total)