Drupal Technical
| 1
min read
When we were working on a Drupal website using Ubercart, we wanted to override the text content of the default email sent out by Ubercart. Drupal does not give us a configurational method to implement this. If you do not know how to override the default email sent out by Ubercart during checkout, continue reading.
Ubercart stores the default content for email in template files. These templates can be found inside the ubercart/uc_orders/templates folder. Ubercart uses three template files.
Drupal Technical
| 2
min read
If you are working on a Drupal website with Ubercart and if you are handling custom product mechanisms programmatically, one of the main task you may come across can be, 'removing an item from your cart', when a particular condition is satisfied. If you are facing any difficulty with removing items from cart, I may have a solution for you.
By default Ubercart provides custom function named uc_cart_remove_item() to remove an item.
uc_cart_remove_item(node_id, cart_id, product_data)As you can see that the function requires three parameters:
Drupal Technical
| 2
min read
When you want to dynamically create content from some raw data in Drupal, you might have to create a node programmatically. This comes in handy when you want to use custom forms to collect user input and then create nodes using the the input collected. If you want to know how to programmatically create a node continue reading.
Drupal Solution
| 2
min read
Nowadays most of the websites that are being built will have a mobile version also. One of the specific aspects we have to take care of with mobile sites is writing proper code to switch a drupal site to mobile website when the site is accessed from a mobile device. If you are trying to do the same thing then please follow below steps to solve your issue. Although this is written in the context of Drupal websites this should apply for other websites as well.
Drupal Technical
| 3
min read
When developing a website we might often come across situations where we have to limit the entry into each text fields to a certain type. One of the common scenarios we run into when developing Drupal websites is to limit text fields to accept only numbers as its input. If you want to know how to limit a text field to accept only numbers as input then read on to find out more.
Drupal Technical
| 2
min read
One of the errors we come across in a Drupal 6 installation is "htmlspecialchars() expects parameter 1 to be string, array given in /includes/bootstrap.inc on line 860". This is an issue with the Internationalization and Taxonomy translation modules. This issue can be fixed by adding a line in the bootstrap.inc file. If you want to know how to solve the warning, continue reading.
Drupal Technical
| 2
min read
We have faced a situation in one of our Drupal sites where we needed to disable a Drupal block that was being displayed using Contexts. The block had to be disabled for all nodes that contained a particular taxonomy term. If you are facing the same situation in your Drupal site which is using Contexts and are looking to know how to disable a block on a node with a particular taxonomy term via Contexts then continue reading.
Drupal Technical
| 2
min read
A large number of websites on the web today have some kind of slideshow in them and they are probably using a library like jQuery to create the slide effect. When there are 10 images cycling in a slideshow, you might want to shuffle the order of the slideshow a bit. If you have a slideshow in your Drupal website and want to know how to change the order of the slideshow on every pageload then continue reading to know more.
Drupal Technical
| 3
min read
When we have a multi site Drupal installation, we might have to set a default theme for each site. The easiest way of setting a default theme for each Drupal site is by setting the theme from the settings.php file. If you are having a Drupal multistie installation and want to know how to set a default theme for each site in a Drupal multisite installation the continue reading.
Drupal Technical
| 2
min read
Today many websites use social media buttons(Facebook, Google plus, etc). One of the modules we use in our Drupal sites is Add This. However we have to copy the code to the block each time we want to alter the theme. Often we will not get the proper icon we are looking for. In such a scenario we can implement this functionality using the Drupal Widgets and Social Media module. If you are facing any problems with installing the Widgets and Social Media module and want to know how to install and configure the Widgets and Social Media module in Drupal 7 then follow the instructions given below.