Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Status v. 1.0 for 2.2ms2


goldencrown

Recommended Posts

since there was no fourm for this contribution i though i start one.

 

here is the link for the contribution

Shipping Status

 

So i have made some changes to this contribution.

 

this is for dhl portion

 

I have made some small modfications to the project. these corrections are for dhl

 

1. the dhl fix was not working for me. so i made some corrections.

 

from this:

 

<?php echo '<a href="http://track.dhl-usa.com/TrackByNbr.asp=' . $order->shipping['tracking_no'] . '"

 

TARGET="_blank">' . tep_image_button('button_dhltrack.gif', IMAGE_ORDERS_TRACKING) . '</a>'; ?>

<?php echo '<a href="' . tep_href_link(FILENAME_ORDERS,

 

tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>';

 

?></td>

 

 

 

 

 

to this:

 

 

<?php echo '<a href="http://track.dhl-usa.com/atrknav.asp?ShipmentNumber=' . $order->shipping['tracking_no']

 

. '" TARGET="_blank">' . tep_image_button('button_dhltrack.gif', IMAGE_ORDERS_TRACKING) . '</a>'; ?>

 

 

 

2. And then i changed the account_history_info file to make the tracking number a click able link

 

so from this:

 

 

<td class="main"><b><?php echo HEADING_TRACKING_NO; ?></b></td>

<td class="main"><?php echo $order->shipping['tracking_no']; ?></td>

 

to this:

 

<td class="main"><b><?php echo HEADING_TRACKING_NO; ?></b></td>

<td class="main"><a href="http://track.dhl-usa.com/atrknav.asp?ShipmentNumber=<?php

 

echo $order->shipping['tracking_no']; ?>" target="_blank"><?php echo $order->shipping['tracking_no'];

 

?></td>

Biscochitos almost as good as grandma

Link to comment
Share on other sites

  • 3 weeks later...

Hello, I have a few questions:

 

#1 How would I change the code so Modification 2 will work with fedex.

 

#2 How can I add more boxes for shipping tracking number for multiple packages? And for them to correspond with the account history box.

 

#3 How would I modify the code so a user doesn?t get a email with blank text if I didn?t fill out the comments box or date delivery, etc.

 

#4 Lastly, how can i insert the date as default into the date shipped box in orders.php, and select the process of in transit by default?

 

Thanks

Danny

Link to comment
Share on other sites

#3 How would I modify the code so a user doesn?t get a email with blank text if I didn?t fill out the comments box or date delivery, etc.

 

In /catalog/admin/orders.php find where the email updates are sent by the tep_mail() function. You should see where the plain text message is started with a $email_order =

Add the code below carefully. Pay attention to ending the orginal line with a ; then the code below. Then add $email_order.= (The rest of the mail).

if ($orders_status_array[$status]=='Shipped'){
             $email_order.=EMAIL_TEXT_SHIP_DATE . $ship_date."\n";
              }

Which is IF the order status is Shipped THEN add to the email the ship date

Link to comment
Share on other sites

  • 3 weeks later...

I just installed the Shipping Status v. 1.0 for 2.2ms2 mod, but I get this error when checking my account history:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kindredp/public_html/catalog/includes/functions/database.php on line 99

 

That line of code (line 99 in database.php) is original to the base install of osC ms2 without any mods.

 

I think there maybe a conflict between this mod and the PayPal_Shopping_Cart_IPN_v3.1.5 mod sence they both modify some of the same code. I was woundering if anyone knows how to fix this. I'd really appreciate it. Thanks.

Link to comment
Share on other sites

I just installed the Shipping Status v. 1.0 for 2.2ms2 mod, but I get this error when checking my account history:

That line of code (line 99 in database.php) is original to the base install of osC ms2 without any mods.

 

I think there maybe a conflict between this mod and the PayPal_Shopping_Cart_IPN_v3.1.5 mod sence they both modify some of the same code. I was woundering if anyone knows how to fix this. I'd really appreciate it. Thanks.

Usually the error comes from the line prior to the line it says. Like forgetting to place a ; at the end of a line in php. PHP parses the code doesn't get a ; and so the next line the is bad, which PHP reports. Double check the syntax of line above line 98.

I have PayPal IPN too, so they should work together.

Link to comment
Share on other sites

Usually the error comes from the line prior to the line it says.  Like forgetting to place a ; at the end of a line in php.  PHP parses the code doesn't get a ; and so the next line the is bad, which PHP reports. Double check the syntax of line above line 98.

I have PayPal IPN too, so they should work together.

 

I think maybe I need to go through the install process again for the mod to find where I may have messed up the code. Because neither mod requires changes to the database.php file and the code just before and after is still original as shown below:

 

  function tep_db_fetch_array($db_query) {
   return mysql_fetch_array($db_query, MYSQL_ASSOC);
 }

 

It is good to know that you have the 2 mods working together. Now I just need to figure out where I went wrong. Thanks for the help. If you think of anything else please let me know.

Link to comment
Share on other sites

All better. I just whent back to my back up and installed it again. Not sure what I did wrong before, but as my Network Enginer Husband would say:

 

It looks like you have a DEU error.

 

(DEU = Dumb End User) :P

Link to comment
Share on other sites

Hello, I have a few questions:

 

#1 How would I change the code so Modification 2 will work with fedex.

 

#2 How can I add more boxes for shipping tracking number for multiple packages? And for them to correspond with the account history box.

 

#3 How would I modify the code so a user doesn?t get a email with blank text if I didn?t fill out the comments box or date delivery, etc.

 

#4 Lastly, how can i insert the date as default into the date shipped box in orders.php, and select the process of in transit by default?

 

Thanks

Danny

I'd like to know the answers to #2 as well -- anyone figure it out?

Link to comment
Share on other sites

Great contribution....It's all working fine, but I can't figure out how to change the sort order for the Status field. Currently the order is "Pending, Delivered, Processing, Shipped". Just a minor thing, so I'm hoping it's not too difficult. Thanks.

Link to comment
Share on other sites

1) Any way to make the tracking number clickable in the Email and in the account history - to automatically track the package?

 

