Woocommerce Remove Category Base

#14173
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have escalated this issue to our dev team and we will be getting back to you shortly.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Our Development team is working on this issue and they will be releasing an update soon.

    For now, to fix it on your site please replace the can_redirect function on line 102 in seo-by-rank-math/includes/modules/woocommerce/class-product-redirection.php with the following code:

    
    private function can_redirect() {
            if (
                $this->do_filter( 'woocommerce/product_redirection', true ) &&
                ( ( Helper::get_settings( 'general.wc_remove_product_base' ) && is_product() ) ||
                ( Helper::get_settings( 'general.wc_remove_category_base' ) && is_product_category() ) )
            ) {
                return true;
            }
     
            return false;
        }
    

    That should fix the issue on your site.

    Thank you.

    • This reply was modified 5 years, 2 months ago by Pratik.

    Is this now fixed?

    Hello,

    Thank you for contacting Rank Math today.

    Yes this was patched in the latest update 🙂

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Woocommerce Remove Category Base’ is closed to new replies.