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
0
votes
0answers
27 views
+50

Set a Data Value from Text field to Term Reference field

Node has two fields: Text field Term reference field (autocomplete?) The Text field is old and already has 500 nodes with 500 unique values. The Term reference field is new and needs to contain same ...
1
vote
1answer
566 views

emailing users in user reference field with rules

I am working on a site for an academic conference. Right now, we have two content types (1) proposal and (2) peer review. In the proposal content type, an author can add multiple presenters to a user ...
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 ...
1
vote
1answer
82 views

How do I fix a shipping rule?

I have some rules to set the shipping rate depending on weight and address, but I can't make them work properly. The shipping rate is loaded, but there aren't changes with the weight. { "...
2
votes
3answers
537 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.....
1
vote
1answer
517 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
2answers
630 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 ...
1
vote
0answers
23 views

Post a message to social sites when the new node is created [closed]

I would like to automatically send a post to Facebook, Twitter, and LinkedIn when a new node is created. I have gone through many and many of the contributed modules but none of them fulfilled my ...
3
votes
2answers
447 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 ...
1
vote
1answer
438 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?
2
votes
2answers
1k views

How to check if an entity is referenced before deleting?

Is there a module or a way to use Rules to make sure that a parent node isn't referenced by a child node before deleting the parent? In my case the children require a parent to be created. However ...
1
vote
1answer
552 views

How do I fill the authors name in a term reference field?

Content type stock contains the term reference field field_producer. What is the rule for Rules in order to fill this field with the node author name on creation? In detail The form looks like: -- ...
1
vote
1answer
473 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 ...
2
votes
2answers
440 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. ...
5
votes
2answers
934 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 ...
0
votes
2answers
614 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
1answer
433 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 ...
1
vote
1answer
370 views

How to check in a Rules Condition if an Ubercart product is out of order?

There isn't a good support for "out of order" in Ubercart for Drupal. I'm trying to fix that with the Rules module. I'm trying to add a rule that disables the product after the stock is updated, ...
1
vote
1answer
470 views

How to setup a rule to redirect to shopping cart?

I am trying to create a rule that after a user creates an account they are sent to a Checkout page that will eventually have them pay via PayPal ( I am using the Commerce Module ). My steps so far ...
1
vote
1answer
87 views

Automatically have an email sent to page author 11 months after its published date

Hello I was wondering if anybody could help. I'm using Drupal 8 and for every page that exists I need a custom email to automatically get sent to the page author 11 months after that page was ...
0
votes
1answer
563 views

How do I change order of completion rules in checkout?

How do I change the order in which completion rules fire? There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it's never executed. I see no ...
0
votes
2answers
36 views

How to export 1 or several specific rules?

I want to export one or more specific rules or components using Drush. I do have a script to export all the rules and components. drush --pipe rules-list | xargs -I{} sh -c "drush rules-export '{...
0
votes
1answer
492 views

Why does the same Rule Calculating The Sell Price Of A Product fire multiple times?

I'm having dreadful performance with Commerce Kickstart 2. Trying to troubleshoot. I noticed that when viewing any Product in the catalog, the Rules Evaluation log looks like the log below. ...
2
votes
1answer
473 views

Admin approval of Commerce order

I am building a proof of concept ecommerce solution using commerce kickstart v2 I wish to implement a system where a user can submit an order but an admin must approve orders before the customer can ...
0
votes
1answer
601 views

How to programmatically create forums and containers (not forum topics)?

I need to create containers and forums using rules. If I use the action "Create new entity" -> "Taxonomy term" I got that by default the new term created is treated as a forum, not a container. How ...
1
vote
1answer
539 views

Domain Access Login Redirect for main domain and subdomain

I have created three sites namely one.example.com, two.example.com, three.example.com using domain access. Here one.example.com is the main site which can create n number of subdomains. I want to ...
1
vote
1answer
748 views

How to delete a scheduled task using Rules Scheduler?

I use the rules scheduler module (D7). So far all fine. What I use it for: a user registers with username and email this users then gets 4 emails over the next four weeks, sent by the scheduler BUT:...
4
votes
1answer
432 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 ...
0
votes
1answer
616 views

String replace with rules

Is there a way to string replace with rules? I'm trying to find some way to transform values without changing a value entirely. Is there something I'm missing, or should I just make a custom rule ...
0
votes
0answers
21 views

How to use integer fetched from an Entity as an Entity ID?

I have a rule component that is supposed to fetch an integer from a property of an entity named "Course" (ECK property). This property is not an entity reference but an integer. I use this ...
2
votes
1answer
558 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 ...
3
votes
2answers
2k views

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

I need to 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 rule that was ...
2
votes
1answer
589 views

How to implement a Rules Action to loop through quantity of a products bought?

With the Drupal Commerce module, I created a new product type I use for selling points to my customers. The product has a custom field named “points” (field type integer) where I specify the amount of ...
1
vote
3answers
431 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 ...
1
vote
2answers
30 views

Send an email to a group of users after new content has been created

In Drupal 9, I need to notify all users belonging to a role by sending them an email about the new created content. Everything's fine, but I don't know how to put together the email addresses of these ...
0
votes
3answers
2k views

Send Mail After Checking Date Field Value

My content type (product) has a date field named Expired Date. All I want is like this: check value of expired date field from content type product. If value equal to 7 days from now, send mail with ...
-1
votes
1answer
34 views

Rules Custom Field

I am developing a Drupal site, where the administrator creates user accounts. Indeed for this site the administrator creates user accounts, he fills in the fields with the strict minimum (Last name, ...
3
votes
2answers
1k views

How to programatically convert nodes from draft to saved

Is there a way I can convert all my imported nodes into "saved " status instead of "Draft" programmatically? Can this be done in a hook and what would the code for doing this be? If it can be done ...
1
vote
1answer
690 views

How to prevent a node from being saved/updated by using the Rules module?

I've created a content type 'H'. The following rule (using the Rules module) has been built to prevent the node from being saved/updated if the field 'a' is larger than 5. Event: Before saving ...
3
votes
1answer
525 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 ...
1
vote
2answers
675 views

How to grant permissions for some role to execute custom Rules Components?

I created a view (table) and i asociated views bulk operations. I created 4 rules components. I have permissions only for user/1 (admin). Another user role (eg. editor) can't see these options. "...
0
votes
1answer
644 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 ...
1
vote
1answer
594 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields Title ...
0
votes
2answers
2k views

Redirect Using Rules Based on Account Role

Further to this previous question, https://drupal.stackexchange.com/questions/1790/redirect-users-after-login-depending-on-the-users-roles I am trying to accomplish a similar redirect on a D7 whereby ...
2
votes
1answer
684 views

Drupal and node.js configuration

I have a problem with Nodejs and Rules action with node.js modules First, I have installed node.js on my server following the README.txt instructions and then configured the node.config.js file as ...
2
votes
1answer
720 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 (...
1
vote
1answer
380 views

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

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. ...
0
votes
1answer
682 views

Simple webform with payment module

what I need do is not an ecommerce site. On my drupal website I need a simple web form with a payment (by paypal) and a node reference field prepopulated (by the entity refence and entity reference ...
0
votes
1answer
916 views

Get the displayed node of a commerce_line_item in a component rule using 'commerce_display_path', doesnt work

I ve found something quite interesting in an other post Discount based on a field in product display node in Drupal Commerce? It describe a way to get the 'node display' associated with a line_item ...
1
vote
1answer
896 views

Rate module and rule integration

I don't fully understand how the rate module integrates with rules. Here's my situation: 1) I created a widget of the type: Number up / down widget which allow users to vote in nodes of the Answer ...

1
2 3 4 5
46