You can fetch the quote object by quote id in Magento 2.
Load quote by id using CartRepositoryInterface of Quote Module. If you are working for cart-related functionality and if you need to load quote data, in this case, you have helped this article. Continue reading “How to Load Quote data by Id Magento 2.”
Magento 2, You can create a plugin to TotalsInformationManagementInterface of Checkout Module to modify or change quote total.
An Interface responsible for Calculate quote totals based on address and shipping method. Continue reading “Create plugin for Calculate method of Totals Information ManagementInterface Magento 2.”
You can use sales_quote_address_collect_totals_before event for setting your custom totals related data before Magento collect final totals for a quoted address.
Use of address collects totals before event inside observer, You can fetch specific quote data, shipping_assignment and total related data for a cart. Continue reading “Use of sales_quote_address_collect_totals_before events Magento 2.”