Questions tagged [rules]

Use it for questions about the engine which allows site administrators to automate actions: the Rules module.

724 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
844 views

How to add multiple products to cart at the same time with attributes

I have different view blocks that display multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / ...
4
votes
1answer
762 views

Send mail notification when node of given type gets created

Use case: a small site where I want to warn all users by mail whenever a new content of a particular type is created. I thought I would try Rules+Actions to handle this. I'm working on a vanilla ...
4
votes
1answer
682 views

What may be causing “fails the check integrity”?

I need some help with the Rules fails the check integrity issue. I am running the Rules version 7.x-2.7. It works most of the times and appears to be suddenly. When I checked on the dblog it has ...
4
votes
1answer
72 views

Is there a way show user that the content has been automatically translated?

I am using the Translation Management Tool module to translate my nodes automatically. What I want is for users to see whether the node they are seeing (in their language) is the translated, or the ...
4
votes
1answer
164 views

How can I automatically add a comment to a node with rules

Can someone help me with this? I have created a view that gives me a table of certain fields. Now I would like to add a "bulk operation" that lets users add an automatic comment to that specific node....
4
votes
2answers
1k views

Upload file and fill in fields in one step; or trigger a rule when a file is uploaded

I want to make use of the Media module and the File entity module to upload files, in particular images, to my site without having to attach them to a node. Solely uploading images works like a charm, ...
4
votes
1answer
102 views

How to set up a question/assignment pool for a course website?

I have done quite a bit of Drupal work in the past, but am a bit stuck on this one. The basic idea is that the site will offer 1-on-1 tutoring to students. There will be there levels of users: ...
4
votes
1answer
424 views

Node access user reference

Main Modules: Node access user reference Node access node reference Flags Rules I'm trying to give access to a user that clicks on a Join Project flag link. I have a User Reference Field attached ...
3
votes
1answer
79 views

Allow the user to send emails to all or selected rows in a particular views display

Salut! I have been working on a 100% non-profit project for 1 month and now I am facing a problem with the main feature that this project offer for free. The project is a website about people ...
3
votes
1answer
92 views

How to stop negative user points?

I am using Drupal 7 and working on a rating site using Fivestar and Userpoints. What I want is for a certain amount of points to be deducted from a user when he makes a post, and also points deducted ...
3
votes
0answers
79 views

How to replace hook_rules_data_info()?

This question is about Rules on Drupal 8. Reading the documentation, I find information about how to replace many of the hooks, but not hook_rules_data_info. It might be obvious, but please point me ...
3
votes
0answers
72 views

Check if node is flagged after webform submit. Rules

I have a webform block on a node. I'm trying to send emails to the node (field email) after webform is submitted but only if the current node has been flagged (not the webform). I would presume that ...
3
votes
1answer
379 views

How to automatically modify a field after saving content?

I have posted this question on drupal.org (via a comment titled "field modification triggered by saving action"), but I realized that the thread is more than five years old. So I reproduce here the ...
3
votes
1answer
67 views

Rules scheduled email empty when using php variable, but not when hardcoded

I'm using rules scheduler (on D7) to set up a reminder email based on a time specified within a commerce order (more specifically a line item in the order). I was able to get everything set up ...
3
votes
2answers
306 views

How to pass data from a Rules Action to a subsequent Rules Action?

How I can add actions in the Rules module in which they have a relationship with each other sequentially. I mean a 1st Rules Action sequentially passes data to a next Rules Action and in that next ...
3
votes
1answer
1k views

How to embed a Rules Link in a View in order to trigger a Rules link to run?

