Skip to content

Commit

Permalink
Fixed saving customer document when creating account on checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Campanha committed Sep 26, 2017
1 parent b03192a commit 02598bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,10 @@ protected function save_order_meta_fields($order, $request)
*/
protected function save_user_meta_fields($order)
{
if (!$this->userId) {
$this->userId = get_current_user_id();
}

if ($this->userId) {
$document = false;

Expand Down

0 comments on commit 02598bf

Please sign in to comment.