Use of sales_quote_address_collect_totals_after events Magento 2.

Magento 2 you can use sales quote address collect totals after the event to Collect address total related data after Magento completed the process for a  current quote total.

Event Name to used:
sales_quote_address_collect_totals_after

Using the above event in the 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_after events Magento 2.”

Get Serialize value in array format using Magento 2.

Get Serialize value into an array format by using an unserialize() method of native Magento interface.

unserialize() method is used to convert the array form of data in Magento 2.

Continue reading “Get Serialize value in array format using Magento 2.”

How to convert array data into Serialize format Magento 2.

Serialize array data using Magento 2 by natve SerializerInterface class.

The serialize method is used for storing or passing PHP values without losing their data type and structure.

serialize() method is used for serializing the data in Magento 2. Continue reading “How to convert array data into Serialize format Magento 2.”