Service links in commerce kickstart refers to facebook/gplus/twitter icons in the node page. These links help us to like/recommend/tweet specific page of our site respectively.In a recent project, I got a chance to work with Dupal commerce kickstart. One of the requirements I had to fullfil was to remove the twitter icon form the product's node page. Eventhough I searched everywhere in the net, I was unable to find a solution. If you wanna know how I nailed it, you may read on.
Drupal Technical
Drupal provides a Shipping module that comes into use when you have a store and you want to ship your products to another location.
Ubercart has a flexible module that provides custom shipping quotes based on configurable weight ranges and custom shipping zones.
For this all you have to do is to download and install the uc_global_quote module.
Steps:
Step 1: Download the uc_global_quote module from drupal.org on to the sites/modules folder.
Step 2: For configuring the module go to /admin/modules and enable shipping, shipping qoutes and flat rate modules.
Version control system is used to track the history of the files. Also we can revert the files to another version. Version control system will increase the potential of parallel and distributed work , ie it will track time , merge changes and manage the history of changes in the file.If you are a Drupal developer you might find Git a useful tool. Here a few commands that are to be familiar by a Drupal developer
If we are using kaltura field in a content type in a Drupal website, the video uploaded using this kaltura field will be displayed automatically in corresponding node page. One of our Drupal client had a requirement that, on clicking a button, load a popup window and play kaltura video in that popup. Read on to know how to embed a Kaltura video programmatically in a popup in a Drupal 7 website
In this article will be explaining how to get feeds from a site programmatically into a Drupal site by passing its site url. The advantage of this, is that we could get multiple feeds at a time by passing their url. You can also refer previous article How to create Quick Tab Programmatically?, so that you can display the feeds in custom blocks.
Highcharts is a charting library written in pure HTML5/JavaScript. Without generating an image we can display a graph using the library. I have a requirement to generate a graph on one of my Drupal projects. In my situation, I have to generate a graph depend on user filtered data. So I choose javascript to generate graphs, it will increase the performance also. Otherw ise, it will increase the server load (if I generate a graph as an image.). Read on to know how to integrate Highcharts in Drupal
Drupal is an extremely flexible framework that you can manipulate in multiple ways. In Drupal, the theming is the final phase in the process of generation of dynamic web pages. It converts the data from PHP objects and arrays into HTML markup and CSS styles. Read on to know how to convert a PSD/HTML design to a standard Drupal theme
Consider a case where you want to enter regular expression and validate it. Here I will show you how to write a validation function. For example consider YOURMODULE_admin_settings_validate function
In my example I am using a form and a submit button.From $form_state array you can get the input value after submit. You need this value to match with the string. See the code below.
In a Drupal site, I was working on, I found that many of the modules were unused. Their presence was increasing the size of the site and consuming time when searching for useful info. So I thought of removing these modules.It makes our job a lot easier if we are using Drush Read on to know how to remove unused modules in a Drupal site with the help Drush.
We encountered a situation when developing a Drupal site where our client website had been recently migrated to a new server. We had been using git as our version control system for almost all of our Drupal projects and this one was no exception. Now the new server did not have git installed and we needed one very quickly. So instead of requesting a support ticket and waiting for a response we decided to install git manually. Read on to know how to compile and install git on a live server.
Customer relationship management is a model for managing a company’s interactions with customers. Sugar CRM is one of the largest open source CRM available. Drupal can be integrated with Sugar CRM using SugaronDrupal module. Read on to know how to pass the value of a field related to a field in another module in Sugar CRM while working with Drupal.
What do you do if you have to take your Drupal site into maintenance mode from the command line? Well you can do this easily if you have drush set up on your server. With drush you can do quite a lot powerful drupal administration tasks right from the command line.
In Drupal 6
The following drush command will take your Drupal site offline
drush vset site_offline 1
The following drush command will take your Drupal site back online
drush vdel site_offline
In Drupal 7
On one of our recent Drupal projects we came across an issue where the file browse button was not triggering the file selection dialog in IE10 in Windows 8. The problem was diagnosed to be the result of jquery not getting the click event from the button. The site was using jquery 1.44 and this problem is supposed to be fixed in later versions of jquery.
One of the challenges with working with dynamic websites is that you have to keep fighting malicious users who regularly sap your server capacity with rogue crawling of your site. To do this you would have to monitor and analyze the traffic patterns on the server regularly. You would definitely want to do this when you have load spikes on the server and you wish to find out the IP addresses, user agents and the specific URLs which resulted in these spikes.
In this article I am going to tell you how to redirect anonymous users to a login form on 403 access denied pages in Drupal. There are some contributed module that provides you this feature but, if you really want to create a custom one for your site just try this. Here I will show you a PHP snippet that redirecting to login page for anonymous users on access denied.
I have a few images in a folder on a Drupal site I was recently working on. The Drupal site also had a content type that contained a title and an image field and I had a requirement to create a node for each of these images. Read on to find out how to add a file to the image field of a node programmatically in Drupal 6.
In one of our Drupal projects which sells products online, our clients requirement was to collect tax from some states and to exempt other states from tax collection. We implemented this by integrating taxcloud account with ubercart using uc_taxcloud module. Read on to know how we implemented this.
Sometimes we use Drupal view_query_alter to add or modify the view's where clause. To add a new WHERE clause we may use add_where property. Whenever we use an add_where, it will create a WHERE clause along with an AND condition. There will be some cases were we need to use OR instead of AND. So if you want to know more about how to use OR clause in hook_view_query_alter, read on to know more.
I have created a module for my Drupal project. That module requires a vocabulary that should be created when installing the module itself. To create the vocabularies, while installation itself we have to implement the code in the install hook. Read on to know the code to create a vocabulary named as 'Categories'.
When I was working on a website in Drupal 6 I wanted to theme the pager provided by views in a custom way. Finally I found a solution for the issue. If you also want to theme the pager in a View for your Drupal website you can follow the method below.