In this recipe, we will understand what it takes to enable the flow of information from VirtueMart to ADempiere when a user checks out one or more products on the VirtueMart web store.
add()function creates all the records related to the order after the order confirmation. Modify the
add()function to include the following steps after all the records have been created in different tables:
$fieldsarray with all the relevant fields related to order, order history, order payment, and order items. Make sure that
typeis explicitly set on the array to, say,
$fieldsarray by using the