Posts Tagged ‘wordpress’


Paypal Pro API Plugin for eShop

I have got lots of request for integration of eshop with paypal pro API..

Clients are asking for same solution but their wording are different….
###1
I would like someone to modify the php for eshop’s paypal gateway so that customers do not leave my site when checking out.

###2
I need a Paypal Pro merchant gateway plugin for eShop. eShop currently offers a standard paypal gateway but does not have settings/option for the Paypal API direct pay. I am aware other shopping carts offer this (like wp ecommerce) but I like the eShop interface and functions.

I would very much like it written as a plugin for eShop.

WordPress version: 3.0.4
eShop version: 6.0.2

etc….

Finally, I desire to add this feature to eShop wordpress plugin..
You can see the demo at my given demo url.
Demo URL : http://www.techphpexpert.com/projects/eshop/

It was great to customize this plugin as its great achievement and everyone is in need of this…..

Currenltly i have customized “eShop” plugin for developers it might be easy to integrate my customization but may be not so easy for webmaster to do this job.

so if any one is in need for this feature let me know i will do it. You can reach me at sudhirsoft01@gmail.com or fill the contact us form with
subject of “Paypal Pro API Plugin for eShop” and your suggations on message part.

You can see the below screencasts that i will provide you for admin settings and user-end setting.
Admin Side User Interface:

Front Side Paypal Pro checkout option:

Creating Menu in WordPress Admin side and using it in front side.

PHP Cookies: How to Set Cookies & Get Cookies

Cookies don’t have to be an essential part of a website but can provide some of the “little things” that can set your website apart from the rest. Cookies are small tidbits of information that you save on the client’s computer so that you can access them next time they visit the website. Session ID’s are also usually held in cookies.

So what are the most popular uses of cookies? They are:

  • To store username/password information so that the user doesn’t have to log in every time they visit the website (“remember me” sign ins).
  • To simply remember the user’s name.
  • To keep track of a user’s progress during a specified process.
  • To remember a user’s theme.

Setting the Cookie

Setting a cookie requires a key, a value, and the amount of time to allow the cookie to exist.

$first_name = 'David';
setcookie('first_name',$first_name,time() + (86400 * 7)); // 86400 = 1 day

Above, we set the user’s first name equal to ‘David’ (this data would actually come from a form or database but for the sake of the example we’ll use my name). Then, we set a cookie with the key of “first_name” with the value ‘David’, and program it to expire 7 days from now.

Getting the Cookie Values

Now that we’ve set our cookie, it’s time to get the value pretend they left your site and are coming back two days later).

echo 'Hello '.($_COOKIE['first_name']!='' ? $_COOKIE['first_name'] : 'Guest'); // Hello David!

Above, we check to see if the cookie with ‘first_name’ as the key still exists. If so, we use their name; if not, we call them “Guest”. Basic cookies are that easy!

PHP cookies can be set with more specific directives, including path, domain, secure, and httponly.

setcookie('first_name',$first_name,time() + (86400* 7),'/~sugar/','sudhirtiwari.com,true,true);

This cookie is the same as above, but we’re also telling the cookie to be applied towards the “~sugar” directory on the “davidwalsh.name” domain. It is for use only on an SSL connection and it may not be used by JavaScript.

Some other things to know about cookies:

  • Although you set an expiration on the cookie, a user can delete cookies at any time.
  • Cookies can only be accessed by the browser that set them (Firefox and IE don’t share them)
  • A user can turn cookies off in their browser.
source:stackoverflow.com
Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories