• Resolved 9itish

    (@9itish)


    I want to load the WooCommerce payment template on my custom checkout page. I placed the following code inside page-checkout.php.

    <?php wc_get_template( 'checkout/payment.php' ); ?>
    

    Payment methods start showing up upon adding the code. However, the payment does not proceed. I checked the error logs and it says the following:

    CRITICAL Uncaught Error: Call to a member function get_title() on null in /checkout/payment-method.php:26.

    I haven’t made any changes to the payment-method.phpfile at all. It works with the Storefront theme but they don’t have a custom Checkout page layout that I want. So, I created my own child theme based on Storefront.

    What is causing this error?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_title() on null’ is closed to new replies.