2.1

PrintShop Web Web Integration Guide | 11
Implementing a custom store front
By combining the methods described in the previous chapters a custom store front page can be
developed. This page resides outside PrintShop Web and is probably stored on a different domain and
can be developed in a scripting language other than PHP. Implementing a custom store front involves
the following subjects:
Account authentication
Storefront pages, including redirect information to PSW
Redirection from PSW to your web site/portal at the end of the ordering process
Sample files can be found in the storefront folder located in the webintegration folder of the PSW
Website folder.
Account authentication
The authentication is handled using the external_person_access.php and is similar to the
External person access process as described in the previous chapter. A change is made to the
process_login.php file where the storefront.php is included when the authentication was successful.
<!-- Process_login.php snippet-->
<?
if ($cReturn != "0") {
//Success
$_SESSION[fcUserName]= $_REQUEST[fcUserName];
$_SESSION[fcPassword]= urlencode($cReturn);
include_once("storefront.php");
} else {
//Failed
$fcUserName = $_REQUEST[fcUserName];
$cReturn = false;
include_once("index.php");
}
?>