Facebook Tutorial: Facebook Connect Zen Cart Integration in less than 5 minutes - Part1
Even if I wrote in a previous article that Facebook Connect has not only advantages, a friend asked me to do it for is website. Indeed, unlike WordPress, there still is no solution to easily integrate Facebook Connect with eCommerce websites.
I will show you in this first “Facebook Connect ZenCart Integration” tutorial how to add, in less than 5 minutes, a functional Facebook Connect login button within your great shopping cart software “Zen Car”.
You just need:
- Zen Cart v1.3.8 installed,
- a shell or ftp access to your host, you can get a nice one here (half price promo code: CHRYSTAL
), to your Zen cart server and
- your Facebook API credential.
First of all, insert the following code (between the stars) into the file ZEN_CART_ROOT_DIR/includes/templates/template_default/templates/tpl_login_default.php:
*********************
<h1> Facebook User: </h1>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:login-button></fb:login-button>
<script type="text/javascript">
FB.init("YOUR_API_KEY“, “xd_receiver.htm”);
</script>
<h1> Non Facebook User: </h1>
*********************
Where you have to replace YOUR_API_KEY with your API key given by Facebook (I will explain you how to e bit further).
In my example, I did put the code just below the following line:
************<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>***********










