| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
extended order status with email notifications | ||||
|
|
Thread Tools | Search this Thread |
#51
|
|||||||
|
|||||||
Re: extended order status with email notifications
PM me an email address and I will send it.
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#52
|
|||||||||
|
|||||||||
Re: extended order status with email notifications
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#53
|
|||||||
|
|||||||
Re: extended order status with email notifications
I have a small update to add to this mod as I found the lack of inclusion of the new statuses in the "Orders Info" section on the Main admin page a bit of a pain as it didn't tell the full picture, anyway I decided to investigate updating this.
It goes without saying but BACKUP BACKUP BACKUP then start From the xcart/admin directory edit the main.php file. Find $orders["Q"][] = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[orders] WHERE status='Q' $date_condition"); Then copy it below this line, replace the Qs in the new line with the letters you added for your new statuses, repeat for all new statuses or those you want included anyway. You also need to edit the total to include these new statuses Find $total_paid[] = price_format(func_query_first_cell("SELECT SUM(total) FROM $sql_tbl[orders] WHERE (status='P' OR status='C') $date_condition")); copy the OR status='C' part and paste it immediately after so you end up with OR status='C' OR status='C' then change the second C to the letter of the new status you added, repeat for all the statuses you want included in the total. NOTE: This has a date condition so if you have a status of BACKORDERED and the order is from several weeks ago, the number of BACKORDERED orders will be shown in the table but the value will not be included within the Total, removing the date condition will simply give you a total for every order in your system so not recommended. Then edit the xcart/skin1/admin/main.tpl file Find the line that starts <td nowrap="nowrap" align="left">{if $key eq "P"}{$lng.lbl_processed}{elseif $key eq "Q"} Then move to the end of this line and copy {elseif $key eq "I"}{$lng.lbl_not_finished} and paste this text after the current instance so you will have two instances of this text like the example below {elseif $key eq "I"}{$lng.lbl_not_finished}{elseif $key eq "I"}{$lng.lbl_not_finished} Now change the new instance of I to be one of your status letters added to the main.php earlier, if you have created labels for these new statuses replace $lng.lbl_not_finished with the label of the new status, or you can hard code it by replacing $lng.lbl_not_finished with your new status wrapped in "", e.g. "REFUNDED" That's it, I hope this helps someone else, but if not it made me happy...
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#54
|
|||||||||
|
|||||||||
Re: extended order status with email notifications
Quote:
See http://forum.x-cart.com/showthread.php?t=33007&page=5 for what I did for a solution. I only needed "backordered and "canceled". The code is there to do both, and it could be expanded to cover other possibilities as well. I did disable the part where it returns the product to stock because it is normally "backordered" orders that are canceled and there is no item to return to stock. Anyway, it works for me.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#55
|
|||||||
|
|||||||
Re: extended order status with email notifications
Quote:
__________________
Alex |
|||||||
#56
|
|||||||||
|
|||||||||
Re: extended order status with email notifications
Again, see http://forum.x-cart.com/showthread.php?t=33007&page=5 for the solution. See post #42. It does the same thing. As long as you add a status to include/func.order.php and skin1/main/order_status.tpl, and clone email templates you should be good to go.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#57
|
|||||||
|
|||||||
Re: extended order status with email notifications
What if your cart has no include/func.php?
|
|||||||
#58
|
|||||||||
|
|||||||||
Re: extended order status with email notifications
Quote:
In 4.1 the functions were broken down in include/func. |
|||||||||
#59
|
|||||||
|
|||||||
Re: extended order status with email notifications
Hello - I am trying to find code that will simply allow me to add a status (modifying main/order_status.tpl). Some of the mods i've tried add the status option, but it cannot be saved. I dont need any email notifications, etc., just an additional order status option. can you tell me what of the above I will need? Thank you!
__________________
Alan Ruud X-Cart Ver. 4.4.1 (Unix) |
|||||||
#60
|
|||||||||
|
|||||||||
Re: extended order status with email notifications
The link above should point you in the right direction.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|