[SmartCrawl Pro] Conflict with Smartcrawl and Woocommerce

Hi. I’m having an issue with smartcrawl and woocommerce. The SEO Title gets set to the name of the first product in the Shop page. I have seen a similar issue in the forum, that was supposed to be fixed in 2.2. I’m running 2.2.3. But it’s only the SEO title and I can set it on the page, in the smartcrawl configuration. Still, it would be nice to be fixed.

You can see the problem here: https://sysalgestao.staging.wpengine.com/catalogo-extensoes/

On the title tag of the browser it reads “Acessos Ext…” but it should be “Catálogo de Extensões”.

The issue resolve itself when i deactivate SmartCrawl.

  • Nithin Ramdas
    • Support Wizard

    Hi Maria,

    Thanks for enabling support access, this is an odd behaviour. I gave a quick test in my local server, but wasn’t able to replicate such a behaviour, the categories were showing in the site title.

    Could you please try adding the following rule inside wp-config.php, and see whether that makes any difference?

    define('SMARTCRAWL_FORCE_REWRITE_TITLE', 'true');

    Please make sure to place the above code, just before the line /* That’s all, stop editing! Happy blogging. */

    If the above doesn’t make any difference, could you also point out the support ticket in the forum where you saw a similar issue, so that I could have a better idea regarding what’s causing this?

    Please let us know how that goes, so that we could help get this sorted asap. Have a nice day ahead. :slight_smile:

    Best Regards,

    Nithin

  • Maria
    • WPMU DEV Initiate

    Hi Nithin.

    Just tested the configuration in a dev environment and found out the following.

    1) It has a conflict with the plugin “Genesis Connect for WooCommerce”. When I deactivate “genesis connect”, and use the configuration you passed, it works.

    2) But, without the configuration and with the “Genesis Connect” disabled, it does not work properly too.

    3) Enabling the plugin “Genesis Connect”, the configuration does not correct the issue. (And I really need this plugin active…:wink:.

    Some other issues that have similar behaviour:

    https://wpmudev.com/forums/topic/conflict-between-woocommerce-and-smartcrawl-renames-shop-page-title#wpmud-site-menu-user-sub-section

    https://wpmudev.com/forums/topic/woocommerce-shop-page-title-set-wrong-by-smartcrawl

    Thanks!

  • Ash
    • Code Norris

    Hello Maria

    I can confirm similar issue on my test site as well, so I am marking this as a conflict bug and reporting to the developer. Hopefully, very soon the issue will be fixed and an update will be released. We appreciate your patience on this.

    Have a nice day!

    Cheers,

    Ash

  • Panos
    • SLS

    Hi Maria ,

    Until this is fixed, could you please try adding the following snippet in a mu-plugin:

    function wpmudev_smartrcrawl_filter_canonical( $canonical ) {

    if ( function_exists( 'is_shop' ) && is_shop() ) {
    $canonical = get_permalink( wc_get_page_id( 'shop' ) );
    }

    return $canonical;

    }

    add_filter( 'wds_filter_canonical', 'wpmudev_smartrcrawl_filter_canonical' );

    and let us know if the issue is fixed?

    In case you are not familiar with mu-plugins you can read about them here:

    https://wpmudev.com/manuals/wpmu-manual-2/using-mu-plugins/

    In short, create the directory wp-content/mu-plugins if it doesn’t exist already. In that folder create a new php file (a file with the “.php” extension) and paste the snippet above. Make sure that you have added the opening php tag (<?php) before the snippet.

    Hope this helped!

    Kind regards!