Save data for logged in users

Hi,

I have been asked to work on website personalization. Basically I have to save the selections that the logged in user made in the website, so that when they log in again they dont have to make the same selections again. I have to all this programmatically.

Could you please help me how should I go about it? Any resources would help.

Thanks,

composer issue: drupal/core-recommended 8.8.5 requires composer/installers v1.7.0 -> satisfiable by composer/installers[v1.7.0]

We have Drupal 8.8.5 running on CentOS Linux 7 with PHP 7.1.33.

Was trying to update modules using composer. Composer said they were updated, but when I went into program, they weren't. In troubleshooting, I deleted the "vendor" directory. Now, I get this error:

[root@ip-172-31-13-94 master]# composer update --with-dependencies Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

make dynamic block appear on page region

I have a custom module that builds a custom menu depending on an attribute of the node for a basic page. If $nid = 10, then a custom-menu-10 needs to appear in a region for that page. If $nid = 11, then a custom-menu-11 will appear in that same region. In D7, we just threw the custom menu into a menu_tree_all_data and used $variables['my_custom_menu'] to place the html in page.tpl.php.

To learn more in the new D8 theme API, I've created a custom block in mymodule which has the code I need to determine the node-id() and instantiate the custom menu.

Commerce changing product-variation-type dispay to include price and transfer to cart button

I'm new to commerce and I didn't find an answer to that.

I want to display a product that a the same time its price is shown and the button to put it into the cart.

I didn#t find a option to create a dispay that is able to do both.

Can anybody help to solve this problem?

Thank you very much.

Embedding google maps in blocks drupal 8

Hello
I am having an issue of embedding google maps to the body field of block, whenever i try and copy/paste the code which is iframe, nothing happens, i tried everything, using full html hitting source before saving doesn't works either, i have tried everything and nothing seems to work, any idea or anyone else is experiencing the same problem?

Thank u in advance

Webform pass submitted values in URL

I've got a custom module that takes the email address from a form and inserts a link in the email handler (via a token) that when clicked on goes to another webform and when submitted sends the reply to the original email address. 

What I'm trying to do is pass the submitted values from the first form in to this link but it's not working:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x