Checkout Pages
From i.STAR Help
[edit]
Change Order Confirmation Email's Subject Line
Customize the orderEmail.include file and use the code below:
<isif name="$toretailer"> <isexpr expr="$subject = 'Order for ENTER NAME HERE Webstore'"> <iselse> <isexpr expr="$subject = 'Order confirmation for ENTER NAME HERE Webstore'"> <isexpr expr="$fromaddress = 'store@domain.com'"> </isif>
[edit]
Add Select Script to Order Notes Page
Put the code below above the order notes plugin with appropriate selector options:
<h4>Where did you hear about us?</h4>
<script language="JavaScript">
function MWJ_findObj( oName, oFrame, oDoc )
{
if( !oDoc ) { if( oFrame ) { oDoc = oFrame.document; } else { oDoc = window.document; } }
if( oDoc[oName] ) { return oDoc[oName]; }
if( oDoc.all && oDoc.all[oName] ) { return oDoc.all[oName]; }
if( oDoc.getElementById && oDoc.getElementById(oName) ) { return oDoc.getElementById(oName); }
for( var x = 0; x < oDoc.forms.length; x++ ) { if( oDoc.forms[x][oName] ) { return oDoc.forms[x][oName]; } }
for( var x = 0; x < oDoc.anchors.length; x++ ) { if( oDoc.anchors[x].name == oName ) { return oDoc.anchors[x]; } }
for( var x = 0; document.layers && x < oDoc.layers.length; x++ ) {
var theOb = MWJ_findObj( oName, null, oDoc.layers[x].document ); if( theOb ) { return theOb; } }
if( !oFrame && window[oName] ) { return window[oName]; } if( oFrame && oFrame[oName] ) { return oFrame[oName]; }
for( var x = 0; oFrame && oFrame.frames && x < oFrame.frames.length; x++ ) {
var theOb = MWJ_findObj( oName, oFrame.frames[x], oFrame.frames[x].document ); if( theOb ) { return theOb; } }
return null;
}
function replaceText(selectBox, textBox)
{
if (textBox.value.search(/---/) >= 0)
{
textBox.value = textBox.value.substr(textBox.value.search(/---/));
textBox.value = selectBox.options[selectBox.selectedIndex].value + '\r\n' + textBox.value;
}
else
{
if (textBox.value)
textBox.value = selectBox.options[selectBox.selectedIndex].value + '\r\n---\r\nUse For Additional Order Notes:\r\n' + textBox.Value;
else
textBox.value = selectBox.options[selectBox.selectedIndex].value + '\r\n---\r\nUse For Additional Order Notes:\r\n';
}
}
</script>
<select id="frequentBuyerSelect" name="frequentBuyerSelect" size="7" onchange="replaceText(MWJ_findObj('frequentBuyerSelect'),MWJ_findObj('OrderNotes'));">
<option value="" selected></option>
<option value="Returning Customer"> Returning Customer </option>
<option value="Catalogue"> Catalogue </option>
<option value="Friend/Relative"> Friend/Relative </option>
<option value="Search engine "> Search engine </option>
<option value="Advertisement"> Advertisement </option>
<option value="Froogle"> Froogle </option>
</select>
