Sufio allows you to generate your invoice numbering for invoices that are automatically created from orders in your Shopify store. These invoice numbers can be specified by the customer that places the order or the products that the order contains.
By adding a unique cart attribute Invoice Number
to the cart page, you can set user-generated invoice numbers for invoices created from a specific type of orders.
For example, the cart attribute in this code snippet will set the invoice number to 1420.
To add the cart attribute to the cart page:
- In your Shopify Admin, go to the Online Store → Themes page.
- Click the Actions (three dots) button, and then click Edit code.
- Select cart.liquid in the left sidebar. You might use the upper search bar for a faster search.
- Insert the following code snippet inside the
<form>
. The right place for the field is just before the Check out button.
Here is an example code snippet that sets invoice numbers with a custom prefix (taken from customer tag) and an incremental number. Please note that this only works for customers logged into their accounts while shopping on your online store.
Note
The code snippet may need to be added to a different file than cart.liquid, depending on the theme you use. Often, the file is named main-cart-footer.liquid.
If your store uses cart drawer (also called ajax cart), in most cases, the right file is ajax-cart-template.liquid file.
Need help?
Do you need help with customizing your Shopify store theme? Please contact our experienced support team. We'll be happy to assist!
Professional invoices for Shopify stores
Let Sufio automatically create and send beautiful invoices for every order in your store.
Install Sufio - Automatic Invoices from the Shopify App Store