This is an example of how to set up a coupon based on the total purchase amount on your Shopify account page in a simple way without using an app. By displaying the current purchase amount and the amount that can be earned for the next coupon, you can encourage repeat purchases.
Example of setting up coupons on your account page based on your cumulative purchase amount

[Setting Method 1] Create a segment that has purchased more than a certain amount, and create a coupon that can only be used by that segment.

[Setup Method 2] Add a customized Liquid block to your customer account template and insert the code

