Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

extended order status with email notifications

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 02-28-2008, 11:55 AM
 
chris.barber chris.barber is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 74
 

Default 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
Reply With Quote
  #52  
Old 02-29-2008, 03:38 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: extended order status with email notifications

I followed this post...

http://forum.x-cart.com/showthread.php?t=33007

Regards

Shafiq :sK
__________________
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
Reply With Quote
  #53  
Old 05-24-2008, 03:03 PM
 
chris.barber chris.barber is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 74
 

Default 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
Reply With Quote
  #54  
Old 05-25-2008, 07:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: extended order status with email notifications

Quote:
Originally Posted by 2coolbaby
I would also like to get instructions for 4.1.8. I have been pretty much having to set non-normal orders to queued.

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
Reply With Quote
  #55  
Old 07-08-2008, 10:01 AM
 
gamafx gamafx is offline
 

Newbie
  
Join Date: Nov 2005
Posts: 1
 

Default Re: extended order status with email notifications

Quote:
Originally Posted by Duramax 6.6L
I would be interested in seeing a detailed instalation for this mod in 4.1.8.
Same here.
__________________
Alex
Reply With Quote
  #56  
Old 07-09-2008, 05:56 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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
Reply With Quote
  #57  
Old 05-07-2009, 05:29 AM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default Re: extended order status with email notifications

What if your cart has no include/func.php?
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #58  
Old 05-07-2009, 04:07 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: extended order status with email notifications

Quote:
Originally Posted by anela2003
What if your cart has no include/func.php?

In 4.1 the functions were broken down in include/func.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #59  
Old 02-07-2011, 01:52 AM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default 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)
Reply With Quote
  #60  
Old 02-07-2011, 09:07 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: extended order status with email notifications

The link above should point you in the right direction.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:07 PM.

   

 
X-Cart forums © 2001-2020