dennkon2019-12-01 10:44:01
dennkon, 2019-12-01 10:44:01

Ajax and widget, how to combine woocomerce?

In which part of the widget should I add add_action('wp_ajax_nopriv_deliveryCallback', 'delivey_callback_ajax');
To create this action? Is it possible to use ajax in widgets at all?
I need to create a delivery calculation widget, I enter from where and where to deliver, I press the calculate button and it displays the cost.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question