| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
JULY 10 2014: UPDATED TO LATEST 4.6.2 and above - All functions tested 100%
Like many others I require several different custom order status and would also like the customer to be emailed on change of status, and also the option to put the product back in stock. A perfect example of this is Refunds. After doing some research with regards to older versions I was able to get it working perfectly on my own 4.6.2 (Thanks to Jon & imexhouse in THIS THREAD) and thanks to Thomasb134 in THIS POST) For this example I am going to add a 'Refunded' order status. Of course you can change to whatever you require. I have also hardcoded the Order Status name as opposed to using a label. Open skin/common_files/main/order_status.tpl FIND (Around Line 15): Code:
AFTER ADD: Code:
FIND (Around Line 27): Code:
AFTER ADD: Code:
Open include/func/func.order.php FIND (Around Line 1666): Code:
CHANGE TO: Code:
FIND (Around Line 1689): Code:
CHANGE TO: Code:
Find this: Code:
change to Code:
FIND: Code:
CHANGE TO: Code:
FIND: Code:
CHANGE TO: Code:
FIND: Code:
Code:
FIND: Code:
CHANGE TO: Code:
Open modules/Advanced_Order_Mangement/func.php FIND (Around Line 391): Code:
ADD AFTER: Code:
Then you need to create the email templates and upload to: skin/common_files/mail/html/order_customer_refunded.tpl skin/common_files/mail/order_refunded.tpl skin/common_files/mail/ Here are some example templates: order_customer_refunded.tpl Code:
order_refunded.tpl Code:
order_refunded_subj.tpl Code:
I have tested the above working 100% with v4.6.2 - I hope someone finds it as useful as I have Greets to Phil @ www.xcartmods.co.uk
__________________
X-Cart Gold Plus v4.7.12 ReBOOT ReDUX Theme |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
You are the man! This worked great on the first try.
I wanted to post to shout out to Phil as well. Greets to Phil @ www.xcartmods.co.uk
__________________
www.usapolicesupply.com v4.6.3 Xcartmods reBoot Template WebsiteCM CDSEO Pro SEO BCS Multipe Upselling Links Firetank Feed Manager BCS Product Importer Updater Pro BCS Drop Shipper Pro BCS Quote Request Module BCS Printable Online Catalog |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Tested working with 4.6.2
__________________
X-Cart Gold Plus v4.7.12 ReBOOT ReDUX Theme |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Original post updated for 4.6.2
__________________
X-Cart Gold Plus v4.7.12 ReBOOT ReDUX Theme |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Original post updated for 4.6.2
__________________
X-Cart Gold Plus v4.7.12 ReBOOT ReDUX Theme |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Original post updated for 4.6.2
__________________
X-Cart Gold Plus v4.7.12 ReBOOT ReDUX Theme |
|||||||||
|
#7
|
|||||||
|
|||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
I applied the Custom Status mod (including the inventory fix in post 6) and found inventory updates still did not work correctly. I made some changes and it now works fine in my V4.4.5 store. I'll share what I found in case others run into inventory accuracy issues like me.
I performed all the updates noted in this disussion. However, I had to modify some of the new code used in the /include/func/func.order.php as follows: Find Original Code: Code:
Change to: Code:
I also had to add some extra code to accommodate some status changes that were missing in the original mod. Find Original Code: Code:
Change to: Code:
Find Original Code: Code:
Change to: Code:
Many thanks to those that did all the hard work!
__________________
Thomas / USA XCart V4.4.5 Gold XCart Mobile V1.4.12 XCart X-PDF XCart X-HotProducts AlteredCart Checkout One (One Page Checkout) BCSE Back In Stock CFL Holiday Message CFL System Message Smack Digital (WebsiteCM) Remember Anon Carts xcartmods Testimonials xcartmods reCAPTCHA for X-Cart Classic Unix, PHP 7.0 (patched 5.4). MySQL 5.6 |
|||||||
|
#8
|
|||||||
|
|||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
How to bring this order status in order export pack also?
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Any idea why this change would make my admin/orders.php page go blank? It goes blank with changes from post #1 and/or the change from post #5. Version 4.6.1 with the reboot skin.
|
|||||||||
#10
|
|||||||
|
|||||||
Re: Custom Order Status inc Email To Customer and Stock Correction X-Cart 4.5.x
Check your php error logs. The line number that is causing the php problem will probably be noted in the log.
__________________
Thomas / USA XCart V4.4.5 Gold XCart Mobile V1.4.12 XCart X-PDF XCart X-HotProducts AlteredCart Checkout One (One Page Checkout) BCSE Back In Stock CFL Holiday Message CFL System Message Smack Digital (WebsiteCM) Remember Anon Carts xcartmods Testimonials xcartmods reCAPTCHA for X-Cart Classic Unix, PHP 7.0 (patched 5.4). MySQL 5.6 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|