Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
2796 Vistas

Everything I read is for older versions, which of course those steps no longer work on the new version. 

So I'll ask again hopefully someone can confirm. This is for V17 Online version.

Disable new user registration (Login ok but not registration) with eCommerce APP enabled.

If this is not an option to disable, can we atleast leave the registered account as a restricted account where they cannot make a purchase (default to a zero price, price group or another means of disabling checkout for them)?

Avatar
Descartar
Mejor respuesta

create a CSS file (hide_signup.css):

a[href*="/web/signup"] {

    display: none !important;

}

call in the ___manifest__.py

'assets': {

'web.assets_frontend': [

'your_module/static/src/css/hide_signup.css',

],

}

hopefully this advice works


Avatar
Descartar
Mejor respuesta

Hi Rajesh,

It works, but in Login page, is still a 'don't have an account' button, hohowever after redirect no signup forum (disable), but is there some way to remove 'don't have an account' button? o just hide it

Avatar
Descartar
Autor Mejor respuesta

Thank you Rajesh!

This work around should be a good. I'm not to worried about users trying to find ways to get to the signup page. And I can register new accounts manually.

But I have 1 more question. These changes to the html, will the be overridden when updates are done to the version I'm on?

Avatar
Descartar
Mejor respuesta

Hey Gabriel, 

Since Odoo Online doesn’t allow direct customization, you need to rely on settings and potentially some technical workarounds:

1. Disable Guest Checkout from website setting (which I guess you already know after reading lot of frustrating answers)

2. Hide the Signup Option ( below way I think can be workaround)

technical > view modification  (I commented that signup-page view)


3. Hide the Sign up redirection on the login page as well . again its view html moditication

these above step - again are not proper way but workaround.

Best way is to take your odoo to the Odoo.sh - to have more customization capabilities. which is obviously needed as Odoo ecommerce is not - ready made for the B2B wholesale. 


On top of this , if further need to restrict the existing user - it can be done with the combination of defiing separate access rights and assigin it to all the ecomerce users and reducing the User interface with the help of View html modification can be achieved.

I hope I point you to some workable direction.

Thanks,

Rajesh 
ERP Consultant | Wholesale | Manufacturing| Integrations 
Silent Infotech Inc ( https://silentinfotech.com )

Avatar
Descartar

Hi Rajesh,

It works, but in Login page, is still a 'don't have an account' button, hohowever after redirect no signup forum (disable), but is there some way to remove 'don't have an account' button? o just hide it

Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 24
1613
0
may 24
3134
2
mar 24
1831
1
feb 24
1513
2
mar 25
2336