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:
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!
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).
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
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
I think it might be the name of the Root template you use for your uCommerce pages?
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!
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.
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
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).
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.