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
4 views

Drupal Commerce and Commerce Stock module: how to send email alert when stock=0

i need to send email alert to shop admin when stock of some variations is equal to zero. I thought there was a rule to do this but I have not found it. what is the right way? ty
0
votes
1answer
7 views

Send email after term is selected in checkbox in a node form with rules

I have created a node form which has taxonomy vocabulary Application Status with three terms represented as check boxes Approve Masters Approve Honours Rejected What I am trying to achieve is ...
-2
votes
1answer
11 views

Enable menu item when user has added a node

In my website the user can create a node. I want a menu link to appear only after the authenticated user has created the node and not before that. Is it possible to enable a menu link only when the ...
0
votes
2answers
20 views

Action when a comment has been replied to

I have a unique case where we need to do something, namely a behavior where a user Comments on a node, and when a new comment is made in response to him, we need to "alert" the user in a variety of ...
1
vote
1answer
12 views

How to change the referenced entity field value?

I have a node that has a node reference to another content type. What I want is to update the referenced node field value on updating the node; Let me clarify the issue. For example I have a node of ...
0
votes
1answer
46 views
+50

I can't set a data value using rule on a custom entity

I have created a custom entity "Project" with this fields: id, name. I have created a rule and added an action "create entity" and selected "Project". I have added another action "Set a data value" ...
2
votes
2answers
25 views

What does the rule event mean “Drupal is initializing”

What does "Drupal is initializing" mean as a rule event?
-1
votes
0answers
18 views

When user is assigned to Organic Group, I need to get the value of a field on the Group node

I have three Content Types - Course, Course Group and Learner Form. The Course Group node is an Organic Group and has a reference to a Course node with field_course. When a user is added to a Course ...
0
votes
1answer
9 views

sent mail when webform updated by rules

I have created one rule which has set condition as user has role and selected roles, whenever i have updated webform from other user role account, then also it will execute every time. please do ...
0
votes
0answers
12 views

Need publish created POLL using cron

In our portal, we allow users to create poll. we received list of polls from users. we shortlist 5 top polls and need to published poll one by one to every month through crons. Please tell me how ...
0
votes
1answer
24 views

Rules : send email when user submit first node

I want to send congratulation email to user on submitting his/her first node. I want to implement this through rules, but i am confused that there is no such option except PHP evaluation which is bad ...
0
votes
1answer
6 views

Rules token one-time-login-url is showing up empty

I have a rule that, after submitting a webform, a user gets created and then sends two emails to that user. One saying their form data is being looked at by someone for review before they get a ...
0
votes
0answers
20 views

Specify the reason for the refusal of publication node

Please tell me whether it is possible to realize the functional moderation node using "rules" and "rules link". When you click the "Decline", moderation offers fill in the "Cause"? 3 day looking for ...
0
votes
0answers
13 views

revert to specific revision programmatically using rules

How would I set up a rule to be able to reset a node to their original state after for example flagging a node? I tried it but it seems that when you try to add an action to 'set a data value' rules ...
0
votes
0answers
16 views

Views Bulk Operations asks me for a uid

I have a views bulk operation that is supposed to create an entity registration, similar to described on this page under the rules heading. I select a given entity node, and I get this dialog: How ...
0
votes
0answers
33 views

Ubercart rule to modify user profile field

I have set up a product and a rule to change the value of a custom profile field. How do I link the ubercart product to the rule so that once a user buys the product, the rule kicks into action and ...
0
votes
0answers
10 views

(current-user:points] token showing points of the full category

The token [current-user:points] showing points of the full category. Example, the token value displays the points of all articles in the article section and I had added the token in every article and ...
0
votes
0answers
8 views

PDM: Remember dismissed messages until user logs out

I am using the Persistent Dismissible Messages module with Drupal 7, which works perfectly, however I could do with the adding a certain bit of functionality. When the user logs out, I need PDM to ...
-1
votes
0answers
17 views

Sending reduced image by email using Rules

Faced with an interesting problem in Drupal with the rules. I'm trying to send the user to preview the image node on e-mail (html mail), but you can only attach a link to the original image, and a ...
0
votes
1answer
35 views

how to send an email when the content is unpublished

I'm using the rules module for sending emails. When the user adds a node, it can only be published when the admin approves it. For this I have used the content approval module. I have made a rule ...
0
votes
1answer
22 views

Perform action on logout,

I would like to add javascript on logout. I tried using hook_user_logout but the javascript doesn't get added. Even adding something as simple as drupal_set_message doesn't result in a message ...
0
votes
1answer
14 views

Drupal 7 Rule to save node based on fetched entity throwing EntityMalformedException if field empty

So I have a rule that attempts to fetch a node using fetch entity by property, and re-save it with a new author if a user field value matches a node field value upon user login. It works just fine ...
0
votes
0answers
8 views

When creating commerce order with rules create entity the order total price is not set

