Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a module for Drupal 8.6 and Commerce 2.11
It is used to disable and change the text of the "Add to cart" button :
If the owner of the current store does not have the role of merchant_premium.
In this case, visitors cannot order products in this store.
MY PROBLEM
With the module below it works, but if an owner of a store does not have the role `marchand_premium`, buttons "Add to cart" of all the products of all stores is disabled.
We're looking for a way to add grouped, multi-value fields to a content type.
The situation is that an event would have a number of sponsors. On the event content type, I'd like to add a field for sponsor which would include an image, url and the sponsor name, and perhaps some brief text. You'd need multiple sponsors on each event.
I thought there was a module to do this easily in Drupal 7, but I'm not finding anything in D8.