For stores that are Non-Plus, customizations of the checkout are not possible, so the widget for spending store credits at checkout cannot be obtained. In order to let stores which are not Shopify Plus have their members spend credits, we have an implementation system for members to spend store credits on the slider cart and the cart page. This is done by implementing the SoftLogin feature, selecting what is needed for store credits, and with some customization we can reach the widget for spending store credits at cart

1. Add metafields and function

resolve(MetafieldRepository::class)->saveCustomer('gid://shopify/Shop/YYY', 'softlogin',
[ 'enabled' => 1
  , 'settings' => [
        'checkout_button_no_popup' => true
        , 'cart_widget_login_link' => true
        , 'debug_functions_checkout_sc_ca_function' => false
        , 'debug_functions_cart_checkout_validation' => false
        ]
]
, 'json') ;
./artisan app:install-shopify-function XXX checkout-sc-ca-function

2. Import needed js and css in the theme.liquid file

At the end of the <head> element add the css import:

<link rel="stylesheet" type="text/css" href="<https://app1.subscribfy.com/css/softlogin.css>">

At the end of the <body> element add the js import:

{% comment %}  Subscribfy integration {% endcomment %}
		<script type="text/javascript" src="<https://app1.subscribfy.com/js/softlogin-v2.js>"></script>
{% comment %} End of Subscribfy Integration {% endcomment %}

Additionally in this theme.liquid file:

{{ 'subscribfy-store-credit.css' | asset_url | stylesheet_tag }}

This last one is a file we will add for styles of the store credits widget on the cart

3. Create new files

Then fill these files with the following content: