Support » Plugin: WooCommerce » Redirecting taxonomy link

  • Resolved glostservice1

    (@glostservice1)


    Hi there,

    I’ve created a number of taxonomies which I’ve applied to woocommerce product table, such as brands, part number, Stock location, etc. I’m using a plugin called “WCK custom fields”.

    If you click on one of these taxonomies you get redirected to the archive page.

    I’m trying to understand how to:

    1) redirect all these taxonomies to the single product page of the respective product. Or, alternatively, completely remove the redirection, so when you click on it nothing happens.

    2) how to redirect the taxonomy to google search results. Example, let’s say I click on the product part number, I have to be redirected to the google search results of that part number.

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Mirko P.

    (@rainfallnixfig)

    Hi @glostservice1,

    It sounds like what you want to achieve would require custom work and it’s too advanced for what we can support on this specific forum.

    I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out.

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

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

    Cheers.

    Thread Starter glostservice1

    (@glostservice1)

    Thank you for the answer.

    Do you know how to rewrite a slug for a custom taxonomy?

    Thread Starter glostservice1

    (@glostservice1)

    Quick update.

    I think I’m on the way to a solution but I need a bit of help here.

    When I rewrite the slug on the custom taxonomy plugin for one of the taxonomies, I get a new URL when I click on this latter in woocommerce, which is exactly what I need.

    However, I need to remove my domain and the slush.

    So this is what I get for the “part number” taxonomy, where the part number is nx-vndaa-002:

    https://glostservice.com/search?q=/nx-vndaa-002/

    This is what I need to get:

    https://www.google.com/search?q=nx-vndaa-002/

    So all I need to do is remove my domain and the / and form the first URL I can get the second one.

    Does anybody know how to do it?

    Plugin Support André woo-hc

    (@chiape)

    Hi @glostservice1

    This kind of customization is a bit out of scope for us, but I believe that you can try to use a function like str_replace() from PHP.

    If you’re not comfortable with coding, I’d give Mirko’s suggestion a try! Asking on the Facebook Group or Slack should help!

    My very best,

    Thread Starter glostservice1

    (@glostservice1)

    thank you for your inputs. I’ll try to ask this question of those communities

    Plugin Support André woo-hc

    (@chiape)

    @glostservice1!

    Sounds like a plan! Feel free to create a new topic if you need anything else!

    All the best! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirecting taxonomy link’ is closed to new replies.