About Total MSRP & Total Amount of save(Custom receipt)

Hello
Im struggle with getting total msrp amount .
and Trying to put on right upper of barcode
That You Saved total : (total msrp amount + promotion amount).
Im currently using default template that from official website.
Please help me thank you
Post edited by yohanJ on
Tags:
14 comments
So the Lightspeed community can understand this question a bit better, could you draw a detailed example diagram with annotations and some examples numbers
This will help us piece what you’re saying together
Adrian Samuel
Software Developer
Lightspeed HQ
Adrian Samuel
Software Developer
Lightspeed HQ
So as an example
Default price is $20
MSRP is : $45
Promotion is: $5
so Total savings 45-20+5 = 30
Adrian Samuel
Software Developer
Lightspeed HQ
is it purely using the built in discount feature or do you use price rules as well? And are there any other method of discounting/promotions you employ in the system?
Adrian Samuel
Software Developer
Lightspeed HQ
You can copy the code snippet from here:
To add this code to your account navigate to:
Settings > Advanced Setup > Print Templates > add the code from here: https://github.com/merchantos/PrintTemplates/blob/master/receipt/SaleReceipt.tpl
Then search within the template and when you find the div HTML element below as seen, insert the script tag and paste my code in.
When implemented you'll get something like my screenshot below:
N.B. As Lightspeed does not support any custom template customisation, support and implementation for this request will have to be sought via third party developers and we would advise you to speak to our sales team to point you in the right direction.
Buut...if you follow my instructions, you should find this works
Have a good day @yohanJ !
Adrian Samuel
Software Developer
Lightspeed HQ
Good spot!
1. I didn't handle the quantities > 1, so I've remodelled the script to take that into account now: Also, since your receipt has different content than mine, the code to handle the placement of the message will have to managed by yourself/third-party developer to align it for your receipt.
Adrian Samuel
Software Developer
Lightspeed HQ
Could this also be applied to our stores registers receipt? Please let me know if you need any specific information for our account. I was just talking to customer service(eline) and she said we could get you to change for us in our system.
Place the script placed above under the following HTML
Please employ the help of someone that is familiar with code to do this for you.
If any other such data such as custom fields is required, you'll need to make use of our Retail SaleTemplate API and our Item API to visualise this.
More information about this can be found here:
Item API) https://developers.lightspeedhq.com/retail/endpoints/Item/
Sales Receipt API) https://developers.lightspeedhq.com/retail/endpoints/DisplayTemplate-Sale/
Adrian Samuel
Software Developer
Lightspeed HQ
Hello Adrian.
I also have same problem here in mu company.
I did put it as exactly where you told but it does not work.
Would you take a look at this code.
Thank you so much