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

Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 07-10-2014, 09:43 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 127
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

I have updated the OP to include Thomasb134's fixes (thanks) including a couple more entries I found and consolidated all my other posts so its all in one thread

Tested perfect on X-Cart 4.6.2
__________________
X-Cart v4.17.12
ReBOOT ReDUX
Reply With Quote

The following user thanks Raptor for this useful post:
totaltec (07-10-2014)
  #12  
Old 07-10-2014, 10:38 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

Working in X-cart 4.6.3,Nice job summing this up Raptor. Thanks
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Raptor (07-11-2014)
  #13  
Old 11-06-2015, 02:55 PM
 
cheap eyeglasses cheap eyeglasses is offline
 

Senior Member
  
Join Date: Oct 2010
Posts: 140
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

does the codes apply to x-cart gold v4.7.4?
Reply With Quote
  #14  
Old 11-09-2015, 05:06 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

Yes, it should work in 4.7.4. Not much has changed in this area.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #15  
Old 08-18-2016, 06:27 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 127
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

I can't get it to work at all with 4.7.6

Have disabled Custom Order Status as that is not fit for purpose (Refund & Cancelled orders requires putting stock back and sending custom email).

If anyone has any ideas.......
__________________
X-Cart v4.17.12
ReBOOT ReDUX
Reply With Quote
  #16  
Old 10-08-2016, 03:59 PM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 474
 

Default Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x

I ended up using the Custom Order Statuses mod with 4.7.6. I use an "out of stock - on order" and "discontinued" order status.

When adding a custom status in 4.7.6 a random status code is picked by x-cart. Since I had my own custom statuses from before the store upgrade I just had to update the random status code to match what I had picked previously.

You can figure out what the random status code is through SQL
Code:
select * from xcart_custom_order_statuses;

or by modifying the custom order status tpl to print it out:

Index: skin/common_files/modules/XOrder_Statuses/status_selector.tpl
Code:
<td align="left"> - <textarea name="statuses[{$status.statusid}][descr]" cols="45" rows="4">{$status.descr}</textarea> + <b>statusid={$status.statusid},code={$status.code}</b> <textarea name="statuses[{$status.statusid}][descr]" cols="45" rows="4">{$status.descr}</textarea> </td>

For me, my new status IDs were 9 and 10 and needed codes 'K' and 'S' to match my previous custom status codes. I updated them in SQL:

Code:
update xcart_custom_order_statuses set code='K' where statusid='9'; update xcart_custom_order_statuses set code='S' where statusid='10';

The Custom Order Status module has built-in options for sending emails so I've been using that for customer email notification.
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote

The following user thanks nfc5382 for this useful post:
qualiteam (10-10-2016)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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


All times are GMT -8. The time now is 08:05 AM.

   

 
X-Cart forums © 2001-2020