5. EAD File Tweaks
Encase each < c02 > (or other level) with a < div >
class="simpleCart_shelfItem"
Each < did > gets class="item_name"
Include the "item_add" command alongside
every did
Add collection number to each box/folder
number for identification
7. Creating the E-mail Form
In the simpleCart.js file, change: me.checkoutTo = Email;
Add form input validation to the e-mail checkout,
using the guidelines at:
https://github.com/wojodesign/simplecart-js/issues/242
<?php
$to = 'you@example.com';
$subject = 'the subject';
$jcitems = $_POST['jcitems'];
$headers = 'From: webmaster@example.com' . "rn" .
'Reply-To: webmaster@example.com' . "rn" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $jcitems, $headers);
Header('Location: thankyou.html');
?>
8. Creating the E-mail Form
(Other submission options exist! This is what I did...)
Add these lines to simpleCart.js:
var email = document.createElement("email");
email = prompt("Please enter your e-mail address");
form.appendChild(me.createHiddenElement("email", email));
Add this line to the PHP file:
$email = $_POST['email'];
And tweak:
mail($to, $subject, $jcitems.$email, $headers);
11. Possibilities
* Automatically print call slips
* Transfer request to a tracking database
* Include scheduling in request, link with
calendar
….Other ideas? Questions?
http://www.allisonjai.com/EAD.html
E-mail me: AJODELL@gmail.com