"0 earnings commission" rather than no data…

Home Forums Legacy Support Support queries Setup issues "0 earnings commission" rather than no data…

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #242285
    David
    Spectator
    Hello, How to change the earnings data to "0 earnings" when there is no data rather than this message. Please refer to: http://prntscr.com/r134kv   Regards.
    #242458
    Veronica
    Moderator
    hi, it's by default. but we can try this by using JS and some Custom CSS. if you want.
    #242938
    David
    Spectator
    Yes this will be great from your side. Thank you so much!
    #243135
    logan
    Member
    Can you please share this page URL so that I can test the code on this page to find a unique selector. with the user id and credentials.
    #243136
    David
    Spectator
    This reply has been marked as private.
    #243303
    Veronica
    Moderator

    Hello,

    please use this code in wp-admin >> wplms >> footer >> google analytics code.

    <script> jQuery(document).ready(function($){ jQuery('a.commission_reload i.icon-reload').click(function(event) { setTimeout(function () { jQuery('body').find('a.commission_reload i.icon-reload + font font').val('0 Commission Earned'); jQuery('a.commission_reload i.icon-reload').css("display", "none"); }, 500); }); }); </script>

    #243333
    David
    Spectator
    This reply has been marked as private.
    #243400
    logan
    Member

    Hello,

    Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php

    Or in

    Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:

    add_filter('gettext', 'avada_kedavara', 20, 3); function avada_kedavara($translated_text, $untranslated_text, $domain) { if ( $untranslated_text == 'No data found for Instructor') { return '0 euro Commission'; } return $translated_text; }
    #243435
    David
    Spectator
    This reply has been marked as private.
    #243505
    Anshuman Sahu
    Keymaster
    Well for that we need to change the widget code which would need directly edit the files . We would need to add some js code to change the html if there is a reload icon appearing there in that widget . please add this given script in your wp-admin -> wplms -> footer -> google anaylictics script : <script> jQuery(document).ready(function(){if(jQuery('body').find('.wplms_instructor_dash_stats .commission_reload') && jQuery('body').find('.wplms_instructor_dash_stats .commission_reload').length){ jQuery('body').find('.wplms_instructor_dash_stats .commission_reload').parent().html('<div class="dash-stats"><h3>0<span>Earnings</span></h3></div>'); }});   </script>
    #243725
    David
    Spectator
    This reply has been marked as private.
    #243770
    Diana
    Participant
    This reply has been marked as private.
    #243807
    David
    Spectator
    Please find a solution for our big issue on appointment which is lasting weeks ago, and answer our last email which is waiting for days. The questions (two questions!) here were asked to Alex since he found the right solution. Thank you for your understanding.  
    #243923
    Diana
    Participant
    This reply has been marked as private.
    #243938
    David
    Spectator
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘"0 earnings commission" rather than no data…’ is closed to new replies.