Mass action discount to show on invoice?

  • Posts: 94
  • Thank you received: 0
6 years 3 months ago #296941

Hi,
I have a mass action set up that automatically gives a little (3%) discount to anyone who has an account.

Is there a way that I can show this discount on the invoice? At the moment it simply shows the discounted price
For instance, it shows £17.45 instead of £17.99 - 3% = £17.45

I would like customers to remember that they get this discount :)
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 3 months ago #296944

Hi,

The discount information is not stored with the order. The coupon information is (coupons are a type of discounts, so I just say this in case you're actually talking about coupons).
So there is no easy way to display the discounts received for an order.
With what is there now, it would require adding custom fields of the table "item" to store the information in the database and display it in the invoices/order details page, etc, and a small plugin which would gather the discount information and store it in that or these custom fields when the order is created (with the onAfterOrderCreate trigger).
So if you know PHP, it's possible to add it.

The following user(s) said Thank You: GB11

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
6 years 3 months ago #297002

Thank you.
I'll have to see what I can come up with.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum