Implement shop search and refactor

This commit is contained in:
Almira Krdzic
2018-10-17 00:36:19 +02:00
parent afab22a30b
commit 8769606a4b
24 changed files with 379 additions and 182 deletions

View File

@@ -69,9 +69,7 @@ class Wiaas_REST_Customer_API {
public static function get_customer_shops() {
$customer_id = wiaas_get_current_user_organization_id();
$customer_shops = Wiaas_Shop_Data_Store::get_customer_shops($customer_id);
$customer_shops = Wiaas_Customer::get_customer_shops();
$customer_shops = array_map(function($customer_shop) {
return array(