Drupal 8 Commerce2 - Using Event Subscriber change the product custom field value after first checkout of that product

by shanz   Last Updated December 06, 2017 06:07 AM

Using 'Event Subscriber', I'm able to get $order and $items from the order after completing the checkout.

How can I get the product id from the $itemsand modify the product custom field value?

Scenario: I want to change the status of the product after completing the first checkout of that product.



Related Questions




How can you remove another modules events?

Updated February 08, 2019 11:07 AM


Caching Event Subcriber

Updated March 13, 2016 08:03 AM