2) How do I edit the Email content?

 

Thanks.

Answer to question 1.

Edit /catalog/account_history_info.php below

  <td class="main"><b><?php echo HEADING_SHIP_DATE; ?></b></td>

	 <td class="main"><?php echo $order->shipping['ship_date']; ?></td>

   </tr>

Add

<?php

         }

   if (tep_not_null($order->shipping['tracking_no'])) {

?>

         <tr>

	 <td class="main"><b><?php echo HEADING_TRACKING_NO; ?></b></td>

	 <td class="main"><FORM ACTION="http://wwwapps.ups.com/etracking/tracking.cgi" METHOD="GET"  target="_blank">

   <INPUT TYPE="HIDDEN" NAME="tracknums_displayed" VALUE="5">

   <INPUT TYPE="HIDDEN" NAME="TypeOfInquiryNumber" VALUE="T">

   <INPUT TYPE="HIDDEN" NAME="HTMLVersion" VALUE="4.0">

   <INPUT TYPE="HIDDEN" NAME="sort_by" VALUE="status">

   <INPUT TYPE="HIDDEN" NAME="InquiryNumber1" VALUE="<?php echo $order->shipping['tracking_no']; ?> ">

   <input name="submit" type="submit" value="<?php echo $order->shipping['tracking_no']; ?>"></form></td>

   </tr>

<?php


         }
?>

That's for UPS tracking. you can edit for other shipping carriers.

For your question 2. Read the above posts. It's already been answered.

Link to comment
Share on other sites

  • 5 weeks later...
Anyone know why im getting this error when trying to run the SQL

 

#1062 - Duplicate entry '3-1' for key 1

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 685

