Create language packages for an extension in Magento

Share
Posted on July 23rd, 2011 | Posted by admin

Dear my friends, last post I wrote about “How to create a multiple language website in Magento”, now I’ll continue with a related topic “How to create language packages for an extension in Magento”.
In this topic, I’ll use our FAQ extension as a real example.

  • Step 1: Edit config.xm file in : your_module/etc/config.xml
    Find section and add below piece of code:

How to add custom PHP code into CMS page in Magento?

Share
Posted on July 23rd, 2011 | Posted by admin

Today I saw that there are many topics asked about “How to add custom php code into CMS page on Magento”. Someone uses regular expressions, someone creates a new Module and puts their custom php codes into a block which they called from CMS page. But I don’t think that’s a good way.

I’m thinking about one module that we can create some custom piece of php codes in admin section then use them in any CMS page you want.

The idea is that we’ll create a new module called “customphp” that contains two parts:

Add new product type for magento

Share
Posted on July 23rd, 2011 | Posted by admin

Hi everyone!

As you may know, the resh version of Magento have five product types now :

  • Simple Product
  • Configurable Product
  • Group Product
  • Virtual Product
  • Downloadable Product.

You can create a new product type by yourself to embed to the Magento system. It’s easy to create a new product type, on this tutorial I will show you how to create a new product type. This step is to create a new product type on Magento:

  1. Create a new module by yourself or use module Creator.
  2. On file config.xml you define product by XML with tags like :

Add custom breadcrumbs to any pages

Share
Posted on July 18th, 2011 | Posted by admin

Dear my friends,
Today I’ll write about the breadcrumbs. I’ll explain how to add breadcrumbs to your custom module (Due to default settings, your custom module doesn’t contain a breadcrumbs).
We will add links to breadcrumbs block of Magento.
Open the block that you want to add breadcrumbs then find function

public function _prepareLayout()

Sort by Price not work in Magento

Share
Posted on July 18th, 2011 | Posted by admin

I recently added a large volume of products to Magento, however when I looked through the product listing, it was really strange.

All products were displayed correctly however the order was all wrong.  Instead of being ordered or sorted by price as default, the products were all over the place.

After a bit of searching I eventually found the problem is in the Magento cache system and specifically in the Layered Navigation indexes.

Logging in as admin and using the “System->Cache Management->Layered Navigation Indices->Refresh now” option resolved the issue.

However this process took a long time to complete on my server, so some patience may be required.