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

Allow only 1 quantity in cart

Hello All,

I'm a beginner learning Drupal Commerce. Currently, I'm working on a project on E-Learning concepts. My website will have different study materials; some free and some payable. I'm stuck at below major points.

Here I want to test below conditions and display the product details on product page:

1) If the course is free then entire content of the course will be displayed. If payable, then only summary of the course needs to be displayed. If user has purchased this course, then the entire content needs to be displayed

set up drupal with git for phpstorm on local pc for development for dummies

I am completely new to Git or Bitbucket. I don't understand the workflows to use. I need help.

I'am struggling with the best workflow for developing front-end / back-end development in phpstorm and how to manage the files in Git of bitbucket.

tableselect element not displaying radios

Using Bootstrap base and robotic sub to theme site. I have tried to apply each patch wile getting (Could not apply patch! Skipping. The error was: Cannot apply patch) errors out... In the debug I am able to have the radios display by using radios instead of radio.

<input data-drupal-selector="edit-selected-life-144" type="radio" id="edit-selected-life-144" name="selected_life" value="144" class="form-radio form-control">

If I change type="radio" to type="radios" it works.

Get entity for textfilter

I have created a custom textfilter. That filter may fail on some pages.

My idea is to log these fails so the user can fix these. Problem is that i can not find out how to get the entity that filter is run and failed for.

As textfields can be attached to any entity i can not just check for "node". Any ideas or hints? Thank you.

Btw. it is for the contrib module: https://www.drupal.org/project/amazon_pa

Customer Only Viewable Page

Is there a way to setup a page that only someone who has purchased something can view it?

General "authenticated users" could not be able to view it.

Thanks

Schema API - How to access the $defaultSchema

Hi everyone, I'm working on functional tests for a module in Drupal 8.9 using postgresql as the db

The issue is that during a functional test, what I think is happening is the schema name changes to a test******* where the asterisks is a randomized number.

Because I have sub functions that altered the creation of tables by adding my own schema to the SQL statements (simple use schemaname.tablename) in the queries, this errors out when I try to determine if a table exists.

Pages

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