For one of our Drupal 7 Commerce sites having several products need to export data of those created products. For exporting those products, we first need to create a view containing the products and then export this view via Views data export into CSV/XLS file depends upon the file format we required.
In Drupal, there several ways to display static message on the pages i,e via blocks and placing into specific region or via code; adding dsm on hook_init() etc. In this article we will try to display static message on all the pages via rules.
In this article we will explain how to redirect to checkout page when you place an order and payment transaction gets failed. There are several ways via code to implement this but via Rules its pretty cool. Default rules module itself provides an action to add redirect to an specific page. Lets begin how we can achive this.
We all know about the feature module which enables the capture and management of features in Drupal. Here in this article we will go through how to add block content and its settings to the feature that are created via admin interface. Default features module doesn't provide block content and its settings to be added into the features.
It is very easy to registers js and css libraries using the hook_library(), However if you want to register php libraries you should consider the Library API module. Library API module is very useful module which introduces a common repository for libraries in sites/all/libraries. So lets begin including php library in your custom module.
Drush is a command line shell and Unix scripting interface for Drupal. There are lot of drush commands that comes handy when we are developing in drupal platform. In this article we will look forward to learn one of the drush commands that developers use commonly. Most oftenly we come across a need where we need to execute the function only once. There are several ways to execute a one time function in drupal sytem like creating a menu and executing, batch process execution or using Drupal queues.
Drupal 7 provides an interface to set URL for 403 and 404 error pages (admin/config/system/site-information). We can just simply create a node and set the path for this error pages. In this post, lets discuss about how we are going to theme this 403 and 404 error pages without affecting any other pages.
In my previous post, we have discussed about creating a rule condition programmatically for checking specified role. In this post lets see how we can do the same job without writing a single peice of code. Yes, Drupal rules already provides an condition info to check for user specified role.