• Resolved kkj

    (@kkj)


    I noticed the new brands option for products. this is great, however, my shop has product categories based on the brands. So I need to redirect the brands archive pages to the respective product category pages. How could I do this? I know I can set them all to 404 with

    add_action(‘template_redirect’, function () {
    if ( is_tax(‘product_brand’ ) {
    wp_redirect( home_url( ‘/404’ ) );
    exit;
    }
    });

    but I still want the links for the brands, just not to their archives but to their respective product category.

Viewing 1 replies (of 1 total)
  • Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there,

    Thanks for contacting us here at WooCommerce.com!

    I understand that you would like to redirect the brand archive pages to the corresponding product category pages.

    You will need a custom code to achieve this. While we don’t generally provide assistance with code, that doesn’t mean someone from the community who has developer expertise can’t help you! You’re free to ask for help, and another community member is free to assist you.

    I can also recommend the Woo Developer Resources Portal for resources on developing for WooCommerce.com.

    You can also visit the WooCommerce Facebook group or the #developers channel of the Woo Community Slack. We’re lucky to have a great community of open-source developers for Woo, and many of our developers hang out there, as well.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.