Questions tagged [rules]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
348 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 ...
1
vote
1answer
331 views

Commerce Rule For Sales Tax On Shipping To One State

We want to only apply sales tax on orders shipped to a particular State. I tried to cobble together the following rule from the included 'Price Component' and it seems to apply tax on shipping for -...
2
votes
2answers
58 views

How to automatically change a Content type field value based on Date field?

I'm using Drupal 7, I have a content type, where I have two fields for project allocation: Status(Active/Inactive) End Date If the "End date" is less than current date, then the "status field" ...
1
vote
1answer
357 views

Send email with custom tokens on event?

I am trying to make a rule which when acted upon will send an email with custom details based on the rule arguments. I made my rule event and that's all working fine it shows up, but when I add an ...
2
votes
4answers
1k views

How to delete all nodes referencing a given one?

I'm working on a catalog based on Drupal Commerce. I have a product display content type referencing product entities. I'm thinking about the ways to make life of a content manager easier. I made a ...
1
vote
3answers
463 views

Uploading file, parsing and displaying data

For a site i am building right now, there is one component that I would want the user to upload a file, where it will be parsed (currently a python script, but can be ported to something else). The ...
2
votes
1answer
531 views

Rule to send an e-mail with the URL of an uploaded attachment after node change

I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set ...
0
votes
1answer
18 views

Entering views result to field through rules

When I create a new OG, I would like the user with the least number of OG subscriptions automatically to be added to this group. So I created a views block where I count and least the user with the ...
1
vote
1answer
347 views

“Missing configuration for parameter commerce_order”

I'm trying to define a default rule in a small module based on Commerce Price Table and Commerce Rules Extra. The rule is to set price based on the quantity of produtcs that contains a partial sku in ...
1
vote
1answer
339 views

Rules triggering rules - how to enforce or disable it

There are many situations in which a rule could trigger another rule. For example, If I have a rule that reacts to a Node being created, I can trigger that rule with another rule that created a node. ...
0
votes
1answer
378 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 ...
1
vote
2answers
361 views

Calculate tax before discount

I have created a rule in Drupal with the following conditions/actions. With this rule, I give 10% discount on a specific product type, but the tax (21% in The Netherlands) is still calculated on the ...
0
votes
1answer
51 views

How to build a simple data comparison rule?

I am working on Drupal 8.7.10 and I have installed a fresh Rules 8.x-3.0-alpha5. Could someone help me to start a very simple rule? I am still struggling with the "new" Rules. All I need is to send ...
2
votes
2answers
61 views

Automatically creating an organic group for each new user

I would like to automatically create an organic group for each newly registered user. I checked all its settings, no such option with organic groups module, then I checked the rules module but no luck ...
1
vote
1answer
470 views

Clone product display with referenced product

I am using Commerce Kickstart for Drupal 7, and I need to be able to clone products. In Commerce Kickstart you have all the products just as "reference" of node, product display. I mean, the products ...
0
votes
1answer
337 views

pass result of Rules loop to variable to use outside loop