What is the general process to embed a Rules Link in a View in order to trigger a Rules link to run? I have used the Rules Link module to create a Rules Link embedded in a View (it's a View that ...
3
votes
1answer
334 views

How to create a rule to compare an order total with a custom field in a content type?

I have multiple restaurants with each another value for minimum order price, this is a custom price field in the content type "Restaurants". I would need to make a rule where the total order amount ...
3
votes
1answer
81 views

How to periodically deduct user points for flagged nodes?

I have a node which is published. And I have a global flag, which users have to mark to make nodes visible in Views. This is easy to do. But then I need to charge 40 user points for every day that ...
3
votes
1answer
169 views

Deduct 10% transaction fee when user donates userpoints to another user using rules - Drupal 7

I want to use rules to deduct 10% of the transaction amount from a donor each time he donates userpoints to another user using the userpoints_donate contrib module. Currently there are no rules events ...
3
votes
1answer
222 views

Send Email upon Registration to Author of node

I have searched and can not find anything similar. I have a Rule, Event = send email after someone registers for an event. I have the rule sending to the user just fine. However, I am trying to also ...
3
votes
1answer
298 views

Enter OG audience to a node with Rules

How to add a specific Organic Group to a node in the action-step with rules (7.2)? I can't figure out which action and which options i should use. Now i've something like **action** Set a data ...
3
votes
2answers
307 views

Trigger Event After Node Is Indexed

I have a pretty basic Drupal 7 web site with Solr search (works great!). I would now like to perform some "work" after each node is indexed with Solr. First I tried creating a workflow rule but ...
3
votes
2answers
363 views

How to add a new user badge after earning a certain number of user points?

I'm using the User Badges and User Points modules. I want that when a user earns a certain number of user points, the user's old badge is replaced by a new one. For this, I have already created a rule ...
3
votes
1answer
2k views

How to prevent a PDO exception when using Rules to Set a data value after saving new content?

I need to do a simple thing. Write a rule that edits some elements of the node, as soon as it is created. Unfortunately Drupal doesn’t like that and crashes whenever you try to save the node within a ...
3
votes
1answer
263 views

Complex Shipping Rule: €3 Flat Rate for order's first 2kilos + extra €1.2/extra kilo charge

Well, the title is quite descriptive about what I'm trying to do with Rules for my e-shop. I have a flat rate for shippable products and I want to charge extra shipping costs to customers according to ...
3
votes
1answer
371 views

Rewrite id of a exposed filter block?

Hi there I'm trying learn how to rewrite a #id of an exposed filter block (ie. a searchbar filtering a list view. Is there an easy way to do this? Isn't something that is possible to do with rules? ...
3
votes
2answers
128 views

How to send emails to 20,000 + registered members efficiently?

I have a Drupal 7 site with about 20,000 members. Sometimes I need to email them all at once. Thus far, I have been adding a rules component (Condition: Make sure user has not opted out of emails, ...
2
votes
0answers
31 views

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable: function MYMODULE_rules_event_info() { ...
2
votes
1answer
386 views

How to add value on custom field using rule action

I am new to Drupal. Trying to get it work with Rules module. I have added new field (decimal type) to user: field_user_custom which I can see in DB as user__field_user_custom as a table. I want to ...
2
votes
1answer
156 views

Loop through all entities with rules

I have a content type (called Issue dates with fields called field_issue_date (date type) and field_issue_type (term_reference)) and by using Rules module 7.x-2.9 I want to check if the taxonomy field ...
2
votes
0answers
36 views

How to send notifications with rules to users with access permission to view content?

I have a rule to send an html mail when new content is created, but is not respecting the user permission to access content. Is an Open Atrium site that works with OG. I have a space with 7 teams and ...
2
votes
1answer
155 views

How to use Rules to email users when any field(s) is changed in a node (and include the unchanged/changed values for that field)?

I know how to email using Rules when a field in a node is changed and add conditions for particular fields whether they were changed. But I would like the email to contain the info which field(s) ...
2
votes
0answers
29 views

Booking events do not trigger an action and missing in module

Am using the Booking Time Slot module in my project. I configured some booking related Rules and noticed that they were not triggered. While trying to debug the rules configuration, I noticed that ...
2
votes
1answer
239 views

How to Send an email with the list of products ordered in its body?

I created a rule and a component, to send an email to my customers 7 days after their orders. This email asks them to leave a comment on the products they have purchased. My problem: I can not ...
2
votes
1answer
147 views

How to create a rule that grants user points after a user passed a quiz?

I'm using Drupal 7 and the Quiz module (version 7.x.5.x). I'd like to grant User Points to a user whenever a user answers correctly. I have to use the Rules module and I wonder how I can create a ...
2
votes
2answers
52 views

When a variable parameter is changed in a Rules loop, the variable is unchanged outside the loop

I have a Rules loop in which a variable parameter is modified. The variable was created before the loop, and added as parameter in the loop. However, If I check the value of the variable after the ...
2
votes
1answer
67 views

How to fix my Rule to notify authors of products by email at order completion?

I'm trying to send email notifications to authors of each products (line-items) in the order at completion. I have tried many things surrounding the rule below... that is now at a strange point in ...
2
votes
1answer
34 views

Why does my rule have no effect on a VBO list of unpublished nodes but does work for published nodes?

I set up a rule that is supposed to delete some unpublished nodes. I created a view with VBO for the rule to work with. The rule is triggered by cron, leads a list of nodes provided by the view with ...
2
votes
1answer
64 views

Panel Page with Node Views, Flags and Rules Integration

I created a page where users can submit friendly games. Other users can show their interest by flagging (Flag A) these games. The author of the game can see all prospects in another view (View 3 ...
2
votes
2answers
48 views

Control content type availability based on day and time

I have a website that delivers products that are ordered during the day. I would like the order form to only be available during business hours. Outside of those hours, the form shouldn't be ...
2
votes
1answer
620 views

How to check in a rule if the data from a field collection has changed?

I want to add a rule (using the Rules module) for printing a message after changing a field in a field collection. The field collection consists of the following three fields: Reference to Version (...
2
votes
2answers
315 views

Using computed field value in Rules

I'm using Commerce module and I have a line item with a computed field that's calculating a date. This field finally shows a date. Then during the checkout process I have a form with a Date field (...
2
votes
0answers
67 views

How can I pass values to Rules?

I would like to pass values to Rules (eg an array of words) and then do some Rules magic with them (eg create new nodes if they dont exist already). I found one solution here How to reference ...
2
votes
0answers
202 views

Displaying Token Field Labels From Fetched Entity In Rules HTML Email

I am sending a MIME HTML email using rules. Much of the information contained in the email comes from a fetched custom entity (custom ECK entity). Using the available replacement patterns, I can get ...
2
votes
1answer
82 views

How to send a message notification based on a flagged node being linked via entity reference?

I'm trying to figure out how to make the following work: Sending notification based on flagged node being linked via entity reference. I have a 'News' content type and a 'Band' content type, that has ...
2
votes
1answer
46 views

How to definitely stop inside a Rule and prevent any further actions in the rule from executing?

I have not seen that the Rules module can do this out of the box, but how can I prevent further execution of subsequent actions in a rule? For example, I have multiple components in a rule. The first ...
2
votes
3answers
325 views

Avoid user to multiple purchase of same product

I would like avoid a user to buy the same product twice or more, I'm not speaking about the quantity limitation during the checkout (I've already set quantity to 1 for every purchase)...for example.....
2
votes
1answer
77 views

How to make Taxonomy replacement tokens available to the HTML email action in Rules?

I have created a rule for a client that triggers an HTML email to them every time an authenticated site visitor downloads one of their PDF brochures. I have no problem including things such as the ...
2
votes
2answers
1k views

How to fix rules which unable to evaluate action?

I have created two rules to act on some events related to commerce products. The first is to act on reference node delete event, to remove the product upon node delete. the second is to delete the ...
2
votes
1answer
992 views

How to send an email using a field key?

I am attempting to send an email to a field selected value using the Rules module. The user selects a faculty member and saves the node. The rule should fire off and email based on the field's key. I ...