How to change a store type ?

I have several types of store on my site and I want to modify the button Add to cart of all the products associated with the store type online (online is the machine name of my store type).

How to do this ?

The custom module below works and changes the Add to Cart button for products in all store types.

How to limit it to the type of store online ?

Development version is updated, zip option does not have the latest modifications.

Hi,

I have updated the development branch (8.x-2.x) of the openstory module with the latest modifications. After that I have created a new tag and updated also the master branch. If I download the tag 2.8 version all good.

I have a problem with the zip option of the 8.x-2.x-dev development version. If I use the composer command to download the project, I can see the latest modifications, the same for the tar.gz option.

How can I solve the issue with the zip option?

Drupal form design

hello folks!!!!

I am working on the forms in Drupal. The fields in my forms change every year. some new fields get added and some get removed. The user fills should get the form field based on their selection. What is the best way to implement this functionality? Does Drupal provide multiple versions of form or do I need to design new forms every year? basically, my form contains 50 fields and design them every year is a hectic task to me. can anyone please help me out.

Move rules from htaccess to my conf file

Hello,

I use Drupal 8. My Apche vesion is 2.4.18 and PHP version is 7.0. I use SSL.

I want to get rid of the htaccess file and only use my conf file.

I have not enabled rewrite in Apache. I use redirect instead.

Which rules in the htaccess file do you recomend me to use?

Fred

Base URL = IP Address

My site is using Drupal 8. It detects the IP address as the base URL. How to solve it? Thanks.

Taxonomy term entity translations

Hello,

I have in Drupal 8.5.5 Twig template this variable - it´s taxonomy term entity in field:

{{ node.field_category.0.entity.label }}

I need this field multilanguage - now I have it everytime only in default language. 

Thank you

Karaya

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x