When creating a Commerce Order entity with Rules Create new entity action, the Order total price field is not being set even though i have set this field on the form. I have added a Save Entity (with ...
0
votes
0answers
13 views

commerce: is it possible to create a product via rules?

I want to create a site where experts can be booked from customers (individuals or companies). When registering, the expert can specify his daily rate, his hourly rate and his course price if he ...
0
votes
1answer
26 views

Drupal Commerce Multiple Prices

I'm trying to get a two tiered pricing structure into my store. Essentially I need every product to have two prices. There's the main price but there's also a secondary price that get's triggered if ...
0
votes
0answers
14 views

How can I refer to a table to make a level system in Drupal?

I'm working on a RPG website. Users are awarded userpoints (named XP for the need of the "game") depending on their actions. I want to make a level system based on these userpoints. I already made a ...
0
votes
0answers
20 views

New to rules, want to send a custom email to myself when order is made

im really new to Drupal and I brought onto this project to learn a little bit about the development process. When a person makes a purchase on the site, and a payment is received I not only have an ...
0
votes
0answers
14 views

How to edit user picture with Rules or copy that picture to another field

I've read this /questions/26395 but instructions are not clear and I'm not sure that solution apply to my case (and of course I cannot comment cause of missing "reputation". I cannot find the user ...
1
vote
1answer
47 views

Compare two views that present two different content type and delete nodes

this question is like this: How to delete a content in a view with view rules I didn't know why but i make this question with another account that i cannot got access now So the problem is: I got two ...
0
votes
0answers
16 views

Drupal Commerce Shipping

I have a really complex set of shipping rules I have three product types Product type A with a rate of £1 per product Product type B with a rate of £2 per product Product type C with a rate of £3 ...
0
votes
1answer
52 views

How to delete a content in a view with view rules [duplicate]

I got two views that displayed two different type of contents. Content A got a field "Title" and content B got the same field. I want to find and delete any number of content of type B that got the ...
0
votes
0answers
46 views

Commerce : pay deposit at checkout and full settlement later

In a travel booking website, how can I configure checkout settings so that customers pay only a n% deposit of the order total at checkout ? If the order is created : less than 30 days before the ...
1
vote
2answers
19 views

Rules erases the last value inserted

i've an import module built with Rules which imports my users. An user can have one or many conventions. I manage these conventions with taxonomy. Conventions are store in my user fields, 'Number of ...
0
votes
1answer
20 views

Associate an user to a taxonomy term

I'd like to associate an user to a taxonomy term. I create users in a process import managed by rules. I didn't found a solution with an existing module so I try to develop mine. I've also installed ...
0
votes
0answers
8 views

Rule won't fire up when user's email gets selected according to OG membership field content

For a use case where each Classroom is an OG group, and each user (student) can belong to n groups, how may I set an "approved or not" (select list) field for each group related to each user? I need ...
-1
votes
1answer
23 views

Time limit items in your cart [closed]

Product in your cart active only 20 minutes, then is removed how to do?
0
votes
1answer
32 views

Enable Node menu automatically

I have a need to automatically create an Article node type each time a Basic-Page node type is created - I am using Rules successfully to achieve that effect. My problem is a Menu link also needs to ...
0
votes
1answer
31 views

Rules sending email to profile2 users

I am new to drupal. I have installed profile2 module and created one profile named as "Travel Agency". Now I want to send different mail to this user when he/she registered with my site as "Travel ...
0
votes
0answers
15 views

Limit node creation; each course the user is registered for, fill out a form

Here's my situation: I want to have users register for courses (Course node). For each course they register for, they need to be able to fill out a form (Form node). If they have already filled this ...
1
vote
1answer
44 views

Rule to check if a date value is a specific day of the week

I want to set a rule which checks a date of format "2014-09-24 08:43:39" is a Monday using the data comparison rule. I have tried to manipulate the data selector for the date using the ":custom:N" ...
0
votes
1answer
13 views

Commerce order either stays as pending or grants double to customer

I have 2 rules to handle orders of credits on my site. The first rule changes the order status to Completed if the order is no longer a cart. The second rule grants credits to the order owner using ...
0
votes
1answer
13 views

Rules: How to send an email when an OG membership field changes its value?

I have some OG groups in my site. Each group is an online classroom. The membership has a few fields (I use the default membership), and one of those fields is a select field with "approved" or "not ...
0
votes
1answer
19 views

Check if specific products are in cart

I'm trying to create a rule whereby: "If a user flags a node and there are specific products already in the cart then redirect to the cart, otherwise redirect to a specific product" Not had any luck ...
1
vote
1answer
14 views

Send Email using rules or other module depending on a field value?

What I'm trying to do is when a user creates a node on content type "Sample" with the field "Priority" set to "High" that said user will receive an email notification containing the field values of ...
2
votes
1answer
21 views

Commerce Quantity Volume Discount Rules

I'm trying to make a drupal commerce pricing rule so that if the customer has 14 items in their cart they'll get 10% off their order. Here's what I tried: { "rules_overall_discount" : { "LABEL" : ...
0
votes
0answers
13 views

Rules: Check node reference prepopulate field value before submitting

Setup: I have a content type application with a node reference field that is prepopulated with a job node. The idea is that people click the link in the job node and are taken to the application ...
0
votes
0answers
17 views

Rules - Set language of message notification

We need to set up a rule that will send an email in the language of the Customer of an order LANGUAGE. But the Message notify action in rules takes the CURRENT user interface language... so that ...
0
votes
0answers
11 views

Compare 2 collections of checkbox choices

WHAT I HAVE NOW: When the user registers they have choose their interest in topics, they can check multiple checkboxes. These checkboxes are a term reference to the vocabulary topics (there are terms ...
0
votes
0answers
10 views

Invoke the custom webform datas(text field values) from rules

I want to invoke the custom webform datas(text field values) from rules. for example, This is something similar to product quote. I have list of product parts(check box with label) under some ...
0
votes
1answer
21 views

Check to determine if user is member of any group of specific type

Our website has three types of groups: area groups, support groups and member organized groups. While a member can join several or none of the support groups and member-organized groups, we do want ...