Astra

Display and Edit Credit Balances

Estimated reading: 2 minutes 426 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

2 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

Leave a Reply

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

CONTENTS

Display and Edit Credit Balances

Fast WooCredit Pro gives you flexibility when it comes to displaying your custom...

Subscription Based Credit Purchases

Fast WooCredit Pro offers support for WooCommerce Subscriptions. Please note sub...

Instant Credit Store Purchases

With Fast WooCredit Pro you can let your customers bypass the WooCommerce checko...

Making a Credits Only Store

You may wish to allow customers to only make purchases from your site using cred...

Create A Store Credit Bundle Based Product

Creating a Credit bundle is quick and easy with Fast WooCredit. Here is how to c...

Credit Store Payment Gateway

Fast WooCredit Pro gives you a credit based payment gateway for your customers t...

Fast WooCredit Pro Overview

Fast Member Quick Start

This quick start case study will give you a good starting point for how you can ...

Products

Content

Members

Fast Affiliate

Chat Icon Close Icon