When creating the PHP for an AJAX function in my woocommerce checkout page, I use a $.post. What all needs to be in the PHP (via $.post) in order to call $woocommerce->session->set I tried the following in the php of the $.post global $woocommerce; $woocommerce->session->set('_delivery_loading', $temp); However the PHP is reporting that it does not know what $woocommerce->session->set is. How does the PHP that is the target of a $.post (from...
Originally asked by justdan0227 on Stack Exchange (stackoverflow) (CC BY-SA 4.0).