Update the POS printed receipt for cash rounding

If your store uses customized POS receipt through code editor, then you might need to update your POS printed receipt manually to make sure that it displays cash rounding on the receipt.

These changes require familiarity with the code that's used in Shopify's notification templates. If your templates are highly customized and you're not sure how to apply the necessary changes, then contact the developer that made the changes or click Revert to default to restore your template to its original state. When you revert to default, all of your customizations are removed, but the default template ensures that you have the most current template version.

Update the POS printed receipt

You can update the POS printed receipt to display the total cash rounding adjustment amount from payment and refund transactions, along with the rounded total amount in the receipt.

Steps:

  1. From your Shopify admin, go to Point of Sale > Settings.

  2. Click Receipt customization.

  3. In the Printed receipts section, click Code editor (only applicable for Pro locations).

  4. In the transactions.liquid template, locate the code block that contains <section class='totals'>.

  5. At the end of the section (after it prints receipt.total), if cash rounding is present on the order, add order.total_cash_rounding_adjustment and order.total_adjusted_amount liquid variables, which POS client will set to the total cash rounding adjustment and rounded total amount, respectively.

{% if order.total_cash_rounding_adjustment %}
    {% comment %} order.total_cash_rounding_adjustment is a string, converting for safety edited {% endcomment %}
    {% assign rounding = order.total_cash_rounding_adjustment | plus: 0 | abs %}
    {% if rounding > 0 %}
      <div class='rounding-row-top-border'></div>
      <div class='totals-container'>
        <p class='totals-text'>{{ 'receipt.cash_rounding' | t | capitalize }}</p>
        <p>{{ order.total_cash_rounding_adjustment | money | escape }}</p>
      </div>
      <div class='totals-container'>
        <p class='totals-bold-text'>{{ 'receipt.adjusted_total' | t | capitalize }}</p>
        <p class='price'>{{ order.total_adjusted_amount | money | escape }}</p>
      </div>
    {% endif %}
  {% endif %}
Can’t find the answers you’re looking for? We’re here to help.