This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

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.

Guzzle: it's possible register and authenticate users from Drupal 8 to a remote API?

Hi, i have this doubt: it's possible register and authenticate users from Drupal 8 to a remote API without build an custom module?

Just using Guzzle + HTTP Client Manager ?

I want that a user when he create an account on the website, automatically this account is created on the server of the remote API.

MIME type ('text/html') is not a supported stylesheet MIME type

Getting following error in Google chrome browser console for a Drupal project on localhost on Ubuntu system:

Refused to apply style from ****** because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Any solution?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions