Suggestion and Idea for next release

Shawn Vesta-ShopShawn Vesta-Shop Posts: 1Member
It would be awesome if items for gift receipt could be selected with the same transaction. For example: Customer purchases several items but some are gift and some are personal. Choosing which ones go on the gift receipt vs doing several transactions would expedite the process and give better customer service.

1 comment

  • Adrian SamuelAdrian Samuel Posts: 324Moderator, Lightspeed Staff moderator
    Hey @Shawn Vesta-Shop i've written a script to handle this.

    In my existing template, after the following code

    {% if show_barcode %}
                    <p class="barcodeContainer">
                        <img id="barcodeImage" height="50" width="250" class="barcode" src="/barcode.php?type=receipt&number={{Sale.ticketNumber}}&hide_text={{ not show_barcode_sku }}">
                    </p>
                    {% endif %}
                </div>

    I insert this:
    <script>

     let item = document.querySelectorAll(" th.description > .line_description");

    item.forEach(function(item) {
    item.addEventListener('click', function(e) {
      const th = e.target.parentElement;
     const tr = th.parentElement;
    tr.parentNode.removeChild(tr);

      });
    });

    </script>

    An example of the script in action can be seen below:




Sign In or Register to comment.