Magento – Install and Upgrade Database script

Blog Archives

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

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

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

how to display article intro image in joomla module?

Article display by yourtheme/html/com_content/article/tmpl/default.php file. you can use module mod_articles_latest so edit mod_articles_latest/tmpl/default.php file. <?php /** * @package Joomla.Site * @subpackage mod_articles_latest * * @copyright Copyright (C) 2005 – 2014 Open Source Matters, Inc. All rights reserved. * @license GNU

Posted in Blog, Joomla, PHP Tagged with: , , ,

Drag and drop using jquery

Create .html file <link rel=”stylesheet” type=”text/css” href=”css/style.css”> <script type=”text/javascript” src=””></script> <script type=”text/javascript” src=””></script> <script type=”text/javascript”> $(document).ready(function(){ // Example 1.1: A single sortable list $(‘#example-1-1 .sortable-list’).sortable(); // Example 1.2: Sortable and connectable lists $(‘#example-1-2 .sortable-list’).sortable({ connectWith: ‘#example-1-2 .sortable-list’ }); // Example

Posted in Blog, Jquery/Ajax Tagged with: , , , ,

How to use login() function in joomla?

You can use Below code during develop module and component with login functionality, get your username and password dynamically and put in array function. when you call registration successfully function just add this code for autologin  functionality. $credentials = array( ‘username’

Posted in Blog, Joomla, PHP Tagged with: , , ,

How to display blog posts (Fishpig module) with featured images on magento homepage?

When we integrate fishpig with magento we can have one folder “wordpress” in the template folder.(path:- appdesignfrontendbasedefaultwordpress). in that we can create our custom folder like “xyz”. in that we need to create one .phtml file called “xyz.phtml”. the followings

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

Hide categories without products in magento

The easiest way to do this is to only rewrite the Mage_Catalog_Block_Navigation block: In the method _renderCategoryMenuItemHtml() you want to replace the loop path: app/code/local/module folder foreach ($children as $child) { if ($child->getIsActive()) { $activeChildren[] = $child; } } with

Posted in Blog, Magento Tagged with: , ,

Uderstanding Components, Modules And Plugins

One of our most frequently requested topics for people new to Joomla is an explanation of the difference between components, modules and plugins – so that’s exactly what we’re going to look at here. Components. The text of this article

Posted in Blog, Joomla Tagged with: , ,

How and where to use Jdoc statements in joomla

jdoc statements are included in every Joomla template and indicate where the output from other parts of Joomla or its extensions should be positioned in the overall web page. A typical jdoc statement looks like this: <jdoc:include type=”component” />. jdoc:include: The <jdoc:include /> statement

Posted in Blog, Joomla Tagged with: ,