Score:0

How can I set the purchased entity for an order item?

in flag

We have migrated products and orders from a Drupal 6 site to Drupal 9 site. We had a product type dues for which we already had products in the existing Drupal 9 system. So we skipped the migration of the products of type Dues. Now, After getting the Orders migrated the commerce_order_item table doesn't contain a purchased_entity id for Order Items that contained a product of type dues in Drupal 6. I have tried updating that column manually with the required variation Id but, to no avail. Is there an alternate to update the purchased entity for that order item? Right now it returns NULL even if there is an id present in the purchased_entity column of commerce_order_item table.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.