This article covers, how to send email programmatically in your Drupal 8 site. There are two main steps to send an email using Drupal 8. First we need to implement hook_mail() to define email templates and the second step is to use the mail manager to send emails using these templates. Let's see an example for sending an email from the custom module, also the following name spaces.
Technical Blog
In Drupal 7 we can upgrade a module in many ways but we fail on upgrade feeds excel module. The reason being the newer version of the module is entirely different from the old version folder structure and file naming. We can overcome this situation by uninstalling the older version and installing the new version. Sometimes we cannot uninstall the module due to the module dependency and data lock. We can achieve this manually using the following steps.
In Drupal 8, variable_set() and variable_get() is deprecated. The variables database table in Drupal 7 is now removed in Drupal 8, and is replaced with config table. We can create a variable while installing the module using MODULE.setting.yml and MODULE.schema.yml files.
Security Audits play a crucial role in an organization’s ongoing effort to address security concerns. After identifying any potential security issues, remedial steps need to adopt; in fact, a Security audit is one of the first steps that need to be taken. No organization in its right mind would want to leave its websites vulnerable to hacking, and conducting a security audit is the best way to tackle security issues.
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.
Most of the operations that are done when developing sites in Drupal deals with enabling and configuring modules that are to be saved for future use. This is most certain times a time consuming process. But what if we could automate these tasks by developing a deployment module. Let's find out how we could achieve this goal.
Fivestar module is a simple module that adds a "rating star" widget to the nodes. This module displays number of stars that you set; a click from a reader rates the page with that number. We can create custom widgets for changing the color of stars or for showing any other images instead of stars. For example, we can use symbols like a diamond, banana, flower etc.
As part of form creation process in one of our recent project we came across one module called 'Client side Validation'. As the name implies the module supports basic as well as most advanced sort of validation methods. Validating the form user inputs is the one task we could not ignore on developing forms for a web project. Let's find out how the 'Client side Validation' will make life easy.
One such feature used widely throughout the site is the use of popups for alerting users. Popups are nothing new to web development. In fact Drupal provides multiple tools to create popups including the more widely used Colorbox plugin. For this project we chose to go with Ctools modal popup as it provided more options than Colorbox. Read on to know how to implement popups using Ctools.
Follow the steps below to implement the pop-ups
We have already created a Drupal wiki page on this on going project. You can find it over here and detailed explanation over here
A Payment gateway tends to offer multiple types of payment services, that provides onsite and offsite options. Onsite payment is processed by a third party API using web services with the information gathered from our site through a checkout form (For example : Credit card/Debit card credentials). Offsite payment method, on the other hand, processes data entered in the payment gateway page. It redirects the users to the processing page of the payment gateway using the checkout form. After the payment is completed, the user will be redirected to the payment page, from where the user can move forward or backward in the checkout process. Here, let's take a look at the creation of custom offsite payment gateway module.
To add a newsletter signup form to your website, you just need to follow these simple steps. Follow these steps in the order they are provided and you could easily embed newsletter sign up form to
where you want on your website.
Drupal community is eager to experience working with Drupal 8. Let us learn how we can install Drupal 8.
Everyone may have faced software dependency issues while installing Drupal 8. Refer this article to resolve those issues.
While installing Drupal 8 you will be guided through several screens to configure the database, add the site administration user account, and to configure basic web site settings like location, time zone, etc.
You all know that, unlike a normal website, an e-commerce website sells its products or services online. Customers visit these websites not only to gather information but to also make a purchase, and this calls for an extremely user-friendly experience.
Have you ever found it difficult to access a private file within drupal, then read on. Below are the steps I followed to create and access the private file.
We would have came across many Drupal sites run down into performance issues and we always start blaming the Drupal framework or MySQL queries, PHP versions. You need to debug into the actual cause for the issues rather than pointing on some non-even solutions.
In one of my recent project I had a task to create a content type with a select list field of all image styles. But how can we get all image styles in Drupal? In Drupal there is an option to create different image styles using a module 'image'. Image module allows users to upload images into Drupal with proper permissions along with this its thumbnails and additional sizes are created automatically. Image module also gives an image_styles() function that can be used to get all image styles and their settings.
In this article will be explaining how to store user IP address to a custom table during registration and display the result using views.
The excitement of the Drupal 8 launch is yet to subside and the buzz it has created is truly phenomenal. However, the users of Drupal 6 are worried about the impact and the challenges they may have to face due to this new release. Come 24 February 2016, Drupal 6’s EOL (end of life) will be a reality and will no longer be supported by Drupal.
The introduction of a brand new Drupal 8 is all set to give developers a powerful yet flexible foundation that promises a brilliant experience to users of the web, commerce, and mobile. Everyone who supports online content, whether you are an IT developer, content manager, decision maker, or a site administrator, is surely in for a wonderful digital showcase.