This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Help editing module code to calculate all product options instead of just the first

Hello.

I am using a module that can add or subtract from a line item price based on a selected option.

Module is called 'Commerce Product Extra Charge' https://www.drupal.org/sandbox/gbyteco/2565693

However if you allow selecting multiple options, it only adds the price of the first option to the line item total.

I would like to edit this module to update the price with the combined total of all selected options.

Currently how it works

Apigee to support multiple organisation in single Drupal instance #622

I need to investigate the feasibility of extending the apigee_edge module to be able to support linking multiple organizations into single drupal installation.

https://www.drupal.org/project/apigee_edge

i have modified few connector controller file. i was able to switch or connect both prod and non-prod organization. i made the two credentials and backend .

/apigee_edge/src/SDKConnector.php

Validate a textearea with RegEx in webform (D8)

Hi,

I'd like to set a form to get people's comments about some articles.

The form contains a simple textarea.

I need to validate the content with regEx before saving it.

the validation would consist in not accepting contents with words like :baby, hot, s.., tinyurl. , urls, ...

For testing purposes, I used https://regexr.com/ to make my regex.

Here is the example expression I tested. I guess it works fine because I get all word structures I'm looking for:

How can I change the aria-checked in buttons using the WebForm module by mouse click?

Hi there!

I am using the button element on webform module:

'#type': 'options_custom:buttons'

but I noticed thah I can just select the button (when I am filling the form) if I press enter.

I want to select the button when I click by mouse, I think that means I need to affect the aria-checked to change the value when I press click, but I am not sure.

Could you help me?

Paragraphs module: Content change is applied to all languages

Hello,

I use Paragraphs module, Workflows core module and my site is multilingual (German, English, Spanish, French).

For example, if I add a paragraph in the current published German revision (with German text), then this paragraph appears (untranslated) on all other active published revisions, i.e. English, Spanish and French. 

Need help related to hrflang tag in drupal 8?

How to implement "hrflang" tag code on the website running with different languages. If there is any module in Drupal 8 that can help to resolve this. Or we can directly add the "hreflang" tag code.

We have tried to implement the code directly but the code starts to run dynamic and static both.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions