Hello, I have a question about how to change the endpoint /shop to something else, for example /contacts? I mean, I just want to change the endpoint because I don't want /shop to be displayed; I prefer something else since it doesn't fit the content of the website. Im using database on odoo.com (v17.0) with licence, i dont have any access to code.
Thanks for help!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
You can create a rewrite rule that redirects users to a 404 page when attempting to access the shop module. Odoo enables the addition of rewrite rules, but first, you must activate developer mode. To do so, navigate to "Settings," scroll to the bottom of the page, and click on "Activate the developer mode.
Now you can go to the "Website" module and then "Configuration" > "Redirects".
You can configure a rewrite rule in Odoo that disables the shop module from the website, click on "Create" to set up a new rewrite rule. In the form, provide a name for the rule (e.g., "Disable Shop Module") and set the "URL From" field to the path of the shop module, such as "/shop". Set the "Action" field to "404 Not Found" to redirect users attempting to access the shop module to a 404 page. Please note that this will only redirect the shop page and not the individual sub pages.
For more information: A comprehensive guide to running multiple websites in Odoo
I hope this helps!
Oh, I think I described it a bit wrong. I would like to use products and the store as a place to display organization contacts, but only for logged-in users. The store provides nice options for sorting, etc. An example of my use case: I add companies affiliated with the organization as products. People belonging to the organization can log in and see all other companies belonging to the organization with basic information and photos. When they click on a "product," they will get information like email address, etc. I wanted to use the store because then it's easy to add new members of the organization and sort them nicely by categories or aliases I assign to them.
In that case you could try to change the redirect from a 404 to a 308 and set "URL From" to /shop and the "URL To" to /contacts.
Again note that this will only redirect the shop page and not the individual sub pages (e.g., /shop/product-name)
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
jun. 24
|
2698 | ||
|
0
aug. 25
|
77 | ||
My account will expire.
Opgelost
|
|
2
jul. 25
|
636 | |
|
2
jun. 25
|
1188 | ||
|
1
mei 25
|
1155 |