Category Archives: Drupal Developer Notes

How we can stop spam user creation on drupal website

Spam user creation is the main concern of drupal developers. This post assumes that you are not allowing anonymous user creation on your website. This is one method. You can use other methods depending on the spam user on your … Continue reading

Posted in Drupal Developer Notes | Leave a comment

Fontis_Australia-3.0.0 shipping method calculation issue

In the latest Australian post module of the font is (Fontis_Australia-3.0.0) did not display the shipping method details, when the weight of the product is below “1kg” and the zip code star with “0” digit. For solving this issue, Correct … Continue reading

Posted in Drupal Developer Notes | Leave a comment

Drupal: Customizing Apachesolr Autocomplete feature for content-type wise grouping of keyword suggestions.

Issue: In Drupal, can we group ApacheSolr search autocomplete suggestions bundle wise? For example, if we have three bundle types, those are article, product and company. When we type a keyword in the search box, it should give us the … Continue reading

Posted in Drupal Developer Notes | Leave a comment

Magento Free Shipping Promotion Rule is not working with some 3rdparty shipping modules

Magento’s Free Shipping Promotion Rule is not working with some 3RDparty shipping modules. Solution: This issue can be resolved by adding some codes to the extension. For example, in Fontis Australia, the below condition was missing. if ($request->getFreeShipping() === true … Continue reading

Posted in Drupal Developer Notes, Magento Developer Notes | Leave a comment

Displaying a Drupal page on another website

Question: We need to display a Drupal page on another website. Is there a way to have Drupal render a page without the site’s layout around it? Answer: Yes that is possible. Assuming the other website was developed using Drupal … Continue reading

Posted in Drupal Developer Notes | Leave a comment

White space Replacing Admin menu bar in Drupal site

In Drupal Occasionally the admin bar at the top of the page (with links to content, people etc.) is replaced with a white bar. Below given is the solution to fix this problem. Disable the option “Cache menu in client-side … Continue reading

Posted in Drupal Developer Notes | Leave a comment

Drupal 7: To show the thumbnail image in search result page in Drupal 7

If you want Drupal 7 to show the thumbnail image in search result page please do take the following steps Step 1. Add the below code into your theme’s template.php file function THEMENAME_preprocess_search_result(&$vars, $hook) { $vars[‘node’] = $vars[‘result’][‘node’]; } Step … Continue reading

Posted in Drupal Developer Notes | Leave a comment

To add image in block by selecting “PHP code” as the Input format in Drupal 7

To add image in block by selecting “PHP code” as the input format the following steps can be followed. Step 1. Enable PHP filter module. Administration > Modules > PHP filter Note: Fresh install of Drupal 7 has PHP Filter … Continue reading

Posted in Drupal Developer Notes | Leave a comment