How to configure discount for drupal commerce based on CiviCRM membership

How to configure discount for drupal commerce based on CiviCRM membership
This post is a step by step guide to implement member based discounts in Drupal commerce store. Membership is maintained in CiviCRM. You would require following modules: Drupal Commerce Commerce Discount Commerce Discount Extra CiviCRM CiviCRM Member Roles ( this module is shipped with CiviCRM as of 4.7.x) Step 1 Create Drupal role for members. ...

How to repair crashed tables in MySQL if auto repair fails

Here is what you should do if a table crashes and auto repair after mysql restart fails. Open a terminal / command line utility If crash is on remote server you will need to ssh first service mysql stop cd /var/lib/mysql/{your database name} myisamchk -r {table name} – recovering (with sort) MyISAM-table ‘{table name}’ Data records: ...

VT Commerce Image: drupal module for slideshow

VT Commerce Image: drupal module for slideshow
We were searching for a image slideshow module that would match with the designer’s vision. Fortunately, we found this interesting module VT Commerce Image: https://www.drupal.org/project/vtcommerce_image It was almost what we needed. But was it was non-maintained module. This is very common when it come to Drupal module world where in someone created a module according to ...

Drupal Commerce with CiviCRM 4.7.x

We at Web Access recently worked on a project where the requirement was to have an integration between CiviCRM and Drupal Commerce module. Fortunately for us, there is already Commerce CiviCRM module that matched our requirements. However after implementation we found that it didn’t work with the latest CiviCRM version 4.7.x. So we took on the task to ...

Drupal ReadmoreJS Integration module

Drupal ReadmoreJS Integration module
Last week one of my colleague had an use case for readmorejs integration with Drupal. First of all I was surprised there wasn’t any module for it. So I helped her with a quick and dirty fix. It was to include readmore js and initialization js file in template.php. I know one should not touch ...

Content body disappeared for all content types in drupal 7

This is what happened recently on one of our drupal 7 website: Problem: Content body (node description) disappeared for all content types. Content body was present in the database but it was not displayed on website. Solution: After lot of debugging and searching we found a related post: http://drupal.org/node/989540 Hence I fired below queries: UPDATE ...

Drupal Camp Mumbai 2011 – Day 1

I had an excellent time with fellow drupalars at Drupal Camp Mumbai held at IIT, Powai. It feels great to put faces to irc nicknames and meet the people for real. This always amazes me :). I was bit late hence missed drupal song ( which I heard was fun ) but reached in time ...

Integrating IMCE Drupal module with CiviCRM CKEditor 5

CiviCRM comes with CKEditor as a default wysiwyg editor. One of the missing feature has been ability to upload /browse existing files on the server using CKEditor. So after some investigation I figured out you can easily integrate IMCE drupal module for this purpose. Here are the steps: 1. Install IMCE module: http://drupal.org/project/imce 2. Modify ...

How to remove default title set by drupal

You can implement a module and call below function function modulename_preprocess_page(&$variables) { unset($variables[‘title’]); } This will unset default title, but there are 2 problems: 1. This hook is not called by all the themes. So you cannot entirely rely on this. 2. Some themes check if ‘title’ exits before showing breadcrumb. So if you unset ...

My notes: Upgrading CiviCRM v2.1 to CiviCRM v3.1 ( Drupal / Joomla )

Recently we successfully upgraded one of our client CiviCRM install from v2.1 to v3.1.2. Over all I was pretty happy with the CiviCRM upgrade process considering client’s db was in bad shape. This client is one of the early adopters of CiviCRM, ( since v1.8 ) that made things bit worse. Few things you should ...