Display and Edit Credit Balances

Estimated reading: 2 minutes 698 views

Fast WooCredit Pro gives you flexibility when it comes to displaying your customers credit balance.

Provided your customer is logged in and has credit then their credit balance will always be displayed on the ‘My Account’ page.

9 3I8J6iaw7V3f4zMmCA5kqmlfk3JE93A 5pjw HleaWZl56JEDmu7dHEekt4Qcwx0vMiU2 LzMX1m99benOY1cwf VOTmaKtMNqQ KUeFfAHKrJPc8mQ ndZrjTmjICV8F0zSUT

However you can also use the following shortcode to display their credit balance on any page in your site.

[fwc_amount]

This could be in the header or sidebar so they always have a visual reminder of their available credits.

You can quickly view all user’s credits balances from the default WordPress users list. To view members with the most credit simply click on the column header and it will reorder the users.

Jo HrcE4EbJmTwhfAEWOjrxFPI81QCb hHW0 WHMydoDrhC PaxqFckUxzltab9HV9pXGCuKLbIYKk5s6jzA7JYjWQXUm0MygE0pBBkvsFBrFDdVBbs1pXiyhU1fMXhUeyuo MSN

To update each user’s credit balance you simply edit their profile and look for the entry box titled Fast Credit. 

From here you can enter a new value or change the existing one. The new credit amount will be immediately available and will be displayed to the customer on the front end of your WordPress site. 

H ZQdY2ElB PRppF6QqMejv51K5vbbt6Gj8oQQvQaURQi1RlUVSj9of0M9c2tvRxAIpMf7oGlhCvXGbADdW8dHvJtVQHi3b gj Lwbs8hMPJqlt8dolEzJm9icIX689JUE0LG5Mb

Changing the default word ‘Credit’

If you prefer something unique rather than the word ‘credits’, you can easily change the word throughout the site using currency settings on WooCommerce. To do that,

Step 1
Go to general settings on WooCommerce. 

BHFfblhsWHA2HTcEnVW1NI 1zLRN3qNLMWJedn1tkdkcijp0GwBxkAgN

Step 2
Scroll down to the bottom until you see “Credit label”. Change this according to your preference and save settings. 

ru NbbgABvoc8G5UVNLuAyS316SqQ8Xprk86v52G0Mv2az5aJanoND git4FwDzMiMFQa9

4 thoughts on “Display and Edit Credit Balances”

  1. Is there any way to programmatically reset all users credit totals as a bulk action?

    The code I’m using currently aims to reset the fwc_amount from the Users page, by adding a custom Bulk Action:

    /**
    * Custom bulk action to reset all user credits code
    **/
    add_filter(‘bulk_actions-users’, function($bulk_actions) {
    $bulk_actions[‘reset-all-credits’] = __(‘Reset all credits’, ‘txtCredits’);
    return $bulk_actions;
    });

    add_filter(‘handle_bulk_actions-users’, function($redirect_url, $action, $user_ids) {
    if ($action == ‘reset-all-credits’) {
    foreach ($user_ids as $user_id) {
    update_user_meta($user_id,’fwc_amount’, 0);
    }
    }
    return $redirect_url;
    }, 10, 3);

    1. Hi Sam

      Our developer says you can use this code you have posted and it should work correctly to reset all users credits. If you have trouble you can can contact our support further.

      Thanks
      Dave

  2. I am using the WP REST-API, can you please tell me the endpoint and parameter I should look for to retrieve and/or set the ‘fwc_amount’ for specific users?

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

Display and Edit Credit Balances

Or copy link

CONTENTS