Drupal commerce is a popular e-commerce module for Drupal. It is used to build ecommerce websites and applications and leverages the outstanding features of Drupal 7 for greater flexibility. Here, we will find out how to create a payment gateway module for Drupal commerce. There are mainly two types of payment gateway integration in Drupal Commerce:
Drupal Technical
If you are using the Views module to create a page that only specific users should be able to access, then a simple configuration will do the trick for you. Basically, we can set views access control by role or by specific type of permission that a user has. Here is how this can be configured in each view.
Organic Groups module is a powerful and useful module in Drupal. This module is used to create groups, add members to it, and to share content and comments. OG also has advanced access management through permissions and roles.
I have worked with a tiny portion of a website dealing with online donations. Here I came across the LuminateExtend Library. LuminateExtend is a JavaScript library for use with Blackbaud's Luminate Online product suite which provides a JavaScript wrapper around its API with some useful functions.
In one of my recent projects i came across a situation where i had to add a machine name for the node title. If you have ever came across such a situation Drupal safeword is your friend.
If you are a Drupal developer and not a stranger to themes and its behaviors, let us see how to create a subtheme in Drupal. A sub theme is quite similar to a theme. When we create a sub theme, it has an independent folder structure as any theme. The only difference is that it inherits everything from parent theme. There are no limits in creating subtheme for a subtheme and so on.
While handling a view in one of my Drupal 7 project I need to display only a text message for empty result. I used VBO (View Bulk Operation) in that view for delete, enable, disable etc operations.
But it shows the VBO form even if there is no more data to display. To hide the VBO form in an empty view, do the following :
Drush commands are not the strangers for drupal developers. We use drush to clear cache, enable-disable modules, install-uninstall modules, set variables and even more.
Have you ever found it difficult to style a block with the block unique ID, if yes then read on this. There is this amazing module named Block Class which will help you in adding a class name to the blocks.
While working with entity, I always had a doubt as to why we use Entity and Entity Field query except Db_select() in Drupal. It is a great and fast way to organize and extract our data in Drupal sites. Here are a few more points to support these concepts :
Flex Slider is a power full Drupal module which integrates with the flex-slider library which allows us to build responsive and resizable slideshows
My last work was related to theming a Drupal website. While theming I've faced a major issue ie., in different OS and different browsers the styling of pages have slightly different changes .
How to solve this issue?
Sometimes, we may come across a situation where we need to exclude a particular page from being indexed. We had a similar requirement in one of our projects where we had to exclude home page from being indexed by apache solr search. Read on to know how we executed it using hooks provide by apachesolr.
I had a requirement in one of my Drupal project to generate PDF from HTML. I had implemented the PDF file from HTML using the module MPDF. Let me explain you the following configurations for its working :
Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites. Bootstrap is the array of features and reusable components.
The purpose of hook_file_download is to Control access to private file downloads and specify HTTP headers. The hook_file_download_access is restrict the access to certain files based on the entity type. e.g.,
only users with access to a node should be allowed to download files attached to that node.
Steps to upload private documents to the web page by storing file id in a system variable and delete the file when updating the same with necessary validations in Drupal 7.
Highcharts is a charting library. It is very useful for adding interactive charts to your web site or web application. Follow the steps given below for highchart graph implementation with customizing of colors in each columns in it.
While working with a project, I need to display a view in colorbox popup. I have done the following steps for processing popup for views.
We had a requirement to show the group field in user registration form using Organic groups. Inorder to show group field in user registration form first we have to install the Organic Groups module (OG), Organic groups register module and create an Organic Group.