Magento themes and extensions

Adding New Payment Module In Magento

Posted on December 23rd, 2011 | Posted by admin

There are certain cases where you find the need to add new Payment Method (Payment Gateway) in a Magento store. Especially if the Magento store owner wishes to use a specific payment gateway not available in default Magento installation. Adding a new Magento Payment Module is not difficult but requires a little bit of programming at your end. In this article i am going to elaborate on how to add a new payment module (Payment Gateway) to your existing Magento Installation which will accept credit cards, authorize credit card when the order is placed and saves order ID in payment record.

A Complete Rewrite of Old Magento

Posted on December 23rd, 2011 | Posted by admin

If sources are to be believed then Magento 2 should be the complete rewrite of Magento and it’s been in talks since it was declared but besides promises nothing is released yet. Roy Rubin says that Magento 2 is underway and they have posted in their blogs too so lets wait and see when they will release Magento 2. Ideally problems like database complexity, slow performance will be taken care of in Magento 2 but there are few more things which Magento 2 will offer i.e.:

  • Clear processes and transparency
  • Improved product quality
  • Improved performance and scalability
  • Improved product security
  • Enhanced Modular architecture
  • Improved coverage of Web APIs
  • Simplified customization process and learning curve
  • Improve Multi-language support
  • Improve education and product documentation for merchants and developers

Creating Custom log file in magento

Posted on December 11th, 2011 | Posted by admin

Magento has a built in support to write log messages. Sometimes we may Need to include our own log file for debugging our own modules. Because the size of default system.log file is too large and also it is difficult to find a specific entry in such a large file.

we can Create our own custom log file as follows

Step 1: Navigate to Admin System > Configuration > Developer > Log Settings->Enabled. If the logsetting is not enabled change it to enabled.

Step 2: Now we can write our log entries in our custom modules as follows

Mage::log(‘My Custom log Message entry’,null,’mylog.log’);

A new file with the name mylog.log will be created in var/log directory.

Template Path Hints for Admin Panel Magento

Posted on December 11th, 2011 | Posted by admin

Magento has a built in feature called template path hints to identify the path of frontend template files and its block classes. But Sometimes you need to locate the path of adminhtml template files. Recently while searching the magento forum i got this solution. So to enable template hints for the adminhtml. Follow the below step
Step 1: Change the file app/code/core/Mage/Core/etc/system.xml as follows:

How to change Weight Attribute decimals Magento

Posted on December 9th, 2011 | Posted by admin

There is no simple way to change the decimal numbers in the Weight Attribute in Magento.

And is not a specific solution either.

What can we do?

For example, we can force to all numeric attributes to show with 2 decimals.

Open the attributes.phtml located in:

app/design/frontend/YOUR THEME/template/catalog/product/view/

I changed this:

<?php echo $_helper->productAttribute($_product, strip_tags($_data['value']), $_data['code']) ?