Backoffice - max cost margin #31

Merged
bilal.catic merged 22 commits from backoffice-max-cost-margin into master 2018-10-15 00:24:34 +02:00
Showing only changes of commit 55dc87e174 - Show all commits

View File

@@ -32,13 +32,16 @@ class Wiaas_Package {
return;
}
$query['tax_query'] = array(
if (!isset($query['tax_query'])){
$query['tax_query'] = array();
}
$query['tax_query'][] =
array(
'taxonomy' => 'package_status',
'field' => 'name',
'terms' => Wiaas_Package_Status::AVAILABLE
)
);
);
return $query;
}