Shopify themes, liquid, logos, and UX
Hey folks, is it possible to display the customer’s store credit amount on their account page with liquid or another method?
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!
Are you sure? store_credit is not mentioned in the liquid customer object
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024