Show store credit to customer

Show store credit to customer

no_robotocha
Shopify Partner
56 2 15

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

--
No, Robotocha!
Replies 2 (2)

Odunola
Shopify Partner
16 2 4

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 %}
<div class="store-credit">
<h2>Your Store Credit</h2>
<p>{{ store_credit | money }}</p>
</div>
{% 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!



If my suggestion works for you, please give it a Like or mark it as a Solution
Feel free to reach out to me
Email : [email protected]
WhatsApp [wa.me/+2347047775840]
no_robotocha
Shopify Partner
56 2 15

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

--
No, Robotocha!