> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.qikify.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use store credit with Legacy customer accounts

If your store uses legacy customer accounts, you can still enable store credit and allow customers to redeem it at checkout.

However, ****customer must log in using a one-time password (OTP)**** to see their store credits and to use them during Checkout. If a customer logs in using a password, even after this configuration, the store credit won't work.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/0/1/540162af77d93400/7856f095-8c07-4518-bc6f-c06d3f_bhbw6q.png)

The instruction below explain how to add the OTP login option on your Customer Login page.

### A. Enable the Store Credit option

Go to ****Settings**** > ****Customer accounts**** > ****Store Credit**** and enable it. There is an orange warning message showing below, but you can ignore it.

![](https://storage.crisp.chat/users/helpdesk/website/-/9/8/3/e/983ee4c03326b800/370a99e3-6568-4012-babb-8f4a25_1ood2pi.png)

### B. Add the OTP login option to the customer login page

This step requires editing your theme code. We recommend duplicating your theme before making code changes.

1. Go to ****Themes**** > ****Edit code****
2. Open the liquid file for the Login page. For example, with Dawn theme it is `` `main-login.liquid` `` file.
3. Add the following code where you want the OTP option to appear (for example, below the ****Register**** button)

```
<a href="/customer_authentication/login?return_to={{ routes.root_url }}" style="margin-top: 10px">   Sign in with OTP to use store credit</a>
```

![](https://storage.crisp.chat/users/helpdesk/website/-/f/5/7/6/f576c2f1fae08800/6a73a3e7-de8a-4105-b2b1-a41cbd_4wggxi.png)

Note:

* The placement of this code determines where the link appears on the login page.
* You can freely customize the text ****“Sign in with OTP to use store credit.”****

4. Save the file. That's it!

Customers now have two login options. When they sign in using the ****OTP login****, store credit will be available for use at checkout.