Hello,
I need help I am new in Drupal 9 Ajax development. I have developed a piece of code but it doesn't work.
To sumarise, I want to display an entity form in a popup. The popup is built dynamically with jQuery, I use Ajax to fill the popup and the form is built with in an ajax command. \Drupal::service('entity.form_builder')->getForm($livraison, 'edit');
Sorry if this has been posted before but cannot find an answer. I am using the Stripe Commerce Payment Gateway with Drupal 9. The payment system works fine, payments go through, shipping address is shared onto the Stripe order.
What i was hoping for is the order number and the product titles to be shared into Stripe so the order would be easily cross referenced with the Drupal Commerce. I have seen some posts that suggest the Description field in Stripe could be used for the order number and the product titles but they have tailed off.
I'm working in an issue where I'm using the hook_form_views_exposed_form_alter() to change some fields from textfield to select and they're working fine. The filters are working and the results are ok.
Here the problem starts. Two of those selects are dependent. One of them, when I select the state, should change another one with cities related with such state. Unfortunately this is not working since the view is already using Ajax.