• I need to display orders with specific status (for example “completed”) on my custom page visible for all people, not registered. I need this becasue I build website where any user could order specific service from my website. And when order will be completed I want to display it on my custom page as public offer. So it will be something like announcement website.

    Is it possible to do it in Woo?

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s definitely possible to do.

    If I were going to do this, I would create a shortcode in my child theme’s functions.php, then in the shortcode, I would use the wc_get_orders function to retrieve the orders I wanted and output them.

    Put the shortcode in a Shortcode Block on the page you want to display the orders, and you’re good to go.

    You could build a custom page template instead of going the shortcode route, but it would require more maintenance down the line if your theme changes.

    Thread Starter trde

    (@trde)

    OK, that is cool. I want to write wp_query to print orders on my custom public page. Orders should be categorized by city: “London”, “Berlin”, “Paris” so I think I could use this plugin https://woocommerce.com/products/woocommerce-checkout-add-ons/ to let user select the category of the order. But does it possible to print orders with specific city variable, on specific city category page?

    If the data is in the database, you can put it in a query, so I believe it is possible, though I don’t see how that plugin will help if I understand what you’re trying to do; that plugin is designed to allow you to add items/services at checkout for existing products. If that’s what you want, I completely missed the point, so forget what I said, and what I say below. ??

    Once you start writing your code, if you run into trouble, you might get more input if you post over on Stackoverflow than you will here, because you’re talking about some fairly custom development.

    Thread Starter trde

    (@trde)

    Yeah, stackowerflow is always helpfully. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display orders on custom page – public’ is closed to new replies.