-1

Working on Drupal 8.9.1, with Commerce 8.x-2.19 and Views Bulk operations 8.x-3.8.

My client needs a specific feature : from a view listing several products, he wants to select some of them and click on an Add to Cart button to add the selected products at once.

If I am correct, it was available on Drupal 7 with VBO but not anymore on Drupal 8.

Does anyone has a workaround to build this feature?

If a new action is needed, would you please share a code pattern to build this programmatically?

Related posts :

https://www.drupal.org/docs/8/modules/views-bulk-operations-vbo/creating-a-new-action

Add multiple items to cart

add to cart - multiple products at once

  • If no such vbo function exits, you can programatically create your own custom bulk operation that adds them to the cart. – No Sssweat Jul 20 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.