-
Author
Tagged: buddypress, woocommerce, profile, My Account, vouchers
-
August 2, 2015 at 05:06 #71176mitchcanParticipant
So in theme options / woocommerce we have selected the option to ‘manage account in BuddyPress’ which of course adds the Orders tab to a BP My Profile. However, a really important part of our woocommerce activity is downloadable vouchers… which we have come to figure out do NOT show on the Orders page/tab in BP Profile. I did find them on the old My Account page — but we don’t actually reference that page since we integrated woocommerce into BuddyPress.
I guess my question is: what is the best way to get the Vouchers part of the users order information to also show up in that BP Profile tab, since that is what we are using with it integrated into BuddyPress?
Thanks!
August 2, 2015 at 14:12 #71202sharmstrModeratorvouchers aren’t part of woocommerce core, right?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 2, 2015 at 19:52 #71244mitchcanParticipantYou can activate the use of Coupons in woocommerce/General and the voucher plugin ties into that system.
The reason I thought it was a theme question is because the vouchers DO sbow up on the standard My Account page, but when I elect to integrate with BuddyPress via the Klek theme options they don’t show there.
Any ideas are appreciated.
August 4, 2015 at 17:22 #71512sharmstrModeratorThe integration code is in /kleo/lib/plugin-woocommerce/config.php starting around line 1428. It doesnt display the woo my account page. It displays sections of it. It uses bp_setup_nav to create the profile tab and submenus and bp_template_content to output the results of wc_get_template calls. The templates that are called are
myaccount/my-orders.php
myaccount/my-downloads.php
myaccount/form-edit-address.php
myaccount/form-edit-account.phpI’m guessing the plugin injects its code using an action that is in the default woo my account page. You could build another submenu with the profile and call their code, similar to how I did the integration.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 4, 2015 at 21:31 #71576mitchcanParticipantDamn… that sounds like ‘work’ LOL.
Ok, I’ll mess around and see what I can break. Alright, who am I kidding… I won’t really try to do this. 🙂
I’ll connect with the plugin dev and see what he thinks. Maybe I’ll also add this to the Feature Request voting thingamajiggy.
Have a great day!
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.