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: , ,

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: , ,

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: , , ,

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: , , ,

Create Custom Post Type with Texamony(Categories) in WordPress

Custom Post types are very handy tool in wordpress. To create a custom Post Type is pretty easy. Goto functions.php file of your theme folder and copy the below code. You will get the new section for adding posts. These

Posted in Blog, Wordpress Tagged with: ,

Display magento products by category ID

<?php $categoryIds = array(18);//category id $collection = Mage::getModel(‘catalog/product’) ->getCollection() ->joinField(‘category_id’, ‘catalog/category_product’, ‘category_id’, ‘product_id = entity_id’, null, ‘left’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘category_id’, array(‘in’ => $categoryIds)) $_collectionSize = $collection->count() ?> Get detail of products <ul> <?php $i=0; foreach ($collection as $_product):  ?> <?php $i++;?>

Posted in Blog, Magento Tagged with: , , ,

Display Products in shopping cart in a drop down format in Magento

You might have seen the cart summary drop down in many websites as shown in the image below. Making such a drop down is pretty easy using Magento. You just need to know little bit of jquery for it. Follow

Posted in Blog, Magento Tagged with: ,

Export the database table as CSV format using PHP

This code need some files those files are, 1.db.php 2.export.php 3.index.php as in the db.php file, make this. database name –> wallstreet table name–> export_table column names –> id,name,place and as you, here i just declare what i have given

Posted in Blog, PHP Tagged with: , , ,

Check if product is set as New in Magento.

Magento has a great functionality to mark product as New within a range of date. At times we want the new product to be highlighted with the TAG say NEW as shown in the figure below. To make such a

Posted in Blog, Magento Tagged with: ,

Powerful WordPress Tips And Tricks

Posted in Blog, Wordpress Tagged with: ,