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

learn more… | top users | synonyms

0
votes
0answers
7 views

Send mail to specific user on new account creation

I have an alumni association portal. When a new user creates profile on the portal, that account stays blocked until a specific user from that batch/department approves it. I am trying to make use ...
3
votes
1answer
95 views

How to create a node from a Webform using rules?

I want to create a node based on a webform data using the Rules module. This is because of a complication surrounding relationships within the associated CRM system. I am already at the point where ...
0
votes
0answers
13 views

Add donation panel in checkout page without cart

in my website is possible to buy one item at time, so I have a rule that empty the cart when a new item is added to cart (and another to skip the cart page, because i don't need a cart). This works ...
1
vote
1answer
27 views

How can I update content automatically every X hours?

I have a content type with nodes. I would like the nodes to be updated every five hours. Now in case some nodes have not been updated, the content admin is alerted with a warning message with a list ...
2
votes
0answers
32 views
+50

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

I have different view blocks that displays 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 / ...
1
vote
1answer
15 views

What causes the errors in the rules that come with Commerce Coupon?

I am trying to use Commerce Coupon module in my project. The problem is after download and enable this module, rules created by this module got error. And I can't find out what happened to this ...
0
votes
0answers
10 views

Avoid return path for SMTP when using The mail's from address in rules

In SMTP settings admin@domain1.com is used. If in rules The mail's from address is different. How to avoid return-path admin@domain1.com? Is it possible to configure that the second address in rules ...
0
votes
1answer
10 views

SMTP server per role

Mails must be sent to certain roles from certain domains. Is it possible to setup SMTP server per role? (through rules or by coding)
0
votes
0answers
8 views

How to send email through rules from a certain domain?

SMTP has two different email boxes for two different domains Domain1 and Domain2. How to send email from a certain domain through rules? Action: Send Email from domain (as the standard rule but with ...
0
votes
1answer
18 views

Send email to webform submissions when new content is created

I have a webform on my site, which collects names and email addresses, for the purposes of receiving content updates. When a new piece of content of a specific content type is added, I want to be able ...
1
vote
1answer
36 views

How to send the views record in an email to admin at regular time interval of 8 hours?

I have created a rule to sent the view results, by using this: <?php $view = views_get_view('VIEWNAME'); print $view->preview('default'); ?> But I want this Rules Action to occur every 8 ...
0
votes
0answers
5 views

Update Quantity of Line Item in all Pending Orders

Let me begin by saying this, although I'm not new to Drupal, I am fairly new to getting into hooks and the like, so any amount of guidance is helpful. Also, I know my use case seems strange, but it's ...
0
votes
0answers
22 views

Update a “status” field of a Group with the best result of a content group field?

I’m using Rules and Organic Groups 2. I have a content type A and a content type B. A is Group and B is Group content. A can have many content group B. The group A has a field_A “status” that has ...
0
votes
1answer
15 views

User browser information and ip address tokens in rules

I am sending an email to admin from contact form. In the email I want to send the user browser information like browser name and version and the user ip address. But I'm unable to see the tokens for ...
0
votes
1answer
20 views

Help with this rule

How can I do this rule: Before adding a product to the cart: if there is a product in the cart with the same title name plus a character "-". then set the price of the product with the name ...
1
vote
3answers
41 views

Rules debug: How can I display the value of a variable inside a condition?

I have created a rule using the Rules UI. My rule is not working, and I need to debug it, displaying the values of my variables inside a condition where I make a comparison. I see within Rules ...
1
vote
0answers
29 views

How to allow comment author to reply to comments on his posts

The answer to "How to disallow a user to comment on their own nodes?" includes a rule that unpublishes comments made by an author on his own posts. The rule works and is reproduced below. { ...
0
votes
1answer
21 views

How to compare current year with an integer field in Rules?

I would like to compare the current year with an integer field (let's say a "year of subscription" field) using Rules (if the field value is lower than the current year, the user has no access to a ...
1
vote
0answers
22 views

Add extra weight to a command

I installed the module "Physical Fields" on my site then I created delivery method according to the weight of the order. I want to add 150 grams to each order (corresponding to the packaging weight ...
2
votes
2answers
27 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 ...
0
votes
1answer
21 views

How do I send email to Users of a Role that belongs to Country using Rules?

I'm using Profile2 module to assign a Country to a Role. For example I have: User1 | Role: "International Members" | Country: "UK" User2 | Role: "International Members" | Country: "Poland" User3 | ...
0
votes
0answers
19 views

How to grant access file license to Product creator?

Is there a way to grant access file license to Product creator (maybe in Rules) in order that Product creator could view file link and he/she could download it?
0
votes
0answers
15 views

how i get domain sitename from database

i have created new column in the {domain} table called : sitename_ar and i created a Rules : after saving new content : set data value and the data is : <?php $domainGet = ...
0
votes
2answers
14 views

'After update' event firing when node is deleted

I've got a rule set up that uses the following action: After updating existing content of type It's working fine when a node is updated, but I just discovered that this rule also fires when nodes of ...
3
votes
1answer
66 views

How to implement gamification in a Drupal site and award incentives?

How can a Drupal site be transformed in a gamification platform, which can be used to encourage actions on your site that you want users to perform within a specified time frame. Some examples of ...
-1
votes
0answers
5 views

Cache Actions Module

I have the cache actions module enabled but do not have the list of options as stated in the module. Clearing Drupal cache bins Clearing CSS/JS cache Clearing The cache of specific views Clearing ...
1
vote
1answer
21 views

debugging an array while creating custom rule

I am trying debug a custom rule I am creating. In my helper function I am calling an array I want to work with. I want to dpm the contents of the array so that I can see what is available, but it is ...
0
votes
0answers
19 views

Drupal commerce membership check

I'm currently creating a membership system for a website. I use the module Membership Entity Commerce. I can order a membership and the account is created. Everything works for that. I have 2 types ...
0
votes
1answer
7 views

Set data value in rules not written when using a condition

I like to create a rule that will overwrite my body field after saving new content. This is content from the same node that has been created(field_update) and some content from referenced users form a ...
1
vote
1answer
21 views

What is the default operator in Rules module conditions?

I have an issue on production site that I cannot reproduce. The Rule below should trigger an email if the new content is published. But emails are being send even if content is not published. { ...
5
votes
3answers
184 views

How to award userpoints to referring users?

I am creating a referral program on Drupal. I have almost everything working right except awarding userpoints to users. I want to award userpoints to users after the person they refer to the site ...
1
vote
0answers
27 views

Using Rules to compare cart and commerce 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. ...
0
votes
0answers
19 views

How to hide comment path field in a view when comments are closed

I have a view that lists teasers of articles that were written. The view also displays under each teaser two field. The first one, "0 comments" shows the number of comments posted and is a link to ...
0
votes
1answer
44 views

PrePopulate a Node URL from Previous Node via Rules Link to Add Content Form

Scenario A Content Node's URL needs to be incorporated into an Application (Node Add) for a future reference so the users can view their Applications made. The user clicks on a Rules Link ...
1
vote
0answers
20 views

Can a VBO form be integrated with the Commerce Add-to-Cart form to allow adding optional add-on products with checkboxes?

With VBO and Rules I can display a list of Commerce products with checkboxes and a button to add the checked products to the cart (see how). Is there a way to integrate these checkboxes with the ...
0
votes
1answer
54 views

Redirect to last page after saving new content with rules

Drupal goes normally to the new node after creating or editing it. How to redirect to the last page where the user clicked on the node/add link using rules? I tried different tokens with no success. ...
1
vote
1answer
48 views

Rules: Copying field from user's account to field in content type

D7. Using the File Field Rules module, I am trying to copy the content of the image field of the user's account ("picture") to another image field ("field_node_image") in the same user's image gallery ...
0
votes
0answers
26 views

How do I create a Rules component for merging multiple field items into one?

I have a "Notes" field on the user. A text area that allows unlimited number of values. I need to merge all of them into just one and delete the others. How do I create a rules component to do this ...
0
votes
0answers
26 views

don't let users buy more than one product of the same type in drupal commerce [duplicate]

how can I prevent users from buying more than one product of same product type in drupal commerce? I need a solution using rules module. be careful please!!!as I need to limit users on product type ...
3
votes
1answer
47 views

How to disable a rule on a certain date?

Anyone knows how to set an expiration date on a Drupal 7 Rule (using the Rules module) so that the rule is disabled on a certain date? Example Use Case: We've created a product (using Drupal ...
1
vote
3answers
20 views

Is it possible to use Rules to make an action to entities that refers to other with entity reference

I have type Article that refers one user with entity reference. article1 refers to user1 article2 refers to user1 I want a Rule to show a message on user profile with all the articles that refer to ...
0
votes
1answer
20 views

Rules: From group content up to group

D7 - OG 7.x-1.5 Does anyone know how to write a rule that would take the user from a group content page to the group page the content belongs to? The event could be triggered by a button on the ...
3
votes
3answers
62 views

How to use the Rules module to perform a simple anti-spam validation using specific keywords?

My site is under repeated attacks by spammers who create accounts manually with nonsence email addresses and "fake" IP addresses (no way to block them). I came up with the idea of blocking node ...
0
votes
0answers
12 views

Refresh page only for flagged node author

I'm trying to refresh page for only the flagged node author with rules and views_nodejs. What is the right rule configuration to make this happen?
0
votes
0answers
15 views

How to create a Commerce order after flagging a node with Rules?

On a node content type there is a flag - when the user flags the node, a commerce order should be created. I found this https://www.drupal.org/node/2483629, but I am not sure if this is the correct ...
0
votes
0answers
34 views

How to trigger some action on specified time of node

I have a node of custom content type and one custom field for flag of specified time. How to check time is over and perform some action when time is over.
0
votes
1answer
23 views

“Create a new account for an anonymous order” Rule issue with required field

I am using Drupal Commerce. I have enabled the anonymous user to access checkout and place an order. There is this rule available in Drupal commerce("Create a new account for an anonymous order") ...
3
votes
1answer
49 views

How to find the right data selector in Rules Components?

In Drupal 7, I have set up a rule to automatically close blog comments after two weeks. That works well. Now, I am trying to have a block displayed on the blog entries when comments are closed. For ...
0
votes
1answer
21 views

Error when using LDAP Views within Rules

My objective is to pick a user from an ldap and then create his drupal account. In order to do this, 1) a user picks a name (dn) from an LDAP server using the LDAP Entry Reference module (which ...
3
votes
1answer
47 views

How to automatically modify a field after saving content?

I have posted this question on drupal.org, but I realized that the thread is more than five years old. So I reproduce here the question made there: field modification triggered by saving action I ...