Get Product Image based on its Position – Magento

Blog Archives

Get Product Image based on its Position – Magento

You might have seen website where the product images changes when you move mouse on it. In this tutorial i’ll show you how to do it with Magento. You need to create a small module to achieve this. We will

Posted in Blog, Magento Tagged with: , ,

How to call webservice in php?

I have called web services in php by using curl function. In below I have given  one example.  I have sent XML Request by using curl function.Because My web services return data on XML Format. $xml_data = ”; //pass parameter

Posted in Blog, PHP Tagged with: , ,

Magento – Install and Upgrade Database script

I struggled a lot to find a method to install a simple database script in Magento for creating a table or upgrading field or column. In the end I thought why not write one for reference. This post is mainly

Posted in Blog, Magento Tagged with: , , , , ,

Passing values and parameters to template file using XML and ShortCode from Magento Admin

At times there is a need to pass some parameters to template file in Magento. Some of the conditions are as follow: 1) Category Id is needed to be passed to display all the products of that particular category 2)

Posted in Blog, Magento Tagged with: , ,

Reset Order id after clearing dummy Orders in Magento

After developing a website, Developers delete all the dummy order placed using either a SQL script or using one of the free extension available on Magento Connect. After deleting orders, the Order Id still continues to be in the previous

Posted in Blog, Magento Tagged with: , ,

How to load XML file using jquery ajax ?

you can load the xml data by using  jquery ajax by below Demo. This is code in data.XML File <?xml version=”1.0″ encoding=”UTF-8″?> <tabledata> <row> <column>India</column> <column>China</column> <column>Japan</column> </row> <row> <column>Russia</column> <column>France</column> <column>Germany</column> </row> <row> <column>USA</column> <column>Canada</column> <column>Brasil</column> </row> </tabledata> NOTE:-

Posted in Blog, Jquery/Ajax Tagged with: ,

Display Most popular Posts In WordPress

Add code in your theme where ever you want the popular 5 posts to be displayed. <ul> <?php $pc = new WP_Query(‘orderby=comment_count&posts_per_page=5’); while ($pc->have_posts()) : $pc->the_post(); ?> <li><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a> <p>Posted by <strong><?php the_author()

Posted in Blog, Wordpress Tagged with: , , ,

How to add js and css in wordpress?

/** * Proper way to enqueue scripts and styles */ function theme_name_scripts() { wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘script-name’, get_template_directory_uri() . ‘/js/example.js’, array(), ‘1.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘theme_name_scripts’ );

Posted in Blog, Wordpress Tagged with: , ,

Display special priced products on your Magento homepage

Step 1: Open your homepage CMS page and click on the content tab. Paste the following: {{block type=”catalog/product” name=”home.new” alias=”product” template=”catalog/product/special.phtml”}}   Step 2: First of all this is the code were that we’re going to be using to do

Posted in Blog, Magento Tagged with: , , ,

How to install/setup language pack in Magento

Are you confused with installing language pack in Magento? Don’t be its too easy 😉 In this post we will go through Installing language pack in Magento Step 1 : Select the language you want to set on your website.

Posted in Blog, Magento Tagged with: ,