Questions tagged [drupal-rules]

The Rules module is a Drupal module that allows site administrators to define actions that are conditionally executed, either programmatically or in response to predetermined events. Don't confuse this tag with drupal-roles.

The Rules module allows site administrators to define actions to be conditionally executed, either programmatically or in response to predetermined events.

Resources

125 questions
0
votes
1 answer

Drupal 8: Only add to cart if user has enough credits

I've a site where transactions are based purely on credits. No actual money is exchanged. In such a case, I want to restrict users from adding products to cart if they do not have credits to do so. In steps of how this should be accomplished, here…
0
votes
1 answer

Cannot send emails using drupal 8 rules

I have the drupal 8 varbase distribution with the rules plugin installed. (version Rules: 8.x-3.0-alpha4 Typed Data: 8.x-1.0-alpha1) When I make a rule to send an email when a user changes his/her account, I get the following error: The website…
bspoel
  • 1,567
  • 2
  • 13
  • 22
0
votes
2 answers

Drupal 7 - Send an E-mail to user on content modification

I have a webform page where user submits its query. On form submission a confirmation mail is sent to the user and admin. I have installed the Custom Webform Comment module through which user and admin both can comment and change the status in the…
hiral vadhel
  • 1
  • 1
  • 5
0
votes
1 answer

How to set the published content by the Drupal Rules module node as the frontpage node?

I've got a rule set which publishes a node based on some condition. This is working great. Now I would like to also promote that node as the front page (not publish it in the front page): in other words, I would like to automatically change the…
jonjbar
  • 3,896
  • 1
  • 25
  • 46
0
votes
1 answer

Commerce rules not showing in Drupal 8

I am currently working on a Drupal8 website where I want to sell user roles. I tried Ubercart with role assignment, but this didn't worked out. I found a tutorial where this was done with Commerce (drupal 7: https://vimeo.com/33808828), but I don't…
0
votes
1 answer

Drupal 7 creating list from comma separated field in Rules

I am trying to create a list of nodes by using the value of a submitted field with comma separated values. I want each value to be used a s a list item. How can I convert the comma separated list into individual list items?
Akirat
  • 41
  • 4
0
votes
1 answer

How to pre-order drupal commerce product when it is out of stock?

I am using Drupal Commerce 7 module. How it is possible to pre-order commerce product even it is showing out of stock ? For example - product will be shown out of stock but customer can pre-order that product and give payment, so when the product is…
0
votes
0 answers

Why this db_query used in Drupal 7 Rules custom PHP crashes my website

I can execute this code in a page node like a PHP code, but when I try to run on a custom php action in Drupal 7 Rules, my website crashes (white screen). What's wrong? $OrderID_miquel="40"; $query = db_query('Select…
0
votes
0 answers

How to send an email to all members of a Drupal Group when new content is created?

I've watched the tutorial about "Drupal 8 Group Module Overview". I have now a Drupal site running that uses the Group module. I want to create the feature that sends emails to members once a new content is published. I also found the question "How…
Thomas Johansson
  • 583
  • 2
  • 6
  • 15
0
votes
1 answer

Send mail to email addresses from webform when content is edited

I am attempting to use the rules, webform and webform rules modules to send an email to the email addresses of fetched submissions after existing content is edited. QUESTION: Can anyone see why my rules are not sending emails? The rules I have…
sephiith
  • 1,187
  • 3
  • 23
  • 47
0
votes
1 answer

Drupal redirect when domain is not a particular version

I have example.com -> example-example.rhcloud.com (301 redirect) and michael.example.com -> example-example.rhcloud.com as a CNAME record. Godaddy doesn't allow for CNAME root domains and I didn't want to use cloudflare at this point. Is there a way…
Michael
  • 1,759
  • 4
  • 19
  • 29
0
votes
1 answer

Drupal 7 Rules: Targeting users in Organic Groups

I have several group content types set up, but only want to allow a user to be a member of 1 group of each type (there may be 3 'admin' groups, but a user can only be a member of 1 admin group, but they can also be a member of a group of a different…
0
votes
1 answer

How to add a custom Rules "action" in Drupal?

I'm using the Rules module in Drupal 7, and I tried to add a new Rules "Action" I followed the steps described in How to create an custom rule action using hook_rules_action_info? to create a custom rule action using hook_rules_action_info: I tried…
JuseNNN
  • 13
  • 7
0
votes
1 answer

In Drupal, how do you create more events in the events dropdown of the Triggered Rules?

In Drupal, how do you create more events in the events dropdown of the Triggered Rules? I'm not sure if I'm supposed to create a new trigger, a new action, or something else.
Dylan West
  • 627
  • 10
  • 22
0
votes
1 answer

Create a new node, for all users of certain role every day

I have a content type which I want a node to be created for every active user of a certain role every day. The node should be "created" by the specific user, so they can go edit it when they login. I've tried to use the rules module for it, but…
1 2 3
8 9