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

Drupal module is changing script element to type="text/plain" which is breaking JavaScript code.

My Drupal 9 platform has a conflict between the Iubenda Integration module and Doubleclick for Publishers (which uses Google Tags).

Iubenda Integration for some reason changes the type attribute of some <script> elements to type="text/plain." This means the JavaScript inside does not run. In this case, it is where the googletag variable is being declared, resulting in multiple errors that say "Uncaught ReferenceError: googeltag is not defined."

[Drupal 9] How to expose module content without purpose built themes

Hi everyone, 

I am busy developing a drupal module that pulls data from my companies product and displays it, I have the module working in D7 but during the upgrade process for D9 & 10 I want to make the resulting data easier to theme or plug into existing drupal websites, classically I have just been making routes and serving the template with the occasional theme override

What I would like to know is could I replace that style of working with blocks to make it less dependant on having the theme set up perfectly?

ajax commands not working in repsonse to an event on product detail page

I have a product type with its multiple product variations using 2 or 3 product attributes like color, size, etc. Here is what I am trying to achieve:

On a product detail page whenever the user changes a product variation by selecting a product attribute value i want to show a message for the selected product variation (like Max. purchasable quantity of this variation ). I am using ProductVariationAjaxChangeEvent to fire a ajax command that will alter the markup of that page and add a message somewhere on the page. here is my event subscriber code

Error: Call to a member function getColumns() on bool in Drupal\Core\Entity\Query\Sql\Tables->addField() (regel 246 van /home/fe

I'm getting this error while trying to run Cron. unfortunatly I have no idea where to look anymore. I've seen simular issues but not for commerce recurring. Does anyone have an idea of what could cause this issue? And how can I fix it?

PHP 8.0.27
D9.5.0
Commerce Recurring 8.x-1.0-rc1

----------------------------------------

D7 - Change Price field to bigint

I have a project that is heavily depended on Rules. But since Rules is basically useless in D9 & D10 I'm forced to use D7.

A price input greater than 21474836 will cause this error:

D7 - Change Price field to bigint

I have a project that is heavily depended on Rules. But since Rules is basically useless in D9 & D10 I'm forced to use D7.

A price input greater than 21474836 will cause this error:

Pages

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