Comments 4Orlando started the conversationAugust 6, 2021 at 10:50pmHi! I'm really enjoying your plugin, I'm still learning, very complex ;) Can I redirect to a custom page or with the Elementor edit this endpoint? I would like to explain better, for me this message seems very Cold.:D Is it also possible to edit this text?Ahhh it should be different for those who have successfully registered from those who still need to be approved. Thank you! 2,218WebWizards repliedAugust 7, 2021 at 8:33pmHi Orlando,Glad you're enjoying the plugin,You can redirect to a custom page after registration by using a PHP code snippet such as this one: add_filter( 'woocommerce_registration_redirect', 'fd_registration_redirect', 10, 1 ); function fd_registration_redirect($url) { return site_url().'/yourcustompage/?redir=1'; }To add a snippet: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/You can edit that text by translating it (Even if it's the same language, for example English -> English, you can create a translation and use that to edit text). You can do it with a plugin like Loco Translate: https://woocommerce-b2b-plugin.com/docs/how-to-translate-b2bking-to-any-language-localization/#4-toc-titleBy default:- If approval is needed, a message is shown- If approval is not needed, the user is directly logged in Kind regards,Stefan1 Like 4Orlando repliedAugust 8, 2021 at 5:43amVery good! In this code to redirect to different pages depending on approval? If you do not need approval, send to /shop If you need approval, send to /coming-soon About adding this snippet, can I put directly on functions.php? I'm wearing a son theme to avoid using these pluginsThank you! 2,218WebWizards repliedAugust 8, 2021 at 10:33amYes, you can add the snippet directly to functions.phpIf you want to redirect differently depending on approval, try this snippet: add_filter( 'woocommerce_registration_redirect', 'fd_registration_redirect', 10, 1 ); function fd_registration_redirect($url) { $approved = get_user_meta(get_current_user_id(),'b2bking_account_approved', true); if ($approved === 'no' || !is_user_logged_in()){ return site_url().'/coming-soon/?redir=1'; } else { return site_url().'/shop/?redir=1'; } } Tested and it works.Approval -> ShopNo Approval -> Coming Soon1 Like 4Orlando repliedAugust 29, 2021 at 8:21pmPerfect!1 Like Sign in to reply ...
Hi! I'm really enjoying your plugin, I'm still learning, very complex ;)
Can I redirect to a custom page or with the Elementor edit this endpoint?
I would like to explain better, for me this message seems very Cold.
:D
Is it also possible to edit this text?
Ahhh it should be different for those who have successfully registered from those who still need to be approved.
Thank you!
Hi Orlando,
Glad you're enjoying the plugin,
You can redirect to a custom page after registration by using a PHP code snippet such as this one:
To add a snippet: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/
You can edit that text by translating it (Even if it's the same language, for example English -> English, you can create a translation and use that to edit text). You can do it with a plugin like Loco Translate: https://woocommerce-b2b-plugin.com/docs/how-to-translate-b2bking-to-any-language-localization/#4-toc-title
By default:
- If approval is needed, a message is shown
- If approval is not needed, the user is directly logged in
Kind regards,
Stefan
Very good!
In this code to redirect to different pages depending on approval?
If you do not need approval, send to /shop
If you need approval, send to /coming-soon
About adding this snippet, can I put directly on functions.php? I'm wearing a son theme to avoid using these plugins
Thank you!
Yes, you can add the snippet directly to functions.php
If you want to redirect differently depending on approval, try this snippet:
Tested and it works.
Approval -> Shop
No Approval -> Coming Soon
Perfect!