How to edit email message

Joop

No avatar

2006-04-23 17:21

Hi there,

Can anyone tell me how to add text to the order conformation (HTML Mail Order Details)? Would like to add adress and bank account because customers have to pay upfront.
QC 1.2

Thanks in advance,
Joop

Becky

No avatar

2006-04-26 16:10

Hi Joop,

I conquered that problem by adding some extra fields in config/general.php.

$config['paypal'] ="info@laruewebdesign.com";
$config['payto'] ="Payable to Name";
$config['payaddress'] ="Be sure to include complete address";

You also then need to add to the language file.
Once that was completed, then I added the following info to messages.tpl, some of which the answers were found on this board already:

<!-- BEGIN ORDER_PP_SP_EG -->
<div id="message">
<div id="ok">
Thank you for shopping with us. Your order has been received. Please click the button below to finish the checkout process.
<br /><br />

<div style="text-align:center">
<form target="paypal" name="_$iOrder" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="$config[email]" />
<input type="hidden" name="item_name" value="Order ID $iOrder" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value="http://www.webblets.com" />
<input type="hidden" name="amount" value="$aList[fSummary]" />
<input type="hidden" name="shipping" value="$aData[fCourierPrice]" />
<input type="hidden" name="no_note" value="1" />
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but6.gif" name="submit" alt="Pay with Paypal - fast and secure!" />
</form>
</div>
<br /><br /><font size="2">If you prefer to send check/money order please make payable to:<br />$config[payto]<br />$config[payaddress]<br />
<br /><a href="javascript:windowNew( '?p=ordersWindowPrint&amp;iOrder=$iOrder' );">&raquo; $lang[Order_print]</a>
<br />
<a href="?p=">$lang[Homepage]</a>
</div>
</div>
<!-- END ORDER_PP_SP_EG -->

You will also need to add these lines to your config_form.tpl file:

<tr>
<th>
$lang[PayPal]
</th>
<td>
<input type="text" name="paypal" value="$config[paypal]" size="35" />
</td>
</tr>
<tr>
<th>
$lang[PayTo]
</th>
<td>
<input type="text" name="payto" value="$config[payto]" size="35" />
</td>
</tr>
<tr>
<tr>
<th>
$lang[PayAddress]
</th>
<td>
<input type="text" name="payaddress" value="$config[payaddress]" size="35" />
</td>
</tr>

I think that was it, but this accomplished getting the payment info on /index.php?p=ordersDelivery and the payment information is configurable in the admin section. You might need to fix it to your own specifications.

I really hope this helps you with what you are trying to do, I havent tried adding variables to mail forms yet, but since they work elsewhere I am sure they will work on print and mail forms also.

~Joop

No avatar

2006-04-26 22:44

Hi Becky

More then I hoped for and probably need!
Don't know if I need all of it but it shurely puts me in the right directions.

Thanks a lot!

Back to top
about us | contact