When adding a new field in the sales order grid everything works well, but when you try to filter by date or some other field, you will get the below error message. Usually, it redirects to some other page and throws the Magento exception number screen, it’s horrible, isn’t it? There has been an error […]
Installing a node.js application in windows is pretty easy. First, you need to go to nodejs downloads page. Download the windows msi version as the installer. Run the .msi file from anywhere from your computer. And installation window appears, go through the process one by one. Finally, if you are done restart the computer, to […]
This will be help for other who are working in the web services. Add below code in your client page, can see the available functions in the service
Creating the web services in Magento API V2, was a headache for me couple of days. It was a requirement for creating a custom API in magento 1.9 I have spent most of the time googling and going through the Magento’s source code very deeper. It was hard days for me really it was. Finally, […]
Products are not adding to cart after we migrated the drupal 7, unless if you are not logged in user. So after spending some time in reasearch I got this solved. Problem – Unless you are not a logged in to user the products are not adding to cart Possible solutions Try checking your “users” […]
When you are working with Drupal form API or in module development, most probably you met this problem to add a maanged file field(uplaoding a file via ajax inside the form API). Here I am showing how to hide/remove a upload/remove button from managed_file uplaod field. May be its seems a bit crazy, but my […]
Drupal is an open source content management platform powering millions of websites and applications. It’s built, used, and supported by an active and diverse community of people around the world.-Drupal.org Modules are set of functions and hooks(read more about hooks here). As part of module development in Drupal we have to write functions to add […]
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 […]
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) […]
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 […]
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 […]
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 […]
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). […]
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 […]
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) […]
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 […]
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 […]
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 […]
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