Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Dec 17, 2012 @ 15:37
    Marc Love (uSkinned.net)
    0

    Category URL

    I am using the following code to get the URLs for my product categories:

    CatalogLibrary.GetNiceUrlForCategory(category.Category)

    The URL output is:

    /ucommerce/

    In the razor demo shop the URL is:

    /demo-shop/

    Where is this coming form as I want my URL to change to:

    /shop/

    Cheers,

    Marc

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Dec 19, 2012 @ 11:19
    Marc Love (uSkinned.net)
    0

    Does anyone have any ideas on this one. I am sure this is something really straight forward that I am missing however I can not see anywhere that this can be configured.

    The razor demo store has the following URL for a category page:

    http://ucommerce-razor.local/demo-store/shoes/c-24/c-72

    Where is demo-store in the URL coming from?

    Cheers,

    Marc

  • Thomas 13 posts 43 karma points
    Dec 19, 2012 @ 11:49
    Thomas
    0

    I think it might be the name of the Root template you use for your uCommerce pages?

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Dec 19, 2012 @ 12:30
    Marc Love (uSkinned.net)
    0

    I changed the document type name for ucommerce to shop, this was previously ucommerce but I am stll getting the ucommerce in the auto generated path. I think in XSLT this name comes from @landing. Cheers for your suggestion Thomas but still no joy!

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Dec 19, 2012 @ 13:47
    David Brendel
    1

    Maybe you can check how your product catalog and your categorys are named in ucommerce.

    I think the url is build with their names. So renaming the product catalog and/or the categorys will do it.

    So example url from a site that i worked on is: /hardware/anything/ where "anything" is the current category and hardware the product catalog.

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Dec 19, 2012 @ 14:19
    Marc Love (uSkinned.net)
    1

    My catalogue didnt have a display name for 'English' language. it must default to 'ucommerce' if nothing is specified.

    Thanks for your help.

    Cheers,

    Marc

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Dec 21, 2012 @ 12:43
    Søren Spelling Lund
    1

    If you want a different template to handle the URL you can change the URL rewriting rules in /config/UrlRewriting.config. You'll find the default catalog rewrites rules there.

    If you want completely different URLs you can override the IUrlService component of uCommerce and take over generating URLs entirely. You register the new service in /umbraco/uCommerce/configuration/Custom.config (example of what the default UrlService registration looks like is in Core.config in the same folder).

Please Sign in or register to post replies

Write your reply to:

Draft