In Drupal Commerce, i have created a rule that calculates the price by adding some fields (custom line items), and then sets a result. Now i want to make a loop (to pass over fields of a Field ...
1
vote
1answer
349 views

Add percentage based fee/tax to specific product types on checkout in Drupal Commerce

In Drupal 7 Commerce, I have two product types, a service product and a physical product. I would like a 6% fee added to all physical products only when the user gets to the cart review page. ...
1
vote
1answer
29 views

Using group and rules modules to automatically create group for new user

I am using the Group (not OG ...) and rules modules for this task. I created group type, Applications Support. Then I created a rule, After saving a new user. Under the rule, I used the following ...
0
votes
2answers
72 views

Create new node and assign it to user after they have been registered

I have one user role on d8 and have few additional fields on user account so when people are registering they can leave additional data. What I would like to achieve is that when user registers - new ...
-3
votes
0answers
18 views

Update computed field with Rules

i have a Computed field on Node1 and I need to update it after updating another field on Node2. I am looking a way to do this with Drupal 7 and Rules, but so far nothing. Can't find an action to this....
0
votes
2answers
547 views

How to trigger email by comparing date value in node?

I'm using Drupal 7, with Rules and Rules Scheduler. I have a content type "Tutorial Class", with fields as below: Class Date and Time Feedback requested (Radio button: Yes/No, default is no) I ...
3
votes
1answer
377 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? ...
0
votes
1answer
343 views

Multiple OR conditions are not working with Rules

Multiple OR conditions are not working with the Rules module in Drupal 7. I have profile2 module. And I want to notify user with an email if one of the fields from the user's profile is empty, I have ...
0
votes
1answer
339 views

Custom field Rules implementaion

I added new "Markup" field into commerce_product table using custom module. Now I need to create a rule to calculate (sell_price=prod_price*markup), but I can't acccess Markup field throught Rules ...
1
vote
2answers
1k views

How to make an OR statement in rules?

I am using Rules with Rules Once Per a Day. Although Once Per a Day is not part of the default Rules, the general core of my question applies to default Rules. I want Rules per Once a day to activate ...
3
votes
2answers
371 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 ...
4
votes
2answers
789 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 ...
1
vote
3answers
340 views

How do I collect field values of a submitted webform?

I'm trying to integrate a Mailchimp mailing list into Drupal. The Mailchimp list requires: First Name Last Name E-Mail The client already has a list in this format so ideally I need to collect this ...
0
votes
1answer
383 views

Privatemsg rule problem

With Privatemsg and Rules modules, I want to create a rule : Anyone create a node, a special role user recept accepted a privatemsg. But when I create the rule, in the actions, meet a problem: The "...
1
vote
3answers
336 views

How to use Rules to prevent the creation of nodes if certain conditions are true?

I need this in Rules: When a node is being created (before the node is saved), and certain conditions are true, the user can't create the node, and an error message appears instead. I have a rule ...
1
vote
1answer
532 views

Sending email notifications to webform submissions

I am trying to create a rule that will send an email to a list of webform submissions, notifying them when new content is created. So far, here's what I have: Event: after saving new content of type [...
0
votes
1answer
439 views

How to set “Entity has Field” when the Rules Event is unrelated to the entity?

In Rules, I am trying to update/calculate a field in the User's account upon completion of a commerce payment. The condition data selector obviously only wants to populate commerce related fields, ...
1
vote
0answers
29 views

Help me write a Rule condition and action to remove discount line item and to add payment

I am trying to write a rule for an existing order. Order has a zero total due to (Commerce) discount, e.g.: Widget $3.00 Discount -$3.00 For the condition, I'd like to check if a specific discount is ...
0
votes
2answers
440 views

How to process a multiple values field (comma separated) in a Rules Action?

I am using modules "SMS Framework",Clickatell for sending message and I have configured all the settings which was required. I have also created a rule where node (Article) be saved and send a message....
2
votes
3answers
348 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.....
3
votes
1answer
340 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 ...
0
votes
0answers
28 views

hook_default_rules_configuration can't debug it or force it to load

I am trying to debug a hook from title, here it says http://api.drupalhelp.net/api/rules/rules.api.php/function/hook_default_rules_configuration/7.2 "This hook is invoked when rules configurations ...
0
votes
0answers
31 views

“Drupal is initializing” rule firing multiple times

I am using the Rules module and the event "Drupal is initializing" in a rule to check if a user has clicked their confirmation link in their email that Drupal has sent them to verify their account. ...
1
vote
1answer
615 views

Condition on current moderation state

I would like to show a message when content has changed moderation states from review to published. I set this up below but it does not work. Is there a rules debug log in Drupal 8? Event: When ...
0
votes
3answers
2k views

Automatic Node Expire / Unpublish with Renew Option

I have a classifieds site and would like to have a node expire after 45 days (unpublished), no matter how many times the user edits and saves the node. However after the node expires, the user has the ...
2
votes
2answers
411 views

How can I create Rules condition for event when 404 error generated?

I've assigned page for 404 error handling (example.com/404). I've created Rules condition: Data to compare: [site:current-page:url], Data value: 404. And I've created some Rules action for this case. ...
1
vote
1answer
419 views

Assigning a badge to a user using Flag, Badges and Rules

I am interested in assigning to user a Badge after he favourites 3 nodes. I want to do this with Flag, User badges and Rules. How can I do that?
1
vote
1answer
388 views

How to automatically delete all product displays when a product is deleted?

To automatically delete the product displays when a product is deleted, is a feature of the module Auto Product Display, but I don't need that module. Preferably using the Rules module, I would like ...
1
vote
1answer
359 views

Using Rules to send an email to all Simplenews subscribers

On a Drupal 8 site I'm working on, we are using Simplenews to allow users to subscribe to a mailing list for blog posts. The client would like us to set up a rule to automatically send an email to ...
0
votes
1answer
430 views

“Add an item to a list” using rule just works for plain text

I created a rule with an action which "Add an item to a list". The value of the item to add is this (also see my picture bellow) Voucher: [node:title]. The code for this voucher is [codigo-otorgado:...
1
vote
2answers
484 views

How do I make fields available? [closed]

I am using Drupal 7, the Ubercart and Rules module; I plan to use the Views Rules) module. I want to use the Rules module to automatically publish nodes that contain data from a Ubercart order. I'm ...
0
votes
0answers
22 views

Sending SMS text messages from my drupal site

I am trying to send an SMS message sent to site users once a new node is created. I've installed the SMS Framework module, the Clickatell module, I've set up an account on Clickatell, and configured ...
2
votes
1answer
401 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
395 views

How to populate a node reference field that has multiple values?

I'm using the rules to create a new node upon changing the current node publishing status to published. And populate some field based on the updated node field. Im trying to populate a node reference ...
0
votes
2answers
22 views

Rules Redirect User at Login by Role to URL not working

I am trying to redirect any user with a particular Role at login to a URL. I am using Backdrop (Drupal 7). I have looked at most of the posts relating to this problem, and tried many of the examples ...