Question I need to hide PDOException errors are displayed in drupal screen, sometimes its happening if some problem with database server its showing some error with path to my folder I had solved this situation by using below code, added this code in settings.php
I’m working on a store and have already got prices on products. I have created all the price rules as per the Magento documentation. Next, I had set all the required settings for the Tax display, in System > Configuration > Sales > Tax. But when I adding the price its not showing the label…Continue Reading
To enable the template path hints in Magento for admin side, there is no settings out of the box. we need to do it manually in a database. 1) Insert some records in core_config_data table Run below query in your database query browser This will enable the path hints in your applicaiton 2) To remove…Continue Reading
While learning Magento development you may have encountered this functionality, to get simple products belonging to the configurable product.First of all, just decide this is a configurable product. Our next step is to get a product collection based on the current product. We’ll also say we want to get all attributes. Yea now we got all…Continue Reading
While building your Magento module or tweaking the code you will need to handle the errors and notifications. Notice Success Error Warning (admin side only) Above methods, you can use in anywhere in Magento, like controller, model etc. Sample usage in controller
Merged CSS cache not clearing in Magento In production environment, everyone uses caching. Most of the Magento websites might be having this issue. When you make changes to CSS and you are using the magneto built in CSS merge functionality, you will be pulling your hair with browser cache. I have experienced the same with…Continue Reading
Magento has a good amount of template overriding methods. As per the Magento documentation, we will follow the standard method. Instead of editing core files we will use local.xml located in our custom theme. Step 1 Adding the below line in to the header section of local.xml find in app/design/frontend/[your-package]/[your-theme]/layout/ After adding above code the…Continue Reading
Google maps are using everywhere in websites. Below is a simple way to show Google map with marker and popup.
Grayscale effect for images using CSS. You have noticed that some filters.svg in the firefox section . Save below as file named filters.svg and place in your css folder.
Get the path to an image with ImageCache preset in Drupal 7, its very easy Use this function image_style_url($style_name, $path) See Example
If you want to use the aliased path of a node , in drupal. You can use this one drupal_lookup_path Example. Url http://mysite.com/node/20 OR Function drupal_lookup_path($action, $path = ”, $path_language = NULL) Parameters $action: One of the following values: wipe: delete the alias cache. alias: return an alias for a given Drupal system path (if one exists)….Continue Reading
Removing index.php from URL in Codeigniter it’s an easy task to do. Most of the guys don’t wanna see the index.php in the middle of an URL. Here is the way to remove the index.php from URL Step1 Create a .htacess file in the root folder and paste the below code Step 2 Go to…Continue Reading
Here is a way to find the user logged or not in in custom Drupal Development. It is very usual you will face this question while developing a drupal website. You can use the following snippet to perform that
Drupal SEO is pretty good out of the box. Adding things more to your site will be an advantage to more readable for search engines. Moreover, you should know about some SEO modules, custom Drupal Development to enhance your site. Here we are listing some modules pathauto The Pathauto module automatically creates URL/path aliases(human-friendly URLs)…Continue Reading
The Feed Dialogue prompts the user to publish an individual story to a profile’s feed. This does not require any extended permissions. Your application can also publish directly to a profile’s feed without user interaction, use the corresponding Graph API call.
Changing font colour on click when using Cufon and Jquery it’s an easy task. I have faced some problem with Cufon and Jquery. When I tried to change the font colour using jQuery CSS , It’s not working. Solution I have added Cufon.refresh(); after the colour change function. It has been solved my problem. For instance.
Create a custom content type with a module in drupal, it’s very easy for even a newbie. Modules are an essential part of a drupal website. There will be plenty of modules when comes to custom drupal development. So here I am showing how to create a custom content type programmatically in Drupal7. Just follow…Continue Reading
TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site. TimThumb has seen a massive amount of use across the WordPress world, and a few months after we released it, I took over development…Continue Reading
How to Use PHP to Force a File Download Download a file rather viewing in the browser. It’s easy method, to implement a force download using PHP. Below script, we are using PHP headers to download a file.
Google maps are using everywhere with websites, gadgets etc. Integrating Google maps to our website is easy process. Below see some points. Step1 First step is obtaining the Google map API key. All Maps API applications should load the Maps API using an API key. Using an API key enables you to monitor your application’s…Continue Reading
Masking the images using jquery, it’s an interesting subject.In so many websites we have seen some images are curved shaped. Here the below script is helping you to implement this technique. I am not telling all of them are using this but many people are using. But I am satisfied with this method.
Safari 3rd party cookie iframe trick no longer working? I have faced this same problem while developing the Facebook application. I found a good stuff in stack overflow