Reorder functionality (included with the most current version of the LexiConn Orderstatus Module) can easily be integrated with customer registration in ShopSite, allowing customers to reorder orders they have previously placed.
During the Orderstatus Module installation, two ShopSite template includes were created:
LexiConnReorderHead
AND
LexiConnReorderBody
To integrate Reorder functionality with your ShopSite customer registration template, you will need to include the LexiConnReorderHead include in the <head> region, and the LexiConnReorderBody include in the <body> region of the [-- DEFINE Orders --] section of your customer registration template.
For example:
[-- DEFINE Orders --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[-- Var.title STORE.Orders --]
<html>
<head>
[-- IF Store.Name --]
<title>[-- STORE.Name --] - [-- VAR.Title --]</title>
[-- ELSE --]
<title>[-- VAR.Title --]</title>
[-- END_IF --]
<script type="text/javascript" language="JavaScript">
<!--
[-- CR_JAVASCRIPT --]
// -->
</script>
[-- INCLUDE LexiConnReorderHead PROCESS --]
</head>
<body>
<center>
<p id="header">[-- CR_Header --]</p>
<h1>[-- VAR.Title --]</h1>
<div id="messages">
[-- CR_ShopSiteMessages --]
</div>
[-- CR_FORM --]
<p>[-- STORE.OrdersText --]</p>
<table cellspacing="10">
<tr>
<td>[-- CR_Order_List --]</td>
</tr>
</table>
[-- INCLUDE LexiConnReorderBody PROCESS --]
<p align="center">[-- BUTTON Done --]</p>
[-- INCLUDE crFooter PROCESS --]
[-- END_DEFINE Orders --]
If the entire <head> region of your custom template is generated from another include, you should add the LexiConnReorderHead include to the include that generates the <head> region of the [-- DEFINE Orders --] section of your customer registration template instead.
If your customer registration template uses the [-- BUTTON View --] template tag in the [-- DEFINE Orders --] section, you will probably want to delete it to disable the standard ShopSite method of viewing orders:
CHANGE:
<table cellspacing="10">
<tr>
<td>[-- CR_Order_List --]</td>
<td>[-- BUTTON View --]
<br>[-- BUTTON Delete --]</td>
</tr>
</table>
[-- INCLUDE LexiConnReorderBody PROCESS --]
TO:
<table cellspacing="10">
<tr>
<td>[-- CR_Order_List --]</td>
<td>[-- BUTTON Delete --]</td>
</tr>
</table>
[-- INCLUDE LexiConnReorderBody PROCESS --]
Once you have removed the [-- BUTTON View --] template tag, you will want to edit the default text that prompts the user to click the "View" button to view the order in:
Preferences->Store Text->Customer Registration - "Select the order below and click View to see that order's information.:"
to something more relevant, such as:
Select the order below to see that order's information.
After you have saved the changes, you should be able to log in as a ShopSite customer and reorder any previous order stored in your Orderstatus Module database.