Magento Themes and Magento Extensions

Magento: Convert Price from Current Currency to Base Currency and vice-versa

Share
Posted on May 7th, 2015 | Posted by admin

Magento: Convert Price from Current Currency to Base Currency and vice-versa

Here is a quick code to convert price amount from current currency of the shop to base currency. This is applicable when you have a multiple currency shop.

From the code below, you can convert any currency you desire. You just need the ‘From Currency Code’ and ‘To Currency Code’. In the example below, I will be converting the current currency price to base currency price. You can do the vice-versa as well.

The currency convert function has the following parameters:-
currencyConvert($amount, $from, $to=null)

Creating Magento order programmatically

Share
Posted on April 27th, 2015 | Posted by admin

If you’re working with Magento , most probably you’ll face a situation when you need existing fake orders, and there are none at the moment. It’s not relevant to create orders (or customers) using the Magento interface, as you can do it programmatically, which takes less time and effort.

This action can be of great help if you need to create a number of orders quickly to test your store features.

Now, in this article I’ll explain now to create Magento orders programmatically, also adding information on creating customers programmatically, as these two actions are closely connected.

Creating EAV based model(s) in Magento

Share
Posted on March 3rd, 2015 | Posted by admin

Magento EAV (Entity Attribute Value) data model is used to get flexibility for your data, but it brings more complexity than relation table model. If you need data model that will have flexible attributes which can be dynamically added, for example from Magento admin panel, then EAV is the best solution for you. If using EAV, you don’t need to change table structure for every new attribute like you do on flat tables (creating new colums).

Bad things which EAV flexibility brings are slower Queries and more complex table structures. Let’s talk more about performance, EAV system is slower than using flat table for resource model, because it uses a lot of mysql joins (depend on attributes number) and, as we know, Query with join data from other tables is always slower than select Query from one table. This problem can be solved with two solutions. For Enterprise Magento enable full page cache and page will be cached, so with or without EAV there won’t be any difference, only first load(slower for EAV) and after that all is cached. Second solution is to make flat table and indexer for creating table from EAV entity attributes.

How To Install Extension Through Magento Connect

Share
Posted on February 9th, 2015 | Posted by admin

Magento is surely a shopping cart platform comes with a lot of features out of the box.Like any other opensource CMS’s, it also allows us to install extensions to extend its functionality.To install an extension, first you should visit magento-connect

What is Magento Connect

Magento Connect is a marketplace that allows Magento community members and partners to share their open source or commercial contributions for Magento with the community.Both free and paid extensions are available.

How to install an extension

Display date in specified format in Magento

Share
Posted on February 6th, 2015 | Posted by admin

Display date in specified format in Magento

Mage::helper(‘core’)->formatDate($date, $format, $showTime=false)

Argument 1: Date that you want change the format (This may be database driven or manual)
Argument 2: Date format: short, long, medium, full
Argument 3: Show Time: True to display time and false to not display time

Page 1 of 11212345»102030...Last »