Show store credit to customer

Hey folks, is it possible to display the customer’s store credit amount on their account page with liquid or another method?

2 Likes

Yes, you may use Liquid to display the customer’s store credit amount on their Shopify account page. Here’s how to do it:

Get to the Template:

To make changes, select Online Store > Themes and then customers/account.liquid.
Incorporate Liquid Code:

To see the store credit, enter the code. Customer.store_credit should be changed to the appropriate variable for your setup:
{% if customer %}
{% assign store_credit = customer.store_credit %}

Your Store Credit

{{ store_credit | money }}

{% endif %}

Save Changes: Make sure to preserve your edits.

Testing: Verify that the store credit appears accurately on the account page.

For information on the correct Liquid variable, refer to the app’s documentation if you are using it to earn store credits. Tell me if you require any additional help!

Are you sure? store_credit is not mentioned in the liquid customer object

2 Likes

Did this work? I also want the customer’s store credit appear in their account page and need help

{{ customer.store_credit_account.balance }}

Yep, Shopify have added it to the customer object 8 months after the post - another good addition.

HI! I have Dawn15.2.0 I want to implement my customers’ store credit amount on their account page or on the homepage when they log in. Can you give me exact instructions? would be grateful!