I’m trying to render the WooCommerce orders page using fl_builder_insert_layout. I’m trying to do it that way because there is no WC shortcode that takes a user directly to the WC orders page.
WC renders the orders page as an endpoint of /my-account: e.g. …/my-account/orders
But when I use the shortcode [fl_builder_insert_layout slug=“my-account/orders”] it just displays the /my-account/ page and doesn’t follow through to the end point /my-account/orders.
Any ideas on how I can display the WC orders on a BB page?
Yeah, that won’t work as its not an actual page as far as I am aware and WooCommerce doesn’t include any shortcode for only viewing order history.
In order to do this you will need to either use the code on the link below where the user has created their own shortcode. I tested it and it appears to work, but I would probably recommend speaking to Woo and see if they can recommend anything.
Yeah, thanks Danny. Working with WC can be a real bear sometimes. I saw that shortcode link you sent and was a little hesitant, thinking that maybe there was just something I was doing wrong and it would be an easy fix.
I’ll try that code, but what I did in the interim is use CSS to hide / reformat the WC info on the /orders page. Not exactly what I wanted, but…
Maybe the BB team will come out with some additional modules for the WC account info such as orders and downloads. Basically, everything on the standard WC My Accounts page that they use end-points for.