I'm using Drupal commerce + commerce API modules in decoupled Drupal project. When doing the checkout frontend (in Angular) will call some third-party APIs and get some discounts for each order items. I need to update those discount details in Drupal DB.
I tried this with /jsonapi/checkout/{order_uuid} API like below. But this does not update anything in the DB.
I have built a Drupal web form and would like to display specific text fields in the form with prepopulated values so they are predefined for users when completing the form.
The default values I need to display are dependent on the previous question in the form so I would need some code like - {if field C contains ‘AB’, display ‘123’ or if field C contains CD, display ‘456}
However there doesn’t seem to be an operator option for ‘contains’ in Drupal webforms?
I'm working with a module that provides a media entity type that has a field named 'field_media_video_file' to upload a video file (similar to media video which uses the same field name).
Then for example a node content type where the media field was added as a reference media field "but" the field name on the node is generic like 'field_upload_video' and could be named anything really depending on what the user who initially created the content type names it as the media reference field could be used on any content type.
Hello im trying to reverse the order of a filter put with bef which contains checkboxes of taxonomy term to a content type named news item. The hook i implemented is this: