Showing posts with label magento customize. Show all posts
Showing posts with label magento customize. Show all posts

Sunday, 22 July 2012

Integration of Secure EBS Payment Gateway in Magento



           Today I’m going to tell you about how to integrate Secure EBS Payment Gateway
 in Magento .


Steps for Integrating Secure EBS Payment Gateway in Magento :

       Secure EBS payment Gateway is default Module in Magento. Despite below, steps
 are help for Understanding or How module is integrated in magento.
You can download the module from below link

( I ) Follow Below steps :
       1)      Copy the folder Secureebs to magento\app\code\core\Mage\
       2)      Copy the file Mage_Secureebs.xml to magento\app\etc\modules\
       3)      Copy the folder secureebs to magento\app\design\frontend\base\default\template\
       4)      Add the file Mode.php inside magento\app\code\core\Mage\Adminhtml\Model\System\
Config\Source\
       5)      Enter your Account Id , Secret Key and select the Mode from the EBS
Payment Method control panel & Enable it.

 ( II ) Finally Need to update below file otherwise we will get Error :
Open File   \app\code\core\Mage\Secureebs\Block\Standard\Redirect.php

( III ) Below code is default code in redirect.php :
$name=$fname.” “.$lname;
$address=$street.”,”.$city.”,”.$state;
$mode=Mage::getSingleton(‘secureebs/config’)->getTransactionMode();
if($mode == ’1′)
{
$mode=”TEST”;
}
else
{
$mode=”LIVE”;
}
 Customize code : (Here we need to add below code)
$secretKey = Mage::getSingleton(‘secureebs/config’)->getSecretKey(); // Our SecretKey
$account_id = Mage::getSingleton(‘secureebs/config’)->getAccountId(); //account ID
$amt = $amount;
$refrence_no = $referenceno;
$return_url = $returnurl;
$mode = $mode;
 $string = “$secretKey|$account_id|$amt|$refrence_no|$return_url|$mode”;
// Should add ” | ” between parameters
 $secure_hash = md5($string); // Encrypt MD5 format
$form->addField(‘reference_no’, ‘hidden’, array(‘name’=>’reference_no’, ‘value’=>$referenceno));
$form->addField(‘amount’, ‘hidden’, array(‘name’=>’amount’, ‘value’=>$amount));
$form->addField(‘mode’, ‘hidden’, array(‘name’=>’mode’, ‘value’=>$mode));
$form->addField(‘return_url’, ‘hidden’, array(‘name’=>’return_url’, ‘value’=>$returnurl));
$form->addField(‘name’, ‘hidden’, array(‘name’=>’name’, ‘value’=>$name));
$form->addField(‘description’, ‘hidden’, array(‘name’=>’description’, ‘value’=>$desc));
$form->addField(‘address’, ‘hidden’, array(‘name’=>’address’, ‘value’=>$address));
$form->addField(‘postal_code’, ‘hidden’, array(‘name’=>’postal_code’, ‘value’=>$postalcode));
 $form->addField(‘secure_hash’,'hidden’,
array(‘name’=>’secure_hash’, ‘value’=>$secure_hash)); // this line need to add

( IV ) Enable Module from Admin panel :
After integrate this module , open magento admin panel , then enable Secure EBS Payment Gateway, and pass your secret Key and account ID.

For any magento customization contact:
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)

Saturday, 28 January 2012

How to edit Email Templates in Magento


Hello Everyone,

               Today I’m going to tell you about how to  edit Email Templates in Magento .In most of the cases we need to add some additional information to the invoice generated(like VAT No, TIN No, Some terms and conditions) or to the new user regarding functionality of our E-commerce portal.In magento there is no such inbuilt functionality available.Hence we have to create our own Email Template and assign it to different funtions.In this tutorial we are goin to discuss the same.

         To create a new Email Template you have to go to 
admin --> system --> transactional emails --> add new template --> choose the base template from the drop down and edit as appropriate.

        Then you can assign the newly created template to proper functionality. For e.g. if you have created new template for Invoice you can assign as follows.Go to
admin --> system --> configuration --> Sales Emails --> Invoice --> Invoice Email Template

 And from the drop down select the template you created for invoice and save config.


Well now the most important step.
- Clear the Cache.
- Go to System –> Cache Management
- Refreh Cache.
- If you have not enabled the Cache OR if it didn’t work even after refreshing the cache, then
- delete the cache folder present inside var (var/cache)

For any magento customization contact :
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)


Thursday, 29 September 2011

How to Change Regular Price & Special Price text in magento

Hello Everyone,

Today I’m going to tell you how to change 'Regular Price' and 'Special Price' text in magento. Though there are many ways to do it, But i'l tell you one simple method as it worked for me.I wanted to change 'Regular Price' with 'Actual Price' and 'Special Price' with 'Our Price'.

First you need to navigate to the file mage_catalog.csv by following path:

app/locale/en_US/Mage_catalog.csv

Now just check for translations 'Regular Price' and just

Replace

"Regular Price:","Regular price:"

With

"Regular Price:","Actual Price:"

Replace

"Special Price:","Special Price:"

with

"Special Price:","Our Price:"


Well now the most important step.
- Clear the Cache.
- Go to System –> Cache Management
- Refreh Cache.
- If you have not enabled the Cache OR if it didn’t work even after refreshing the cache, then
- delete the cache folder present inside var (var/cache)

You can also refer to the video showing how it actually works



If you are not able to change the label through CSV files, you can use following method :

  • Go to
    Admin Panel –> System –> Configuration –> ADVANCED –> Developer –> Magento Developer –> Translate Inline
  • Change "Enabled for Frontend" from 'No' to 'Yes'.
  • Press Save Config
  • Refreh Cache.
-> Now go to frontend and refresh page
->


For any magento customization contact :
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)

Wednesday, 28 September 2011

How to change Currency symbol in magento



Hello Everyone,

                 Today I’m going to tell you how to change Currency symbol in magento.In simple words, This tutorial will tell to change the currency symbol of dollar (from $ to Rs). By default, the currency symbol for dollar is $.But if you want to insert rupee symbol  instead of "Rs" follow this tutorial.

For this, you need to edit lib/Zend/Locale/Data/en.xml
Well, the xml file to edit depends upon your locale settings. My locale is set to English (United States). So, I will have to change en.xml file.

You can change your locale setting from
Admin Panel –> System –> Configuration –> GENERAL –> General –> Locale options –> Locale

If your locale is Japanese (Japan), you need to change lib/Zend/Locale/Data/ja.xml
If your locale is Hindi (India), you need to change lib/Zend/Locale/Data/ne.xml
It’s similar for other locale settings. I have locale setting as English, so I will be editing en.xml file.
- Open lib/Zend/Locale/Data/en.xml
- Find the following :-


<currency type="USD">
    <displayName>US Dollar</displayName>
    <displayName count="one">US dollar</displayName>
    <displayName count="other">US dollars</displayName>
    <symbol>$</symbol>
</currency>

- Change

<symbol>$</symbol>

-to

<symbol>Rs</symbol>

But wait, you are still not done. The most important thing is still left.
- Clear the Cache.
- Go to System –> Cache Management
- Refreh Cache.
- If you have not enabled the Cache OR if it didn’t work even after refreshing the cache, then
- delete the cache folder present inside var (var/cache)


You can also refer to the video showing how it actually works



But sometimes you want to insert an image instead of text
for e.g. if you want insert rupee symbol  instead of "Rs" follow this tutorial.

For any magento customization contact :
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)