Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email notifactions
04-29-2014, 10:10 AM,
#1
Email notifactions
I could not get notifaction after customers place orders but I always got email notifactions when made stock adjustment, which i do not really need.

Also, I do not want my customers to see my stock levels when placing orders. Is there any way I can make the numbers invisible?

Anyone could tell me how and where to fix the problems? ā€¸Thanks!


Attached Files Thumbnail(s)
   
Reply
04-29-2014, 11:13 PM, (This post was last modified: 04-29-2014, 11:25 PM by agaluski.)
#2
RE: Email notifactions
You can edit SelectOrderLines.php (Make a backup first).
There are a 2 places where you will find code like the below for the headers and data being displayed. You could conditionally remove the rows you want to hide by using code like
PHP Code:
if (isset($CustomerLogin)) {
  
/*copy existing code but remove the columns/data you do not want to show*/
} else {
  
/*use existing code*/


HEADERS:
PHP Code:
echo '<p class="page_title_text">
        <img src="'
.$RootPath.'/css/'.$Theme.'/images/magnifier.png" title="' _('Search') . '" alt="" />' .
        
' ' _('Frequently Ordered Items') .
        
'</p>
        <br />
        <div class="page_help_text">' 
_('Frequently Ordered Items') . _(', shows the most frequently ordered items in the last 6 months.  You can choose from this list, or search further for other items') .
        
'.</div>
        <br />
        <table class="table1">
        <tr>
            <th class="ascending" >' 
_('Code') . '</th>
            <th class="ascending" >' 
_('Description') . '</th>
            <th>' 
_('Units') . '</th>
            <th class="ascending" >' 
_('On Hand') . '</th>
            <th class="ascending" >' 
_('On Demand') . '</th>
            <th class="ascending" >' 
_('On Order') . '</th>
            <th class="ascending" >' 
_('Available') . '</th>
            <th class="ascending" >' 
_('Quantity') . '</th> 
DATA:
PHP Code:
printf('<td>%s</td>
            <td title="%s">%s</td>
            <td>%s</td>
            <td class="number">%s</td>
            <td class="number">%s</td>
            <td class="number">%s</td>
            <td class="number">%s</td>
            <td><input class="number" ' 
. ($i=='autofocus="autofocus"':'') . ' tabindex="%s" type="text" required="required" size="6" name="OrderQty%s" value="0" />
            <input type="hidden" name="StockID%s" value="%s" />
            </td>
            </tr>'
,
            
$myrow['stockid'],
            
$myrow['longdescription'],
            
$myrow['description'],
            
$myrow['units'],
            
locale_number_format($QOH$QOHRow['decimalplaces']),
            
locale_number_format($DemandQty$QOHRow['decimalplaces']),
            
locale_number_format($OnOrder$QOHRow['decimalplaces']),
            
locale_number_format($Available$QOHRow['decimalplaces']),
            
strval($j+7),
            
$i,
            
$i,
            
$myrow['stockid']); 

Also - too send an email you can modify DeliveryDetails.php.
Find the following code:
PHP Code:
} else {
        
/*its a customer logon so thank them */
        
prnMsg(_('Thank you for your business'),'success');
                
/*Send Email here*/

Add in an email send:
PHP Code:
$ConfirmationText 'Some text for your email';
$EmailSubject _('New Order Placed by Customer');
if($_SESSION['
SmtpSetting']==0){
      mail('
YOUR_EMAIL@XYZ.COM',$EmailSubject,$ConfirmationText);
}else{
        include('
includes/htmlMimeMail.php');
    $mail = new htmlMimeMail();
    $mail->setSubject($EmailSubject);
    $mail->setText($ConfirmationText);
    $result = SendmailBySmtp($mail,array('
YOUR_EMAIL@XYZ.COM'));

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)