Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kyle 2 posts 72 karma points
    Feb 15, 2018 @ 10:25
    Kyle
    0

    How to Change Product Url

    Hello everyone,

    In the backoffice, we have a range of nodes containing a range of Merchello products. Currently, each product's url is at /[slug]/. We would like to change this to something like /product-catalogue/[category]/[slug]/

    I have seen the following post about pretty much the same question: https://our.umbraco.org/projects/collaboration/merchello/merchello/74041-path-to-product-url

    I am lost at the proposed solution though. I know I need to create a custom content finder and have it execute before Merchello's, however I do not know where to begin with writing the logic within said content finder. Will I also need a custom IUrlProvider implementation to capture the found content and provide a new url for it? Or is this done a different way?

    I would greatly appreciate anyone's help, whether it be code examples, explanations, or a pointer in the right direction.

    Thank you!

  • Kyle 2 posts 72 karma points
    Feb 16, 2018 @ 09:10
    Kyle
    0

    Okay, with some digging and experimenting, I have figured out the Content Finder part. I can display the correct data when the url: /product-catalogue/[category]/[slug]/ is used. However, this has to be manually typed in.

    In the UrlProvider, after a lot of debugging, it would seem Merchello products don't call the GetUrl function. So /[slug]/ remains the go to url for the products when you click on them, and I have no idea how to change this.

    If anyone can help, I would greatly appreciate it! :)

  • Michael Nee 2 posts 71 karma points
    Feb 25, 2018 @ 19:15
    Michael Nee
    0

    I'm having the exact same issue. Content Finder works but IUrlProvider doesn't.

Please Sign in or register to post replies

Write your reply to:

Draft