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

creation api commerce with authentication with public key and secret key

Hello, I am using drupal 8 e commerce 2 I need to create an api that imports the products from the supplier but I cannot understand how I can create ecosystem, in practice I have activated the web modules servive of the core + rest ui and json api extra but not I can create the importer, among other things I need authentication with public key and secret key I activated aut and key but they do not solve the problem, I also tried to install the commerce api module but it gives me an error already during the installation, how could I solve?

.env and security on Production site

I'm building a new Drupal 8 site using https://github.com/drupal-composer/drupal-project and in the project page it says:

Creates environment variables based on your .env file. See .env.example.

I'm using .env for development as it's great. Though I'm wondering about using it on a production site.

1) Has anyone used this on a Production site and is it recommended?

D8 populate the role field on the user add form

Hi,

I need to prepopulate the role field on the user add form depending on the current user role.
I already tested the populate module on D8, but the checkbox field can't be prepopulated...
I have tried to hook the user_insert function with this :
 

image resize after upload

I'm trying to upgrade a d7 module to d9.

I'm able to upload a image via the managed_file form, but i like to scale/crop the image afterwards.

In D7 i've had a code like this:

Adding node edit form to existing route with parameters

I would like to alter the node edit form location so instead of having node/{node}/edit to {person}/node/{node}/edit, I have used a routeSubscriber to alter the path and if i go to /nick that page works fine ,but nick/node/1/edit gives me a 404, /node/1/edit gives me a 404 so i assume that the route has been altered but i cant seem to get this route to work.

Any help apreciated

TLDR: is there a way to add an existing route to an existing route that contains parameters

Tracker

Hello,

Tracker

How can I Make this Module Work Appropriately in Drupal 7 Thanks?

Pages

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