wordpress - Accessing Defined Javascript Function in WooCommerce -


i trying access few functions woocommerce js files in wordpress plugin.

file location : woocommerce/assets/js/admin/meta-boxes-order.js

file url : https://github.com/woothemes/woocommerce/blob/master/assets/js/admin/meta-boxes-order.js

i have included file in using default wp functions , here javascript code

jquery(function ($) {     jquery('#customer_user').on('change', function () {         var user_id = $('#customer_user').val();         var post_id = $('#post_id').val();         $.wc_meta_boxes_order_items.reload_items();         if (user_id) {             $.ajax({                 url: ajaxurl,                 data: {                     action: 'rbp_admin_order_register',                     userid: user_id,                     orderid: post_id                 },                 method: 'post',             }).done(function () {                 //rbp_admin_order_metabox_unblock();             })         } else {             //rbp_admin_order_metabox_unblock();         }     }); }); 

and getting typeerror: $.wc_meta_boxes_order_items undefined


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -