diff --git a/src/AKSRT/Shop/Part1.php b/src/AKSRT/Shop/Part1.php index 7d77128c..969597de 100644 --- a/src/AKSRT/Shop/Part1.php +++ b/src/AKSRT/Shop/Part1.php @@ -208,7 +208,7 @@ trait Part1 { 'url' => get_author_posts_url($author_id), 'product_count' => $product_count, 'contact' => $contact, - 'addresses' => $this->get_user_address_book($author_id), + 'addresses' => $this->get_address_book($author_id), ]; } diff --git a/src/AKSRT/Shop/Shop.php b/src/AKSRT/Shop/Shop.php index eb9cbd0a..c0907c11 100644 --- a/src/AKSRT/Shop/Shop.php +++ b/src/AKSRT/Shop/Shop.php @@ -224,7 +224,7 @@ class Shop { return [ 'payment_methods' => $this->get_payment_method_options(), 'shipping_methods' => $this->get_shipping_method_options(), - 'address_book' => $this->get_user_address_book($user_id), + 'address_book' => $this->get_address_book($user_id), 'coupon_enabled' => class_exists('\AKSRT\Payment\Coupon'), 'currency_symbol' => '¥', 'pending_orders' => $pending_orders['items'] ?? [],