How to display a message according to the country of the store ?

On Drupal 8, I installed Drupal Commerce 2

I want to modify the TWIG file of the products to show "Made in France", if the store country is France and made in Belgium, if the store country is Belgium.

How to display a message according to the country of the store ?

I would like to do this in the products TWIG file and in the stores TWIG file.

There is certainly a condition to be met but I do not know which one.

The code below does not affect anything.

commerce-store--online--full.html.twig :

Language switcher block only showing one domain

I am playing around for some hours with multilanguage now but i could not figure out why the language switcher block is just showing the url im currently on for BOTH languages.

I configured language per domain using localhost domains i also added to the hosts file and the apache vhost, so they work locally.

EN(com): dev.texturecase4.com

DE: dev.texturecase4.de

I translated the Websites name/title to see if the switch works. If i manually switch the urls it will show the EN/DE title.

Delete an Item in the Text List

I have a text list field with these elements
E | Exam
R | Review
T | Technique
I need to delete the line
R | Review
but the system replies that it is used in the Database and it is not possible to delete it.
Is there a way to do this?
I also need to change the Movement Type from R to T
I thought of Filtering the movements with getStorage and then with foreach modify the data

How to edit add/node fields

I have 37 fields that I need to have visitors be able to fill out. (lab test results) I can't find information on how to format that node in a way where it isn't a giant laundry list of entry points. I'd love to get them setup in a table or even a grid for the data entry to match up with what the lab results look like.

Very new to Drupal but getting the hang of it pretty fast.

Thanks in advance for any help you can give me.

field group

In the Visualization management of the form I have inserted a field group with expense label and been closed.
Depending on the situation, I would like to open and close the tab and if possible make it invisible.
I have tried this code
$form['#fieldgroups']['group_spese']['format_settings']['formatter'] = 'open';
But I get the error that it is not possible to use it on a standard class but I did not understand how to do it

Source database is Drupal version 8 but version 7 was selected.

Hello,

I am just trying to update Drupal 7.78, but getting the error message

" Source database is Drupal version 8 but version 7 was selected. "

Any tips what could be wrong? I only found one related post where the user was experiencing some WSOD, but I dont have any https://drupal.stackexchange.com/questions/262074/upgrading-drupal-7-43-to-8-error-source-database-is-drupal-version-8-but-versio

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x