Can't build Drush

/www]# php composer require drush/drush -v
ea-php-cli Copyright 2017 cPanel, Inc.
  [merge-plugin] Loading core/composer.json...
  [merge-plugin] Merging ext-date
  [merge-plugin] Merging ext-dom
  [merge-plugin] Merging ext-filter
  [merge-plugin] Merging ext-gd
  [merge-plugin] Merging ext-hash
  [merge-plugin] Merging ext-json
  [merge-plugin] Merging ext-pcre
  [merge-plugin] Merging ext-pdo
  [merge-plugin] Merging ext-session
  [merge-plugin] Merging ext-simplexml

How to change the title of a modal window ?

I have a link that displays a modal window.

When I click on it, it is marked in the title of the modal window "Array".

How to customize the title ?

Here is my Drupal module :

/src/Plugin/Commerce/CheckoutPane/MarketplaceTermsAndConditions.php :

How to remove the online style of modal ?

I created a code that displays a link to open a modal window.

The problem is that the text comes out of the window.

When I inspect the code of my page, there is an online style `style="max-height: 570px;"`

How to remove the online style of modal ?

How to create a condition to disable the "Add to cart" button ?

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.

So there is a condition missing in my code.

How to limit the list of stores to my own stores ?

I have a site with Drupal 8.6 and Commerce 2.11

I have a marketplace with several stores and shop owners.

When a store owner creates a product or a payment gateway, I want the list of stores to be limited to their own stores?

I found a code on drupal.org :

https://www.drupal.org/project/commerce/issues/2499645 (comment #16)

I tried to use it in a custom module, but it does not work.

In a commerce_marketplace_view_own_stores folder, I created the following files.

Unlimited grouped Multi-value fields

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.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x