Adding a custom field in the receipt

coacinecoacine Member Posts: 1
edited November 13 in Tips, Tricks & How-to’s

Hi,

Currently the product table on the receipt only includes product name, qty and price. Can I add a custom field in there? If yes, whats the best way to do it?

On the order template it looks like following function is responsible for printing out the whole item table:

{{ _self.line(Sale.isTaxInclusive,Line,parameters,options) }}


How can I pass a custom field to this if it's allowed?

1 comment

  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 572 moderator

    Hey @coacine,

    The Custom Field is not available via the Receipt API (which generates the HTML). You'll need to use Javascript to make an AJAX request to update the relevant line.

    Adrian Samuel

    API Integrations Consultant - Strategic Solutions

    Lightspeed HQ

Sign In or Register to comment.