Developer forum

Forum » Ecommerce - Standard features » Removing product catalog name from URL

Removing product catalog name from URL

Grant Menzies
Reply

We would like to remove the product catalog name from the URL.

E.g. Change this: http://www.prendo.se/sv-se/produkter/profilprodukter/pennor/kulspetspennor/kulspetspenna-eventi-velvet-hearts
to this: http://www.prendo.se/sv-se/profilprodukter/pennor/kulspetspennor/kulspetspenna-eventi-velvet-hearts

The "produkter" part is the product catalog name.

How can this be acheived. I see it has been done on one of Dynamicwebs cases: http://www.cookandco.nl/tafelen/karaffen/royal-vkb-french-karaf-met-4-glazen


Replies

 
Adrian Ursu
Reply

Hi Grant,

We could only accomplished it by creating Pages for each top level category.

The URL Provider needs a Page in the definition. If you don't have PageID, you cannot navigate.

If you have a lot of top level categories, it's gonna be a lot of work involved.

See if it worths the effort

Adrian

 
Grant Menzies
Reply

Hi Adrian,

Can you explain how a little more how this would work with pages? We have at present only 4 top levels.

 

Thanks!

 
Adrian Ursu
Reply

Hi Grant,

I assume you have right now a Page called "produkter" with setting for ecom navigation and a paragraph with a ProductCatalog module.

And in the eCommerce section you have a shop that has 4 top level categories, each of those categories having their own subcategories.

The setup will equire you to have the second level categories in the ecommerce section, moved to top lelev (get rid of the top level categories from ecommerce because they will be replaced with Pages). 

Now, in the content section, duplicate the existing "produkter" page in order to create a page for each Top Level category.

Change the settings in the ecom Navigation to onlyinclude the corresponsing subcategories.

Change the setting on the product catalog to include only the corresponding subcategories.

That's it

It's a bit harder to maintain in case you have a lot of dynamics of the categories and subcategories because you will have to manually update the ecom navigation and product catalog everytime oyou have changes.

But so far this was the only solution I could find to get rid of the page name from the friendly URL.

Please let me know if you need other clarifications.

Adrian

 

 
Grant Menzies
Reply

Ok, I think I'm with you now. Thanks for the explanation! :)
I don't see this as a viable solution as we have a custom solution that is synked with our business software. There are also alot of second level groups and we may be moving around from time to time.

Is there no way to use IIS and the URL Rewrite module?

 
Adrian Ursu
Reply

I could not manage to make it work with IIS URL Rewrite. But I am no expert :)

My feeling is that somehow you need to tell the system the page identification.

But if you find a friendlier solution for this, please share it :)

Thanks,

Adrian

 
Grant Menzies
Reply

Ok Adrian!

Thanks for your input and time!

I may do some testing with your proposed solution although I feel there must be a "simpler" method ...

 
Nicolai Høeg Pedersen
Reply

There are no simple way at this time. Best option is to leave it in - it does not harm anyone, and if anyone says it do, make them PROVE it!

 
Grant Menzies
Reply

Hi Nicolai,

Thanks for your reply!

Yes, I am of the same opinion that it does no harm. We are however after the shortest URLs possible so wanted to see if there was a way to achieve this :)

 
Grant Menzies
Reply

So the question here is, how can this be acheived? You say that there is no simple way at this time, so what is the hard way? :)

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Write your own URL handling system...

This issue has been discussed many times in the forums, and it requires a total new way of handling URLs before this can be done.

BR Nicolai

Votes for this answer: 1
 
Grant Menzies
Reply

Thanks for your reply!

 

You must be logged in to post in the forum