fix(shop): use get_address_book facade on cart/store views
Call sites still invoked undefined Shop::get_user_address_book() after address logic moved to AddressService; route through the existing get_address_book() facade instead.
This commit is contained in:
1 parent
3a80f5fc75
commit
02006945f2
2 files changed
+2
-2
No files matched your search
@@ -208,7 +208,7 @@ trait Part1 {
|
|||||||
'url' => get_author_posts_url($author_id),
|
'url' => get_author_posts_url($author_id),
|
||||||
'product_count' => $product_count,
|
'product_count' => $product_count,
|
||||||
'contact' => $contact,
|
'contact' => $contact,
|
||||||
'addresses' => $this->get_user_address_book($author_id),
|
'addresses' => $this->get_address_book($author_id),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ class Shop {
|
|||||||
return [
|
return [
|
||||||
'payment_methods' => $this->get_payment_method_options(),
|
'payment_methods' => $this->get_payment_method_options(),
|
||||||
'shipping_methods' => $this->get_shipping_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'),
|
'coupon_enabled' => class_exists('\AKSRT\Payment\Coupon'),
|
||||||
'currency_symbol' => '¥',
|
'currency_symbol' => '¥',
|
||||||
'pending_orders' => $pending_orders['items'] ?? [],
|
'pending_orders' => $pending_orders['items'] ?? [],
|
||||||
|
|||||||
Reference in new issue
Block a user