TO THE NEW Blog PAGES

Technology

Enabling SSL for particular page in magento

To enable SSL for particular page in magento first open .htaccess file of your magento and include following code in it. [php] RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^your-page-url/?$ https://%{HTTP_HOST}/your-page-url [R,L] [/php] Now flush the cache and check. Regards, Amatya Trivedi amatya@intelligrape.com

amatya
amatya
Read

Technology

Shell script to control the brightness of display

The problem I was facing for sometime is setting brightness of my laptop that is running Ubuntu 12.10. Unfortunately this function is not  available in my laptop. So I started my investigation to get this functionality. Then I found the xrandr command. A similar is xbacklight command, but it’s not of much use. xrandr is […]

Grails

Groovy : tokenize() vs split()

In the Wild West of text manipulation, Groovy offers two gunslingers for splitting strings: tokenize() and split(). They might seem like two sides of the same coin, but choosing the right one can make your code smoother than a well-oiled six-shooter. Below are some of the significant differences between both tokenize() and split() Feature  tokenize()  […]

Vivek Garg
Vivek Garg
Read

AngularJSFront End Development

AngularJS: Sharing Data between two controllers through a service

The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that’s not the correct approach to enable this functionality. A more cleaner and better way of doing so is […]

Technology

Magento Product Types

Product Types Magento CE offers a variety of product types Simple Products Grouped Product Configurable Product Virtual Product Bundle Product Downloadable Product Simple Product -As the name suggests,It is the most basic product type and it is suitable for all kinds of products for instance toys,DVDs etc Grouped Product – This product type is used […]

Technology

How to add dropdown attribute for category in magento

Adding attributes from admin is simple in magento. But this feature is only for products. Some times there is requirement to add custom attribute for category to customize magento. Following is the code to add dropdown attribute for category. [php] <?php $setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’); $setup->addAttribute(‘catalog_category’, ‘category_color’, array( ‘group’ => ‘General’, ‘input’ => ‘select’, ‘type’ […]

amatya
amatya
Read

Technology

Magento date time picker in front end form

Some times there is requirement of date time picker in your frontend form. Mostly for this developers usually use jQuery. But it is not a right way to do this. Magento do have date time picker library which is for admin form only. But with some customization we can use it in our frontend form […]

shahid
shahid
Read

Technology

Displaying Review Block (with ratings) On Product Page In Magento

One of the most common customization in magento is to display reviews and ratings on the product page itself. This blog will show you how to render reviews and ratings on product page. Following are steps. Open your theme’s catalog.xml and include the following code inside block type=”catalog/product_view” [php] <!– For adding review page on […]

amatya
amatya
Read

Technology

Magento Custom Theme Creation

To Create a new theme first we have to understand the Magento Directory Structure /app – Here all the php codes of applications resides. /lib -The external code library. /skin -Here the css,js and images resides. /app Now we take a short brief of /app and /skin directory for theme creation. First we start with […]

Technology

Magento MVC Architecture & Flow

There are many systems in PHP that follows MVC  (Model-View-Controller) architecture.   It is a robust design pattern that separates data access, business logic and user interface code. A typical MVC concept, Model: consists of application data and business rules.  It communicates with the database get the information. In Magento, we have these files under “Model” […]

shahid
shahid
Read

Technology

How to add currency selector in header of Magento

In magento by default currency selector renders in right side bar. To show it in the header is not a hard job. This blog will let you know about moving it to header of magento. First of all setup your desired currencies for your store from magento admin. Now create a new template file and […]

amatya
amatya
Read

Technology

Multiple db tables in single custom module in Magento

Creating a module which interact with a database table is quite simple. Most of the developers use magento module creator to create such a module. However, what if you want a module with multiple database tables. Following is the example of module with two database tables. Step 1. Create setup file of your custom module […]

amatya
amatya
Read