The sql file doesn't delete the table. It tries to add the values that entry is already in the order_status table. Try this as your sql file.:

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` ) 
VALUES (
'4', '1', 'Delivered'
);

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` ) 
VALUES (
'4', '2', 'Geliefert'
);

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` ) 
VALUES (
'4', '3', 'Entregado'
);

ALTER TABLE `orders` ADD `tracking_no` TEXT;

ALTER TABLE `orders` ADD `ship_date` TEXT;

ALTER TABLE `orders` ADD `delivery_date` TEXT;

Link to comment
Share on other sites

Hello,

 

I am also getting the same error and tried the fix above and now getting this error.

 

#1062 - Duplicate entry '4-1' for key 1

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 685

 

Im not good with troubleshooting database errors. Is thier anyone who could give me a hand?

 

Thanks

Link to comment
Share on other sites

Forgot to add it mentioned this in the install.txt but i dont kow what it means:

 

 

IMPORTANT!!! I changed Delivery status from ID 3 to ID 4 in the database. I did it manually b/c it was quicker than writing a query for it (only 3 instances, 1 for each language). You need to delete the 3 Delivery status entries from the DB ... orders_status.order_status_id Shipping status is ID 3 in the code below. It only made sense that it came before Delivery, right? ;)

 

OK, that said ... I take no credit for any of the code. I simply changed some minor things as listed below. Sorry for being a perfectionist, but I'm anal that way. ;)

 

Changes to original mod:

 

- Modified SQL file to include other languages and to properly sort status in Admin CP (DELETE DELIVERY STATUS ID FIRST and then Optimize Table, then run SQL)

- Changed Delivery and Shipped status IDs

 

 

 

Can anyone tell me what that means? Here is also the orignal SQL:

 

 

 

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'3', '1', 'Shipped'

);

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'3', '2', 'Versendet'

);

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'3', '3', 'Enviado'

);

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'4', '1', 'Delivered'

);

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'4', '2', 'Geliefert'

);

 

INSERT INTO `orders_status` ( `orders_status_id` , `language_id` , `orders_status_name` )

VALUES (

'4', '3', 'Entregado'

);

 

ALTER TABLE `orders` ADD `tracking_no` TEXT;

 

ALTER TABLE `orders` ADD `ship_date` TEXT;

 

ALTER TABLE `orders` ADD `delivery_date` TEXT;

Link to comment
Share on other sites

Can anyone help with this and tell me why im getting

 

#1062 - Duplicate entry '4-1' for key 1

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 685

 

and how to fix it, Thanks

Link to comment
Share on other sites

Try this. This changes the command from INSERT to UPDATE. It will add "Preparing [Paypal IPN]". If you get the error "#1062 - Duplicate entry '5-1' for key 1", just delete the line begining with INSERT.

 

In MySql commands for tables are DROP(delete), UPDATE(update a field), INSERT(add new), ALTER(change/add item in table). Those are some of the common commands found in sql files. You're error is arriving because the previous sql files where tyring to add the same values that were already in your table. MySql won't allow duplicate primary keys (orders_status_id) because the key must be unique for each table.

UPDATE `orders_status` SET `orders_status_id` = 4, `language_id` = 1, `orders_status_name` = 'Delivered' WHERE  `orders_status_id` = '4' AND `language_id` = '1';
UPDATE `orders_status` SET `orders_status_id` = 3, `language_id` = 1, `orders_status_name` = 'Shipped' WHERE  `orders_status_id` = '3' AND `language_id` = '1';
UPDATE `orders_status` SET `orders_status_id` = 2, `language_id` = 1, `orders_status_name` = 'Processing' WHERE  `orders_status_id` = '2' AND `language_id` = '1';
UPDATE `orders_status` SET `orders_status_id` = 1, `language_id` = 1, `orders_status_name` = 'Pending' WHERE  `orders_status_id` = '1' AND `language_id` = '1';
INSERT `orders_status` SET `orders_status_id` = 5, `language_id` = 1, `orders_status_name` = 'Preparing [PayPal IPN]' WHERE  `orders_status_id` = '5' AND `language_id` = '1';

ALTER TABLE `orders` ADD `tracking_no` TEXT;

ALTER TABLE `orders` ADD `ship_date` TEXT;

ALTER TABLE `orders` ADD `delivery_date` TEXT;

Link to comment
Share on other sites

Now im getting this error.

 

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `orders_status_id` = '5' AND `language_id` = '1'' at lin

 

 

Anyone know what that means?

 

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...

This is what i got so far on orders.php but I am no coder, so there are errors, i whipped it up from basic logic. Just a reminder i am integratign pwa with this contribution.

 

//if status is "in transit" or "delivered" include delivery confirmation number and ship date in e-mail

? ? ? ? ? ? ? ? ? ? ? ?if ($status == '3'){
? ? ? ? ? ?// start pwa changes
? ? ? ? ? ?$pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");$pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ ? ? ? ? ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . EMAIL_TEXT_ORDER_NUMBER2 . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . EMAIL_TEXT_STATUS_UPDATE2 . "\n\n" . EMAIL_TEXT_SHIP_DATE . $ship_date . "\n\n" . EMAIL_TEXT_CONFIRMATION_NO . $confirmation_no . EMAIL_TEXT_CONFIRMATION_NO2 . "\n\n" . EMAIL_TEXT_QUESTIONS; }
? ? ? ? ? ? ? ? ? ? ? ?else { ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . EMAIL_TEXT_ORDER_NUMBER2 . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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]) . EMAIL_TEXT_STATUS_UPDATE2 . "\n\n" . EMAIL_TEXT_SHIP_DATE . $ship_date . "\n\n" . EMAIL_TEXT_CONFIRMATION_NO . $confirmation_no . EMAIL_TEXT_CONFIRMATION_NO2 . "\n\n" . EMAIL_TEXT_QUESTIONS;
? ? ? ? ? ?


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



? ? ? ? ? ?$customer_notified = '1';

? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? ? ? ?elseif ($status == '4'){
? ? ? ? ? ?// start pwa changes
? ? ? ? ? ?$pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");$pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ ? ? ? ? ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . EMAIL_TEXT_ORDER_NUMBER2 . "\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]) . EMAIL_TEXT_STATUS_UPDATE2 . "\n\n" . EMAIL_TEXT_SHIP_DATE . $display_ship_date . "\n\n" . EMAIL_TEXT_CONFIRMATION_NO . $display_confirmation_no . EMAIL_TEXT_CONFIRMATION_NO2 . "\n\n" . EMAIL_TEXT_DELIVERY_DATE . $delivery_date . "\n\n" . EMAIL_TEXT_QUESTIONS; }
? ? ? ? ? ? ? ? ? ? ? ?else { ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . EMAIL_TEXT_ORDER_NUMBER2 . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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]) . EMAIL_TEXT_STATUS_UPDATE2 . "\n\n" . EMAIL_TEXT_SHIP_DATE . $display_ship_date . "\n\n" . EMAIL_TEXT_CONFIRMATION_NO . $display_confirmation_no . EMAIL_TEXT_CONFIRMATION_NO2 . "\n\n" . EMAIL_TEXT_DELIVERY_DATE . $delivery_date . "\n\n" . EMAIL_TEXT_QUESTIONS;



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



? ? ? ? ? ?$customer_notified = '1';

? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? ? ? ?//else don't include them

? ? ? ? ? ?else {
? ? ? ? ? ?	// start pwa changes
? ? ? ? ? ?$pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");$pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ ? ? ? ? ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . EMAIL_TEXT_ORDER_NUMBER2 . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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]) . EMAIL_TEXT_STATUS_UPDATE2; }
? ? ? ? ? ? ? ? ? ? ? ?else { ? $email = EMAIL_FONT . STORE_NAME . "\n" . EMAIL_THANKYOU . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . EMAIL_TEXT_ORDER_NUMBER2 . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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]) . EMAIL_TEXT_STATUS_UPDATE2;



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



? ? ? ? ? ?$customer_notified = '1';

? ? ? ? ? ? ? ? ? ? ? ?}

 

Here is the step in the PWA instructions:

 

******************************************************************
OPEN AND MAKE CHANGES IN THIS FILE: /admin/orders.php 
change: ?(v0.71)Changed the email section in admin/orders.php 
from:

[CODE]
?$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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'; ? ? ? ? }

 

to:

// start pwa changes ?$pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");$pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ ? ? ? ? ? $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_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]); } 
else { ? $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\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'; ? ? ? ? }

 

Here is the error i am getting:

Parse error: parse error, unexpected T_ELSEIF in /home/villadec/public_html/admin/orders.php on line 146

 

Thanks

Danny

Link to comment
Share on other sites

  • 1 month later...
Parse error: parse error, unexpected T_ELSEIF in /home/villadec/public_html/admin/orders.php on line 146

 

Assuming this is line 146

elseif ($status == '4'){

Change to

if ($status == '4'){

 

php must be confused by making a if...elseif...else statement because elseif & else apply the same logic to your code.

Link to comment
Share on other sites

  • 4 weeks later...

hello,

(sorry for my bad english)

 

in classes/orders.php :

in query you have an "select" with "carrier_id" field in "orders" table!

I not have this field in "oders" table ...

I have added the field, but i am not sure ...

where is in sql script ? (script in contribution pakage)

 

thank you ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...