WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
$order object in thankyou.php is empty?? (3 posts)

  1. alucard001
    Member
    Posted 5 months ago #

    I am using WP 3.8.1 and WC 2.1.2.

    PHP 5.3.3, MySQL 5.1, Apache 2.2

    In templates/checkout/thankyou.php, there is a statement at the beginning:

    if ( $order ) :

    However, when I test the checkout in my local machine, the $order object is empty (i.e. not an object) and therefore goes to the next "else" statement.

    I am using custom payment gateway, is it the cause of it? If not, what would cause this object to fail?

    By the way, after printing get_temp_dir, it is /tmp/, which is accessible (drwxrwxrwt.)

    Thank you.

    https://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 5 months ago #

    Best to test with a default core gateway like BACS and see.

  3. wvanhona
    Member
    Posted 4 months ago #

    Hello,
    Any luck?
    I have the same problem here.
    The 'order' object seems empty as it returns only the sentence:
    Thank you. Your order has been received.

    and I wonder why..

Reply

You must log in to post.

About this Plugin

About this Topic