Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › Wp Affiliate Platform and WooCommerce – the login is not shared
- This topic has 5 replies, 2 voices, and was last updated 11 years, 5 months ago by admin.
-
AuthorPosts
-
April 11, 2013 at 9:07 pm #8927sergeliatkoMember
Hi Guys,
using the latest WP Affiliate and WooCommerce plugins,
the setting to login users to affiliate account when user logs in is checked. It works fine when I use wp-login.php form , but on the front end form generated by WooCommerce the login is not shared,
so the client is logging in to the site and their client account, but when going to the affiliates page, they need to login once again.
What do I need to add to the WooCommerce login form (/process) in order to make it happen as intended?
site : [http://woocommerce-thesis-integration.com]
clients home : [http://woocommerce-thesis-integration.com/clients-home]
affiliates home : [http://woocommerce-thesis-integration.com/affiliates-home] (set up as a shorcode on a static page, default setting for Affiliate Login URL )
thank you for any help or at least a pointer,
serge
(btw the links on search results does not work for me)
April 12, 2013 at 5:14 am #55083adminKeymasterHi Serge, We use the following WordPress hook to listen for WordPress user login operation:
http://codex.wordpress.org/Plugin_API/Action_Reference/wp_login
Please confirm that woocommerce is firing the above mentioned action hook when a user is logging in via their login system.
May 30, 2013 at 4:52 pm #55084sergeliatkoMemberHi admin,
thanks for your reply,
woocommerce is using wp_signon() function which fires that wp_login hook…
any further paths?
May 30, 2013 at 5:01 pm #55085sergeliatkoMemberBTW just found that when you login through wp affiliate. See
[http://woocommerce-thesis-integration.com/affiliates-home/]
it does not log you into neither wordpress nor woocommerce …
I thought of one feature that might be helpful for it : an option in the wp affiliate platform settings to force use of default wp-login page , thus if checked, the login link will point to login url and pass redirect_to argument of a current page.
It will be much easier to customize default wp login page that try to keep up with all plugins possibly dealing with login process (thus if plugin fails to handle default wp login process – just dump that plugin )
May 30, 2013 at 5:15 pm #55086sergeliatkoMemberI just browsed your core code and do not really see any possible way (action_hook / filter) to inject my codes into your login process. Neither I have found the way to fire wp_signon() function into your login processing. Am I missing something? Is default wp_signon function is fired when user logs in using your login form?
May 31, 2013 at 1:14 am #55087adminKeymasterI like the idea of adding an option so that the login and registration of affiliates is handled via the standard WordPress login and registration process. I will add this option and give you an update when I am done.
-
AuthorPosts
- You must be logged in to reply to this topic.