How do I remove part of the HTML code with TWIG ?

In my Drupal 8 template, I have the following TWIG code :

{{ product.variations }}

It displays the following HTML code :

How to go back to the store in the product template ?

In the product template, I can add the code below and display the store :

{{ product.stores }}

How to go up in the store to display the store fields.

For example, how to display the currency of the parent store or how to display the type of parent store ?

Is it possible to do this with TWIG from the product template ?

In the store template, I can display the country code (the store's ade = resse) with this code :

Lenovo: Consolidation of Web Properties and Driving New Efficiencies

Lenovo and Promet Source Case Study

Lenovo is innovating to lead in the PC+ Era. Already the world's leading PC company, Lenovo is also a leader in smartphones and tablets as it works to become one of the most respected technology companies in the world. A US$46 billion multinational company with 52,000 employees serving customers in over 160 countries, Lenovo is ranked #226 on the Fortune 500 list, Lenovo is proud to be the world’s largest PC vendor. Their portfolio now includes workstations, servers, storage solutions, IT management software, smart TVs, tablets, smartphones, and even apps.

Sectors: 
Technology

baffled... every page load triggers an unwanted browser print ...

developed a website for a client in a staging account, all went well

the site is ready for production, so I upload the files, import the database, adjust the settings....  no problem, the homepage displays just fine.  Nice....

then I start testing the site in its new location, and the first page I try to visit invokes the print preview window.

second page too.

...

all the pages, except the homepage, display this behavior.  Every time I click away the print preview dialog, it reappears immediately.

this makes the whole website unusable.

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.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x