eCommerce

Ready to Buy?

Learn More


eCommerce > Documentation > Integration Guidelines

 Step 1 : Create new PHP page

Create a web page where you would like to publish your online store. Save the web page file with .php extension, such as catalog.php.

Note: You can put the file into web root directory or any directory on the server.


   Step 2 : Find document path

To ensure that your eCommerce works regardless the location of your web page, you will need to add your server's Document Path to all the PHP include codes.

To find the Document Path, open the ' /modulescontroller/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is 'C:/wwwroot/user/modulescontroller/'


 Step 3 : Call 'config.php'

Insert the codes as below to your web page file to call the 'config.php', 'session.php' and 'css.php'. This will load all the necessary database connection, class declaration files and css control. To do this, open the catalog.php file with a text editor, and put it to the topmost line (line 1) of the php file, without any preceded character.

<?php
  include_once ("C:/wwwroot/user/modulescontroller/config.php");

  include_once ("C:/wwwroot/user/modulescontroller/common/session.php");
  include_once ("C:/wwwroot/user/modulescontroller/common/css.php");
?>



 Step 4 : Load menu, categories, login and content area

Insert the below line into the menu area that you want to display the shopping cart.

<?php include("C:/wwwroot/user/modulescontroller/ecommerce/home.cart.php"); ?>


To display the product categories, and featured products list, put the line below into the menu section.

<?php include("C:/wwwroot/user/modulescontroller/ecommerce/home.category.php"); ?>


As for member login section, use the below line:

<?php include("C:/wwwroot/user/modulescontroller/ecommerce/home.login.php"); ?>


Finally, insert this code into the body content to show your product catalog, view cart page, and checkout page.

<?php include("C:/wwwroot/user/modulescontroller/ecommerce/home.ecommerce.php"); ?>

Save your web page file and upload it via FTP.


 Step 5 : View integration result

Now, proceed to your web page URL, eg: ' http://your-domain-name/catalog.php ' to view your web store front-end integration result.

To preview your sample eCommerce in real time, click on the 'front-end' link on the top right menu from within the Modules Controller panel.


Back to the top


 
Copyright © 2007 by WebBiscuits Software Ltd.Sti. All Rights Reserved. License AgreementPrivacy Policy




php scripts search
links directories
Domain database