• Resolved GustavoKatel

    (@gustavokatel)


    I’m trying to create a new order from the Orders page from the Learnpress menu and it gives me the following error in the console when I click to add a new customer

    View post on imgur.com

    PHP 7.2
    Wordpress 5.6.1
    Learnpress 3.2.8.7
    Woocommerce 5.0.0

    • This topic was modified 4 years, 1 month ago by GustavoKatel.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter GustavoKatel

    (@gustavokatel)

    For future viewers with the same problem, this plugin depends on lodash, but apparently it does not ship this dependency, I manually added lodash to the admin scripts and it worked fine

    /* Custom script, enqueued in the *ADMIN* header */
    add_action('admin_enqueue_scripts', 'utils_admin_init');
    function utils_admin_init() {
      wp_enqueue_script ( 'lodash', "https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js" );
    }

    Hello,

    thank you for solution, do you remember which admin file?

    regard!

    Thread Starter GustavoKatel

    (@gustavokatel)

    I believe you can add it to functions.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error trying to create order: LP.$modalSearchUsers is undefined’ is closed to new replies.