PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-16-04, 03:25 PM   #1
aviscat
 
Join Date: Nov 2004
Location: Texas
Posts: 24
Reputation: 5
Help Coding a Condition

I am trying to add an order status of Shipped. I have done that successfully. Once the items are delivered I want to change the status to "Delivered" and NOT email the customer. I am trying to code it so that if the
'orders_status_id' is not 4 or 'orders_status_name' is not "Delivered" then an email will be sent. I don't want to send them a 4th email as they will know the item has been delivered. I have posted the code I am using but I am still getting a Delivered email. 'orders_status_id' is an integer and 'orders_status_name' is varchar. Can someone tell me what I am doing wrong?


if ($orders_status['orders_status_id'] !=4) {

$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HIS TORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

$customer_notified = '1';
}

--
Maria (aka aviscat)
aviscat is offline  
Old 12-16-04, 03:53 PM   #2
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
You could, of course, just clear the checkbox that says to notify customer when you make the update. I'm away from my store sources right now so I can't comment on your code.
__________________
Steve
stevel is offline  
Old 12-16-04, 04:48 PM   #3
aviscat
 
Join Date: Nov 2004
Location: Texas
Posts: 24
Reputation: 5
Thanks Steve

Quote:
Originally Posted by stevel
You could, of course, just clear the checkbox that says to notify customer when you make the update. I'm away from my store sources right now so I can't comment on your code.

Another blonde moment. I will let my client know. You are the best.
aviscat is offline  
Old 12-16-04, 06:58 PM   #4
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
Hey, I'm a blond(e) too! And yes, I have my moments...
__________________
Steve
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:59 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.