7.1
Table Of Contents
- Table of Content
- Overview
- Understanding PrintShop Mail Web
- Getting Started
- The PrintShop Mail Web Interface
- Publishing Workflow
- Ordering Workflow
- New Document
- Order Manager
- Checkout
- Companies
- Users
- Publication Types
- Collections
- Settings
- About
- License
- Roles
- Languages
- Web Design
- Maintenance
- Settings
- Currencies
- Tax Rates
- Shipping Rates
- Calendar
- Production Settings
- User Input Field Defaults
- Output Folders
- Job options
- Printers
- E-mail Settings
- E-mail Addressees
- Managing E-mail Templates
- Modules Settings
- Enabling a MIS connector
- Installed modules
- Properties
- Enabling a Print Production connector
- Installed modules
- Properties
- Requirements
- Configuring the module
- The PayPal Sandbox
- Processing orders
- Requirements
- Configuring the Authorize.net module
- Test mode
- AVS and CCV checks
- Payment page
- Requirements
- Requesting a test account
- Configuring the iDEAL test dashboard
- Configuring the iDeal module
- Requirements
- Configuring the Moneris module
- Test mode
- Requesting a live account
- AVS and CVD checks
- Payment page
- Add a new Module
- Configure a module
- Delete a Module
- XML (eXtensible Markup Language)
- Options
- Sample POST receive script
- Interaction With PrintShop Mail Design
- Introduction to Regular Expressions
- Introduction
- Skinning Guide
- Getting started
- Creating your own skin
- The template file
- HMTL Outline
- Styling
- Key Concepts
- Style organization
- Header
- User information
- Menu bar
- Background
- Overview tables
- Edit forms
- Sub menus
- Special variables
- Variables for template files
- Variables for style files
- Creating page exceptions
- Creating a page specific template file
- Modifying a page specific template file
- DOM manipulation using jQuery
- Launching code on Document Ready
- Populating fields with computed values
- Removing elements from the DOM
- Adding information to the DOM
- Customizing the store front
- Storefront class
- Creating a hierarchical tree
- Adding a live search option
- Copyright Information
- Index
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 Mail 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:
l Account authentication
l Storefront pages, including redirect information to PrintShop Mail Web
l Redirection from PrintShop Mail Web 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 PrintShop Mail Web 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 a custom storefront file (store-
front.php) is included when the authentication was successful.
<!-- Process_login.php snippet-->
<?php
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");
}
?>
Custom store front pages
In our example the storefront.php contains a hard coded list of documents. The images on the page have a hyperlink pointing
to the external_login.php file.
©2010 Objectif Lune Inc - 205 -