-
I would like to check with you is it possible to intergrade woocommerce into UserPro, like showing previous products purchase on UserPro, example it shows the whole order #3234 details without cllicking on a view button.
Hi GreenMonster,
sorry for the late reply.
is it possible to intergrate WooCommerce into UserPro
For now I would chose the other way around. Means you can easily integrate UserPro into WooCommerce.
Howto:
Go to your my-account page (wp backend) & use the following short codes:
[userpro template=view]
[userpro_loggedin][woocommerce_my_account][/userpro_loggedin]When being logged in this would result to:
(If not logged in you would see the login form only!.)
Though you still would have to click on the “View” button for a more detailed view.
Hope that helps. 😉
I had tried using the private shortcode previously I read on the other thread. I had tried this too just now. But there’s an issue with view order. As when I tried to view order I wasn’t able to view as it shows “The user profile you are trying to reach does not exist. It could have been removed.” instead. And is it possible to get the whole woocommerce recent orders in to the userpro form/panel?
I would like to check with you too is there a shortcode to hide something with shortcode when the users are not logged in, instead of hiding something when the user is login?
I would really appericiate it if someone could reply and give me an answer or solution.
What’s the problem here? I see many replies but It’d be more helpful to describe the bug in brief one reply.
It’s okay I have solved the issue by myself. Thanks for getting back to me, and sorry for the multiple replies previously as I didn’t notice there was an edit button. What I had written below is actually what I wanted to do initially and what was my solution in the end. But the solution isn’t really what I wanted to achieve ultimately, but at least it’s able to get it to work.
I have UserPro Profile and WooCommerce Profile together in a single page. And it seems that when I click on WooCommerce view for that single purchase history, UserPro profile panel would show as invalid profile. Apparently it seems that it was due to setting WooCommerce “My Account Page” to the same profile page as UserPro, which resulted to WooCommerce not being able to show that single view purchase history page. And what UserPro was doing was searching for the User Profile when it’s suppose to view order.
So the solution was to set a different WooCommerce “My Account Page”. And to have 2 “[woocommerce_my_account]”. One is on the WooCommerce “My Account Page” and the other on the UserPro profile page.
*Do note that url(s) given is just for example.
An example of the url when I click on WooCommerce view for the purchase history:
http://www.example-domain.com/profile/view-order/1234 (UserPro is actually searching for a profile called “view-order”)My solution of the url:
http://www.example-domain.com/my-account-page/view-order/1234 (When clicked on view purchase history)
http://www.example-domain.com/profile/GreenMonster (On UserPro profile page before clicking on view purchase history)What I actually wanted to achieve initially:
http://www.example-domain.com/profile/view-order/1234 (When clicking on view purchase history)Hopefully you guys might be able to do something about it in a future update.
The profile/ page will think you’re trying to view a profile because simply, there’s no rewrite rules for viewing order, e.g. profile/edit works fine, and profile/username so profile/view-order can work with the correct rewrite rule 🙂
Thats why I told you to use the shortcodes on your WooCommerce my-account page & not the profile page from UserPro. I know the solution is not perfect but this way the view button will surely work fine. 😉
Ah! I see! Guess I didn’t read the answer properly enough. Thanks for the help though! 🙂
You must be logged in to reply to this topic.