customize

You are here

agoradesign: Using a cart event subscriber to automatically add order items in Drupal Commerce

Error message

User error: Failed to connect to memcache server: localhost:11212 in dmemcache_object() (line 415 of /home/freedrup/public_html/demo/d7/sites/all/modules/memcache/dmemcache.inc).
This time I'm showing you, how you can automatically add another order item after a product has been added to the cart in Drupal Commerce 2.x. The most important info here is, how you can pass the pitfall of possible transient data problems here.
Source: 
https://www.agoradesign.at/blog/using-cart-event-subscriber-automatically-add-order-items-drupal-commerce