Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rules]

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

0
votes
1answer
539 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
2answers
26 views

How do I let non-admin user approve comments?

I'm looking for a way to allow a non-admin user to approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then I ...
4
votes
1answer
703 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 ...
3
votes
6answers
805 views

Create a user and set the password [on hold]

How can I set up the user password when I create a new user using the Rules module?
1
vote
1answer
504 views

How to apply (% off) commerce discount for second and next items only if line item quantity > 1?

Using Commerce Discount and Commerce Discount Extra modules there is no problem to set discount rule condition for product type and quantity. This way I can set up 20% off discount that is applied for ...
0
votes
1answer
468 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. ...
0
votes
0answers
17 views

Limit number of node publish by user and delete automaticaly old publication

Is there a way by Flag or Rules or other to limit the number of publication for exemple to 500 by user order by date AND delete by cron the older post The module Node limit just limit work great for ...
2
votes
1answer
923 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 ...
2
votes
2answers
900 views

Programmatically creating a node doesn't save custom fields

I'm using this code in Rules, after saving a certain type of content, in execute custom PHP code. By now, i'm just trying to create anothe node of that type after the first is created. The problem is ...
0
votes
1answer
503 views

How to trigger email by comparing date value in node using rules?

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
1answer
613 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 ...
1
vote
1answer
493 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 ...
1
vote
1answer
342 views

PHP filter field behavior with Rules - can't use curl_exec [closed]

I am on Drupal 7. I am trying to use Rules to execute custom PHP code. I am using PHP filter in order to achieve that. Inside that PHP filter I will use curl. The idea is to communicate with a remote ...
1
vote
1answer
561 views

How do I get rules to select a random node?

I'm working on my cron rule that will post to twitter every cron run. Thing is for this rule I need it to post a random node that either conforms to specific values in certain fields, or does ...
3
votes
1answer
353 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 ...
0
votes
1answer
541 views

How Do I Change Order Of Commerce Completion Rules In Checkout?

Perhaps a noob question, but how do I change the order in which Completion Rules fire? There is a default Reaction Rule called 'completion'. I wanted to add a 2nd Rule which executes some custom PHP ...
2
votes
1answer
560 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 ...
0
votes
1answer
25 views

Redirect user after one-time-login

When users get an email with one time login link, they will arrive on a page to set their password (separated form via Password Separate Form) But once they click submit, it doesn't redirect them to ...
1
vote
2answers
611 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. "...
1
vote
1answer
599 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:...
2
votes
1answer
574 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
562 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
1answer
589 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 ...
4
votes
1answer
632 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 ...
-1
votes
0answers
29 views

Need to force session restart

I've created a simple site that controls sign displays and the manufacturer tells me that in order for the signs to pick up changes, I need to force a session restart. I've installed the ...
0
votes
0answers
15 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
1
vote
1answer
612 views

How to trigger a rule if a node has a certain Taxonomy term?

I'm trying to create a rule using Rules that will apply a watermark to an image within a node (using the ImageCache Actions module) if that given node has a specific Taxonomy term. For example, nodes ...
5
votes
2answers
1k views

How do I bypass cart and go straight to checkout?

I know that you can easily achieve this functionality in Drupal 7 with the Rules module or using the Commerce Checkout Express module. Since Rules and Commerce are not that much integrated yet, I am ...
2
votes
1answer
582 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 ...
0
votes
1answer
862 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 ...
0
votes
1answer
213 views

Using Rules to perform Node Export

I would like to be able to use Rules to have the Node Export module create an XML file whenever a certain type of node has been updated. I have set up a Content Type with a display and an edit screen. ...
0
votes
1answer
635 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
81 views

Taxonomy Term Field of a Reference Field in a Product not available in Data Selector for CheckOut Rules

I installed Drupal Commerce Kickstart 2 with drupal version 7.54 and drupal commerce Version: 7.x-1.14. My problem is I want to send email to the store owner every time an order is completed. So in ...
1
vote
1answer
869 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 ...
2
votes
2answers
949 views

What is the difference between the Trigger and Rules modules?

Both the Trigger and the Rules modules provide many event-driven actions, but there are still several difference. What's the major difference between them? When should I pick one module instead of the ...
2
votes
1answer
2k views

How to use Webform values in Rules?

I am using the Webform Rules module and I created an event 'After submitting webform', and an action 'Fetch webform submissions'. When I add an action 'Show a message on the site', I get all the ...
2
votes
1answer
1k views

Set data (current nid) to entity reference field with rules and VBO

I'm currently stuck in the creation of a custom rule. I would like to show a button on some content type, this button called a list of other content called "guide". I list these contents (guide) in a ...
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 ...
0
votes
0answers
14 views

Drupal 7 Entity registration / commerce add to cart wait list

I'm using Drupal 7 with Entity Registration, Commerce and Registration Commerce to connect those two modules. I have an issue concerning registration : if a reservation is canceled, the one on wait ...
1
vote
1answer
681 views

Pass multiple ids as Views Arguments in the Rule action Save PDF as file on server

I'm using views PDF to print out a list of nodes on a single PDF, one per page. Now I have more than 1000 nodes/pages on a single generated pdf, so I'm trying to use VBO and Rules to create a view ...
1
vote
1answer
741 views

Is there any way of removing (or unflagging) all of a user's flags?

I have a situation where a privileged user (role that is purchased) can flag content and receive email notifications to comments posted. When the role is expired, I need for them to stop receiving ...
1
vote
1answer
62 views

How to get the values ​of an array in the options list (hook_rules_condition_info ()) instead of array index?

'example_condition_user' => array( 'label' => t('User Condition'), 'arguments' => array( ), 'parameter' => array( 'username' => array( 'type' =...
1
vote
1answer
909 views

How to resolve Catchable fatal error in entity.inc?

Locally (WAMP) I have created a new GIT branch to install Drupal Commerce on my site. Everything went well and I have begun configuring my new shop. But when I decided to pull this branch into my ...
0
votes
1answer
22 views

How to create a scheduled mailing list using Rules?

I am looking for a way to send out an email to a list of users once a week in Drupal. My obvious choice was Rules Scheduler, but that has not been ported. Is there a preferred way to do this in ...
0
votes
0answers
14 views

Check database for status change

I use actually registration entity for a project. The registration follows a specific process with ecommerce. Actually what i need to do is : to give the "canceled" status to registrations that ...
0
votes
1answer
41 views

Send email after content update

I have create a new content type with a field of email. In this field I put the email address of the person I want. The case is: I want every time the node of this content type updated, to send an ...
5
votes
1answer
787 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
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, ...
0
votes
0answers
22 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
0
votes
1answer
942 views

How to send an email once every 6 months using the Rules module?

How to send an email once in every 6 months at 12:00 am for a date field about user renewal which is there in user profile using the Rules module? Its mail should send in cyclic form every once in 6 ...