Add 'display_revenues' feature flag
[MAILPOET-1853]
This commit is contained in:
@@ -589,7 +589,8 @@ class Newsletter extends Model {
|
||||
}
|
||||
|
||||
// WooCommerce revenues
|
||||
if ($woocommerce_helper->isWooCommerceActive()) {
|
||||
$settings = new SettingsController();
|
||||
if ($woocommerce_helper->isWooCommerceActive() && $settings->get('display_revenues')) {
|
||||
$currency = $woocommerce_helper->getWoocommerceCurrency();
|
||||
$row = StatisticsWooCommercePurchases::selectExpr('SUM(order_price_total) AS total')
|
||||
->where([
|
||||
|
Reference in New Issue
Block a user