Best Cross Browser Testing Tools

Testing multiple browsers on multiple platforms isn’t just difficult, it can be virtually impossible without the correct resources.
Cross Browser Testing can be the biggest pain for Website Developers. But there are some cross browser testing tools available online which help to minimize…


System config values in phtml or CMS Magento

Karan Popat

Its required to have some system config values to show in front-end from phtml file or static block.
Just you need to add relevant code from following snippet as required.

If you want it in phtml use Mage::getStoreConfig & if in CMS page/block use {{config path=””}}

Store Name
<?php echo Mage::getStoreConfig(‘general/store_information/name’); ?>
{{config path=”general/store_information/name”}}

Store Phone
<?php echo Mage::getStoreConfig(‘general/store_information/phone’); ?>
{{config path=”general/store_information/phone”}}

Store Address
<?php echo Mage::getStoreConfig(‘general/store_information/address’); ?>
{{config path=”general/store_information/address”}}

General Contact
<?php echo Mage::getStoreConfig(‘trans_email/ident_general/name’); ?>
{{config path=”trans_email/ident_general/name”}}
<?php echo Mage::getStoreConfig(‘trans_email/ident_general/email’); ?>
{{config path=”trans_email/ident_general/email”}}

Sales Representative
<?php echo Mage::getStoreConfig(‘trans_email/ident_sales/name’); ?>
{{config path=”trans_email/ident_sales/name”}}
<?php echo Mage::getStoreConfig(‘trans_email/ident_sales/email’); ?>
{{config path=”trans_email/ident_sales/email”}}

Customer Support
<?php echo Mage::getStoreConfig(‘trans_email/ident_support/name’); ?>
{{config path=”trans_email/ident_support/name”}}
<?php echo Mage::getStoreConfig(‘trans_email/ident_support/email’); ?>
{{config path=”trans_email/ident_support/email”}}

Custom Email 1
<?php echo Mage::getStoreConfig(‘trans_email/ident_custom1/name’); ?>
{{config path=”trans_email/ident_custom1/name”}}
<?php echo Mage::getStoreConfig(‘trans_email/ident_custom1/email’); ?>
{{config path=”trans_email/ident_custom1/email”}}

Customer Email 2
<?php echo Mage::getStoreConfig(‘trans_email/ident_custom2/name’); ?>
{{config path=”trans_email/ident_custom2/name”}}
<?php echo Mage::getStoreConfig(‘trans_email/ident_custom2/email’); ?>
{{config path=”trans_email/ident_custom2/email”}}

View original post

Show product discount percent in Magento

arvind singh

Open app/design/frontend/yourpackage/yourtheme/template/catalog/product/price.phtml

<?php endif; /* if ($_finalPrice == $_price): */ ?>

Add above it:

<?php // Discount percents output start ?>
<?php if($_finalPrice < $_price): ?>
<?php $_savePercent = 100 – round(($_finalPrice / $_price)*100); ?>
<p class=”special-price yousave”>
<span class=”label”><?php echo $this->__(‘You Save:’) ?></span>
<span class=”price”>
<?php echo $_savePercent; ?>%
<?php endif; ?>
<?php // Discount percent output end ?>

View original post

Dependency Injection Using MEF

1. Introduction
“Dependency Injection is a design pattern that takes away the responsibility of creating dependencies from a class thus resulting in a loosely coupled system.”


“Dependency Injection means that this is done without the object intervention, usually by a framework component that passes constructor parameters and set properties.”

Read More…