Views query alter is used to edit the query in views that we created using Drupal. In cases where we cannot add fields in views, we can use hook_views_query_alter to change the query in views.
Drupal Technical | 3 min read
E-commerce businesses depend on electronic transactions to receive payment from customers for products and services. The massive volume of electronic transactions has lead to a rise in fraudulent activities. As per the data released by Global Fraud Attack Index TM, the number of attacks by fraudsters increased by 163 percent in 2015, rapidly growing two and a half times in a three-quartered period. Credit card fraud impacts all those involved in it: the consumer whose credit card information is stolen, the merchant from whom the product is purchased, the bank that enables the transaction and the issuer who is obliged to protect its cardholders. In this dynamic e-commerce landscape, as merchants constantly sell their products through multiple channels and provide different payment methods to cater to local customer needs, keeping abreast of fraud risks is a challenging task. Riskified provides a flexible fraud prevention solution for enterprises.
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.
Drupal Technical | 2 min read
Now a days infinite scrolling becomes the most popular pager in websites. Basically it do append new content to the same page through ajax rather than redirecting to a new page. It is more user-friendly and it take less time to load new contents to the page when comparing to the conventional pagination. Because of the use of ajax it takes less bandwidth than ordinary pagination.
I had a requirement to use my current view repeatedly on other pages with minute configuration changes. The current view configuration should be available on the other views and no changes should affect the view page which is active. The best way to get through the scenario is by the cloning the copy of the existing view and configure the clone as per the requirement.
"My Drupal 7 view result is displaying a few records multiple times. How can I get rid of these duplicates?". The immediate solution that comes to our mind will be applying GROUP BY or DISTINCT by enabling views aggregation settings and simply remove the duplicate records.
Drupal Technical | 2 min read
SimpleAds module allows advertisement in Drupal websites. I had a requirement in one of my Drupal sites to add advertisements in the site contents area. I came across a Drupal module- SImpleAds which helped me to solve the fix and the below the details on the configurations to done to use SimpleAds module
In one of my project, I need to hack the existing view page for admin and need to style the page to show additional contents. Drupal have the feasibility to get the right template file from hook_theme suggestions to change the themes. Follow the below steps to change your current views: