@@ -709,7 +709,7 @@ public function renderKpis()
709
709
$ helper ->subtitle = $ this ->l ('All Time ' , null , null , false );
710
710
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=orders_per_customer ' ;
711
711
$ helper ->tooltip = $ this ->l ('The average number of orders placed per customer in given period of time. ' , null , null , false );
712
- $ kpis [] = $ helper ;
712
+ $ this -> kpis [] = $ helper ;
713
713
714
714
$ helper = new HelperKpi ();
715
715
$ helper ->id = 'box-total-frequent-customers ' ;
@@ -720,7 +720,7 @@ public function renderKpis()
720
720
$ helper ->href = $ this ->context ->link ->getAdminLink ('AdminCustomers ' ).'&submitFiltercustomer=1&customerFilter_total_orders%5B0%5D= ' .Configuration::get ('PS_KPI_FREQUENT_CUSTOMER_NB_ORDERS ' ).'&customerFilter_o%21date_add%5B0%5D= ' .date ('Y-m-d ' , strtotime ('-365 day ' )).'&customerFilter_o%21date_add%5B1%5D= ' .date ('Y-m-d ' );
721
721
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=total_frequent_customers ' ;
722
722
$ helper ->tooltip = $ this ->l ('The total number of frequent customers in given period of time. ' , null , null , false );
723
- $ kpis [] = $ helper ;
723
+ $ this -> kpis [] = $ helper ;
724
724
725
725
$ helper = new HelperKpi ();
726
726
$ helper ->id = 'box-revenue-per-available-customer ' ;
@@ -731,7 +731,7 @@ public function renderKpis()
731
731
$ helper ->subtitle = sprintf ($ this ->l ('%d Days ' , null , null , false ), (int ) $ nbDaysRevPac );
732
732
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=revenue_per_available_customer ' ;
733
733
$ helper ->tooltip = $ this ->l ('Revenue per Available Customer (RevPAC) in given period of time. ' , null , null , false );
734
- $ kpis [] = $ helper ;
734
+ $ this -> kpis [] = $ helper ;
735
735
736
736
$ helper = new HelperKpi ();
737
737
$ helper ->id = 'box-total-newsletter-registrations ' ;
@@ -741,7 +741,7 @@ public function renderKpis()
741
741
$ helper ->subtitle = $ this ->l ('All Time ' , null , null , false );
742
742
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=total_newsletter_registrations ' ;
743
743
$ helper ->tooltip = $ this ->l ('The total number of newsletter registrations in given period of time. ' , null , null , false );
744
- $ kpis [] = $ helper ;
744
+ $ this -> kpis [] = $ helper ;
745
745
746
746
$ helper = new HelperKpi ();
747
747
$ helper ->id = 'box-conversion-rate ' ;
@@ -752,7 +752,7 @@ public function renderKpis()
752
752
$ helper ->subtitle = sprintf ($ this ->l ('%d Days ' , null , null , false ), (int ) $ nbDaysConversionRate );
753
753
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=conversion_rate ' ;
754
754
$ helper ->tooltip = $ this ->l ('The percentage of visitors who created a booking in given period of time. ' , null , null , false );
755
- $ kpis [] = $ helper ;
755
+ $ this -> kpis [] = $ helper ;
756
756
757
757
$ helper = new HelperKpi ();
758
758
$ helper ->id = 'box-total-new-customers ' ;
@@ -766,7 +766,7 @@ public function renderKpis()
766
766
$ helper ->subtitle = sprintf ($ this ->l ('%d Days ' , null , null , false ), (int ) $ nbDaysNewCustomers );
767
767
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=total_new_customers ' ;
768
768
$ helper ->tooltip = $ this ->l ('The total number of new customers who registered in given period of time. ' , null , null , false );
769
- $ kpis [] = $ helper ;
769
+ $ this -> kpis [] = $ helper ;
770
770
771
771
$ helper = new HelperKpi ();
772
772
$ helper ->id = 'box-total-banned-customers ' ;
@@ -777,7 +777,7 @@ public function renderKpis()
777
777
$ helper ->href = $ this ->context ->link ->getAdminLink ('AdminCustomers ' ).'&customerFilter_deleted=1 ' ;
778
778
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=total_banned_customers ' ;
779
779
$ helper ->tooltip = $ this ->l ('The total number of banned customers. ' , null , null , false );
780
- $ kpis [] = $ helper ;
780
+ $ this -> kpis [] = $ helper ;
781
781
782
782
$ helper = new HelperKpi ();
783
783
$ helper ->id = 'box-gender ' ;
@@ -787,15 +787,9 @@ public function renderKpis()
787
787
$ helper ->subtitle = $ this ->l ('All Time ' , null , null , false );
788
788
$ helper ->source = $ this ->context ->link ->getAdminLink ('AdminStats ' ).'&ajax=1&action=getKpi&kpi=customer_main_gender ' ;
789
789
$ helper ->tooltip = $ this ->l ('The main gender from all the customers. ' , null , null , false );
790
- $ kpis [] = $ helper ;
790
+ $ this -> kpis [] = $ helper ;
791
791
792
- Hook::exec ('action ' .$ this ->controller_name .'KPIListingModifier ' , array (
793
- 'kpis ' => &$ kpis ,
794
- ));
795
-
796
- $ helper = new HelperKpiRow ();
797
- $ helper ->kpis = $ kpis ;
798
- return $ helper ->generate ();
792
+ return parent ::renderKpis ();
799
793
}
800
794
801
795
public function renderView ()
0 commit comments