Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!
You are here: The ProductCart Encyclopedia » ProductCart Developers' Corner » When E-mails are Sent and How
When E-mails are Sent and How
- This page needs to be completed with more information.
Call Sendmail
If you do run a source code search for the string “call sendmail” in a Find & Replace utility such as the one built into Adobe Dreamweaver, you will find all instances of the code in which ProductCart sends an e-mail message. There are over 70 instances of this. That is: over 70 situations in which ProductCart sends a message notifying someone (store manager, customer, affiliate, drop-shipper, etc.) of something that happened in the store.
This technical article will document all e-mails sent by ProductCart, when, and how.
Order Received E-mail
This is sent to the customer that placed the order via “pc/adminNewOrderEmail.asp”, which is invoked by “pc/gwReturn.asp”. The message is sent when a payment option has been setup to NOT process orders when they are placed (orders are Pending when they are placed).
Order Confirmation E-mail
This is sent either at the time the order is placed (payment option set up to process orders when they are placed) or when it is processed in the Control Panel.
- When the order is processed at the time it is placed, the file used is “pc/customerOrderConfirmEmail.asp”, which is invoked by “pc/gwReturn.asp”.
- When the order is processed in the Control Panel, the file used is “pcadmin/sendmailCustomerProcessed.asp”, which is invoked by “pcadmin/inc_processOrder.asp”.
- The Admin Email is also sent at this time, the file used is “pc/adminNewOrderEmail.asp”, also invoked by “pc/gwReturn.asp”.
- If an affiliate made this order the affiliate email is also sent, “pc/affiliateOrderConfirmEmail.asp”, invoked by “pc/gwReturn.asp”.
Affiliate Notification E-mail
This is sent to the affiliate associated with an order. It's sent when the order has been processed. As mentioned above, this can happen at the time the order is placed (payment option set up to process orders when they are placed) or when it is processed in the Control Panel.
- When the order is processed at the time it is placed, the file used is “pc/affiliateOrderConfirmEmail.asp”, which is invoked by “pc/gwReturn.asp”.
- When the order is processed in the Control Panel, the file used is “pcadmin/inc_processOrder.asp”.
Order Notification E-mail to a Drop-Shipper
Sent either automatically or manually (depending on how the drop-shipper has been setup in the Control Panel), when the order is processed. If the order is processed at the time it is placed (a setting set when adding or editing a payment option) and the drop-shipper is setup to be notified automatically, then this message is sent automatically at the time the order is placed. Otherwise it's sent when the order is processed in the Control Panel. The message is sent via “pc/inc_DropShipperNotificationEmail.asp”, which is invoked by “pcadmin/inc_processOrder.asp”.
Drop-shipper: order cancellation notice
A drop-shipper is notified when an order has been cancelled, so that they don't ship whatever products they had been notified to ship. This is sent via “pc/inc_DropShipperCancelOrderEmail.asp”, which is invoked by “pcadmin/processOrder.asp”.
Trace: • The ProductCart Encyclopedia • Performance Tuning • BTO Tips: Taking advantage of hidden categories • BTO Tips: using CSS to style the BTO configuration pages • Increasing the maximum number of products in the cart array • Understanding How Categories Are Displayed • Creating custom Store Map page that uses your store's true (dynamic) header and footer • Database Structure - How Build To Order Prices are stored • When E-mails are Sent and How