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

Fix Commerce drupal 8

Goodnight I am using commerce in drupal 8 and it really is much better than ubercart but something is happening to me when I enable the promotions and add the coupons, when the client adds said coupon it gives me an error The provided coupon code is invalid. What could be causing this?

Wallee sdk SSL certificate issue on AWS server

We had installed SSL certificates in my Drupal project in AWS server, the website works fine with https. In this site we had configured our custom wallee module which is using Drupal Wallee SDK for payment transaction related functions. But while trying to initiate a new payment transaction below SSL certificate problem is triggering.

error setting certificate verify locations: CAfile: /var/www/html/walle/vendor/wallee/sdk/lib/ca-bundle.crt CApath: none

Get defaul value of entity reference field

Dear All, 

I have entity bundle: "trainings" and dropdown field is training_type. How can i get the defaule values of this field.

i can get the selected value code but i need to get all default values in order to show the label.

Thanking you in advance.

Call function with params inside twig

Hi,

I have simple question, if i want call function with params inside twig like my example (galerie(article.id)), how i can achieve this?

{% for i, article in articles %}

{{ article.title}}

-->{{ galerie(article.id) }}<--

{% endfor %}

Thank you

Add selector for Ajax Views

I have updated the core/themes/stable/templates/navigation/pager.html.twig markup due to our requirements and this has caused the ajax functionality to stop working.

I have found that the Ajax selector is in core/modules/views/js/ajax_view.js line 99 and I need to add a new selector to make Ajax work on my view.

How could I achieve this?

How to automatically flag an entity when the form is submitted ?

I created a small custom module in Drupal 8 to moderate new entities and update entities.

The module is simple. It marks with the help of the flag module, the entities created or updated automatically.

Here is my module :

Pages

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