Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter enexwhy

    (@enexwhy)

    Hi Alex,

    Thank you for your prompt reply.

    Main SQL queries are listed below
    SELECT ID AS order_id FROM wp_471_posts AS orders WHERE orders.post_type in ( ‘shop_order’) AND 1 AND orders.post_date>=’2020-04-01 00:00:00′ AND orders.post_date<=’2020-07-10 23:59:59′ AND orders.post_status NOT in (‘auto-draft’,’trash’)

    • This reply was modified 5 years, 11 months ago by enexwhy.

    WooCommerce is an e-commerce plugin for WordPress.
    This plugin was built for WooCommerce (WooCommerce PDF Invoices).

    Sorry, this is confusing me. It sounds like you do not have WooCommerce installed/activated, or do not have the appropriate capabilities/permissions to see WooCommerce on the dashboard sidebar.

    In that case, how do you access the site’s orders?

    Thread Starter enexwhy

    (@enexwhy)

    I found out why.
    Because you are doing this:

    $current_version = get_site_option( 'bewpi_version' );
    
    if ( false === $current_version ) {
        WPI()->setup_directories();
        // ...
    } elseif ( WPI_VERSION !== $current_version ) {
        WPI()->setup_directories();
        // ...
    }

    So no directories will be created for other sites on a multi-site WordPress installation. That’s quite silly though.

    Hi, you may have figured this out by now, but just leaving this answer here for anyone else who has this question.

    I go to WooCommerce > Orders > (click into any order) and there is a ‘PDF Invoice’ section on the top-right corner of the page. There should be a single ‘Create’ button if no invoice has been generated for that order. If there is already an invoice for that order, you should see 3 buttons: ‘View’, ‘Update’, ‘Delete’.

    Thread Starter enexwhy

    (@enexwhy)

    Yes, I did not notice it before. I followed the instructions in the link that came with the error message. It works now, lovely!

    Thank you so much, John!

Viewing 5 replies - 1 through 5 (of 5 total)