2.1
PrintShop Web Web Integration Guide | 13
Page IDs, form IDs and internal IDs are displayed in the Status bar of the browser
Adding a redirect to PSW
After completing the document the customer is guided through the ordering process. At the end of this
process the PSW web site is redirected to the ordermanager_overview.php page. By tweaking the
template.php file of the active skin you could redirect the user to your own web site/portal. This can be
achieved by adding the following code to the beginning of the template.php file:
<!-- template.php of the active skin -->
<?
if ($_SESSION[nav][cPageID] == "ordermanager_overview") {
echo "<script language='JavaScript'>";
echo "document.location.href='http://yourwebsite'";
echo "</script>";
exit;
}
?>
To redirect to the Thank You Page located in the webintegration sample folder enter the following URL:
document.location.href='http://localhost/webintegration/storefront/thankyou.php'
If the customer doesn't have access to the Order Manager section (defined in his/her role) the Thank
You for Ordering page appears. You can setup the same condition for this page. The page ID for this
page is: order_thankyou.
Important: Do not setup a custom redirect in the default skin of your PSW installation as none
of your users will be able to access the Order Manager section. Use a duplicate or a custom
skin.










