Wednesday, December 28, 2011

How to change paypal button image in magento...

Don't even bother finding the solution at Magento Admin Panel or at PayPal :), spent quit a time looking for the solution over there.

Steps

  1. You need to access the file (using ftp...) located here:
    1. /app/design/frontend/base/default/template/paypal/express/shortcut.phtml
  2. Edit it:
    1. find the line that contains "img src=".
    2. replace the source with your wanted 'Pay with PayPal' image path.
Results
I've managed to change it from this one:

To this one:



Resources

Using PayPal express with magento.

The story
I was asked to give the user the ability to pay using PayPal services.
The site is magento store.
The user will have two option at PayPal:

  1. He have an acount and will pay after he logged into his PayPal account.
  2. He have no account - he is NOT requiered to open a PayPal account to pay, he'll enter his credit credentiols and pay.
Simple, right? :-)

I got into some problems, the community help on this matter is not so obvious, after a day of research and experements, which hopefuly you will avoid,  here are the final steps did to satisfy these requierments:


The solution
On Magento Admin Panel
 
  • Magento admin panel => Menu => System => Configuration, click.
  • In the left configuration panel => Sales => PayPal, click.
  • "Email Associated with PayPal Merchant Account" => enter your PayPal account email.
  • "Select a PayPal Solution" => "Express Checkout", checked
  • At "Express Checkout Settings" (*2):
    • "Payment Action" : Usually Sale .
    • "Enable PayPal Guest Checkout" => Yes
    • SAVE CONIFG!
  • At "API/Integration Settings":
    • API Authentication Methods => API Signiture.
    • Get Credentials from PayPal, click:
      • Entering PayPay... Enter your PayPal credential...
      • Just get your API credentials through Profile > My selling tools > API Access > Update > Request API credentials > Request API Signature (*1)
    • Enter the API credentioal, appropriattly, to:
      • API Username, Password & Signature.
    • SAVE CONIFG!
These steps created a fast & secure checout point for my users to buy products without PayPay account.

Hope it helped.

Resources

Saturday, December 24, 2011

MAGENTO: can't "Log in to Admin Panel"

Just solved this problem.

Problem description
I've instaled magento in my local computer and I can't login to the admin panel.

Understanding the problem
Magento doesn't work well with 'localhost' and '127.0.0.1'. After some readings on the net I understood that these addresses won't allow cookies, resolting in admin panel login failure.

Solution
Edit 'host' file located at 'C:\Windows\System32\drivers\etc'.
Add a new line, for example:
127.0.0.1 shloemi.com # Localhost virtual development site.

Usage
You can now acces magento admin pannel using the site shloemi.com.
Example: http://shloemi.com/Magento/index.php/

WPF: layouts & layout attributes explained.

Found some very good articles that explains layouts & layout attributes...

Alignment, Margins, and Padding Overview
Alignment, Margins, and Padding Overview

WPF controls layout explained
http://www.aspfree.com/c/a/Windows-Scripting/WPF-Control-Layout/

Using the WPF DockPanel http://blogs.objectsharp.com/blogs/dave/archive/2009/03/13/using-the-wpf-dockpanel.aspx

Visual Studio Developer Center > Samples

FYI - samles for VSxxx (2010, 2008...).

WPF: MVVM, Quickstart

Read and follow this GREAT article instructions...
http://www.codeproject.com/KB/WPF/WpfMvvmQuickStart.aspx

Background reading that helps

Useful resources


Sunday, December 11, 2011

WPF CodePlex toolkit, charting made easy...

Charting made easy: graph, pie, bars, points... 
Free, opensource, maintained.



"The WPF Toolkit is a collection of WPF features and components that are being made available outside of the normal .NET Framework ship cycle."


Sources