0

I have a voucher point custom attribute for each of my product.

I need to keep track of this point across each quote_item, sales_order_item and sales_invoice_item (Meaning I need a voucher_pts and total_voucher_pts for each record in these tables).

In conjunction to that I also need to keep track the total voucher points across quote, sales_order and sales_invoice.

I thought of using a combination of event observers and plugins but it seems a bit tedious (especially to total up the voucher point for quote, sales_order, and sales_invoice), so I was wondering is there a easier built-in way in Magento 2 or any other approach to achieve the result above?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.