• Resolved bfc0

    (@bfc0)


    Hello to your team,

    Your plugin is really cool but i have 2 issues

    1/I didn’t manage to downgrade the rank level.

    Let me explain :

    I have

    -a Classic rank that can be reached with a 20 points

    -a Premium rank reachable from 500 points

    -a Pro rank reachable from 1000 points.

    The Rank is upgraded whenever points are added by the admin but each time time a customer loses points until it reaches a lower rank, the rank does’t change and remains at the upper rank …

    How can i resolve that and what is the php file that can be changed ?

    2/ I wanna show the Rank level in a elementor page summing up the woo commerce account.

    Which shortcode or which snippet code could i use to display the rank level ?

    Or which php file could i change to achieve that ?

    For now, I’ve tried in vain to echo epoi-rank-level or epoi-rank-label or epoi-rank-title …

    Thanx for your help

    Best regards

    Fab

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi Fab,

    Thank you for reaching out to us.

    I’m sorry I missed your ticket. We were just back after our Tet (Lunar New Year) holiday. May I know how is the issues now?

    Best regards.

    Thread Starter bfc0

    (@bfc0)

    Hi,

    The issue is not completely resolved …

    The rank title still doesn’t change when i remove points …

    There is another issue: after changing an user’s amount of points in PhpMyadmin with a SQL request, the total points doesn’t change in wordpress profile even after puting this script in fonctions.php :

    function update_user_points_on_login( $user_login ) {
    $user = get_user_by( ‘login’, $user_login );
    $user_id = $user->ID;
    $total_points = floatval($wpdb->get_var( “SELECT COALESCE(SUM(point), 0) FROM {$wpdb->prefix}epoi_point_reward_system WHERE user_id = {$user_id}” ));
    update_user_meta( $user_id, ‘point’, $total_points );

    }
    add_action( ‘wp_login’, ‘update_user_points_on_login’ );

    in your plugin, i could’t find a cache file or temporary back-up méthod to check where points are added or removed .

    I guess i need help from you ??

    best regards

    Plugin Support angelagrey

    (@angelagrey)

    Thank you for updating.

    For the downrank email, it’s unfortunate we don’t make this function yet. We’ll consider adding email for downrank in the future.

    For the Elementor integration, you may use this shortcode:

    [epoi_current_user_total_point], [epoi_current_user_rank title=1 icon=1]

    Regarding the SQL issue, please don’t change that in database, you can modify that in the plugin settings – “User’s point“.

    Thread Starter bfc0

    (@bfc0)

    Thanx for replying

    Question : Each time the Points expiration time will occur, points will be lost, so rank could be downgrade too, right ?

    So will the downrank be automatic ?

    I have another issue: as an Admin i wanna manually add points to a customer, unfortunately the rank doesn’t change at all, staying stuck to null.

    Don’t understand why

    How could i debugg that ?

    best regards

    Plugin Support angelagrey

    (@angelagrey)

    Hi,

    For downranking, we’ve checked again. Actually, it’s how it works, the rank is not downgraded no matter their point, it’s because they’ve earned the ranking and it should not be changed if they lost/expired the point after that.

    At the moment, I’m afraid we haven’t plan to change this workflow.

    For the rank not being updated after adding points, I’ve tested on my site but didn’t encounter this issue. May I know how it is now?

    If this issue remains, please send me an email to: [email protected]

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Downgrading rank level and showing it in Elementor Page’ is closed to new replies.