digitalhydra
1/28/2014 - 4:43 PM

restore cart

restore cart

/**
1264      * Cancel the order and restore the cart (before payment)
1265      *
1266      * @access public
1267      * @param string $note (default: '') Optional note to add
1268      * @return void
1269      */
1270     public function cancel_order( $note = '' ) {
1271         global $woocommerce;
1272 
1273         unset( $woocommerce->session->order_awaiting_payment );
1274 
1275         $this->update_status('cancelled', $note);
1276 
1277     }