• If i choose email type customer_processing_order, then I get 500 Error from backend.

    Error: [01-Oct-2019 08:47:49 UTC] PHP Fatal error: Uncaught Error: Call to a member function needs_payment() on bool in /wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-checkout.php:309

    The funktion, where it happens is:

    
    public function add_payment_link( $order_id ) {
    $enabled = true;
    if ( get_option( 'woocommerce_gzd_order_pay_now_button' ) === 'no' ) {
    	$enabled = false;
    }
    $order = wc_get_order( $order_id );
    if ( ! $order->needs_payment() ) {
    	$enabled = false;
    }
    $disabled_methods = get_option( 'woocommerce_gzd_order_pay_now_button_disabled_methods', array() );
    ...
    

    The problem is in Woocommerce Germanized, but a lot of people use it too ??

    Can you help with it?

    • This topic was modified 5 years, 5 months ago by krut1.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey,
    Usually, that just means you have not selected a real order to preview. The Mockup order can only go so far but with 3rd party, plugins added you need to select a real order so all the information is available.

    Let me know if selecting a real order to preview works.

    Ben

Viewing 1 replies (of 1 total)
  • The topic ‘I cannot change one email type’ is closed to new replies.