Ubercart unable to update orders

Hello,

I have some issue with operating Ubercart.

I can finish order and generic functionality seems ok. But Im unable to view order details nor change its status.

Log shows long message starting:

TypeError: Argument 1 passed to Drupal\Core\Access\AccessResult::orIf() must implement interface  Drupal\Core\Access\AccessResultInterface, null given, called in /volume1/web/hikvision/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php on line 10 ...

Anyone could help?

Insert values to a database

Hello to everyone

I want to insert values from a field that i have created when i push the button. I have created my database and a table for 2 values.(table name is Formlrs, value 1 is address and value 2 is port). But when i push save button it doesnt work( no reaction)

My code in php is

function buildForm(array $form = NULL , FormStateInterface $form_state = NULL) {
 
 $form['address'] = array(
    '#title' => t('Lrs Address'),
    '#type' => 'textfield',
    '#required' => TRUE,
  );

Ubercart unable to update orders

Hello,

This is my first time setting up an ubercart site. All seems to work well but the change order status or view order details gives me "Page has encountered an unexpected error. Try again later".

I have no idea what is wrong.

Is there any chance you guys could help me? 

Replacement pattern

Hello,

I just created a new custom field in View but I would like to use replacement pattern in my created field. Is it possible to do this?

In my example, How can I use replacement pattern in the field "$form['text']"

Thanks in advance for your help

How to check the value of a field in TWIG ?

Have created a field of type "List (text)" and I want to display a text according to the value of the field. How to do this ? Thank you

{% if store.field_professionnel_ets_statut %}
  micro-entreprenneur
{% else if store.field_professionnel_ets_statut %}
  entreprenneur
{% endif %}

https://ibb.co/MGS05ZB

The "field_professionnel_ets_statut" field can have the values :

- micro-entreprise

- entreprise

Here's what I want :

Adding custom templates for content-types in drupal 8.8.1

Hi Drupal Enthusiasts/Coders,

I got stuck in using custom templates for my content-types. I have been following all the documentation or answers that I found on google like the following:

I have page__content-type.html.twig file inside my themes/templates directory, the following if part(if code) is under mytheme.theme file, inside 

function mytheme_preprocess_page($variables){}, this is default function name(I didn't add it, it was there) which was there inside the theme when I installed it.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x