X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x (https://forum.x-cart.com/showthread.php?t=64636)

Raptor 07-10-2014 09:43 AM

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 :)

totaltec 07-10-2014 10:38 AM

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

cheap eyeglasses 11-06-2015 02:55 PM

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?

totaltec 11-09-2015 05:06 AM

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.

Raptor 08-18-2016 06:27 AM

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.......

nfc5382 10-08-2016 03:59 PM

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.


All times are GMT -8. The time now is 12:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.