00 Day
00 Hour
00 Min
00 Sec

Reply To: Customize CRM Life Stages

Home Forums CRM Customize CRM Life Stages Reply To: Customize CRM Life Stages

#5673
Donovan
Participant

Hi Shaown,

We’ve confirmed that this problem is caused by the following code segment which is hard-coded in … /erp/modules/crm/views/dashboard.php, lines 34-43:


if ( $contact_key == 'customer' ) {
echo sprintf( _n( '%s Customer', '%s Customers', $contact_value['count'], 'erp' ), number_format_i18n( $contact_value['count'] ), 0 );
} else if ( $contact_key == 'opportunity' ) {
echo sprintf( _n( '%s Opportunity', '%s Opportunites', $contact_value['count'], 'erp' ), number_format_i18n( $contact_value['count'] ), 0 );
} elseif( $contact_key == 'subscriber' ) {
echo sprintf( _n( '%s Subscriber', '%s Subscribers', $contact_value['count'], 'erp' ), number_format_i18n( $contact_value['count'] ), 0 );
} else {
echo sprintf( _n( '%s Lead', '%s Leads', $contact_value['count'], 'erp' ), number_format_i18n( $contact_value['count'] ), 0 );
}

`

We’ve also posted this to the Wiki: https://github.com/wp-erp/wp-erp/wiki/CRM-Filters#dashboard-problem-with-custom-life-stag

Ideally, life stages should be a CRM option that can be set via the admin dashboard vs code overrides. Never-the-less, to make the “erp_crm_life_stages” filter useful there needs to be a way to override the CRM Dashboard view to display the custom life stages instead of the hard-coded life stages.

Please advise if there is a filter or other recommended way to accomplish this.

Thanks Shaown!

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)