| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Send order notification to multiple email addresses | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I must have overlooked this or misunderstood how to get this done.
Is it possible to let the shop send order notifications to multiple mail addresses (with X-Cart 4.2.x)? At the moment only this (one address) is accepted, for example: sales@myshop.com I tried adding an extra address like this: sales@myshop.com,anothermailaddress@theinternet.com sales@myshop.com, anothermailaddress@theinternet.com But this isn't accepted by the system i.e. resulting in an error message.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() You can go in and modify the PHP to send to multiple addresses. It would probably be easier to just use your server and forward the email address to multiple parties. http://www.systemsabuse.com/2008/04/29/creating-a-single-forward-to-multiple-email-addresses-with-cpanel/
__________________
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. |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() Thanks for the pointer, but unfortunately the cPanel solution is not available since this specific webshop is using its own (external) mail servers.
You have any idea what php file should be modified and how this can be done?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() I would think that any mail server would allow forwarding. Well anyway, I believe that include/func/func.order.php would control sending the mail.
I see this around line 1438 in 4.4.X Code:
__________________
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. |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() That mail server can forward of course but it should not, a bit difficult to explain why not.
![]() I will take a look at the function php file, thanks again!
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() I think that all you will need to change is the code that checks for a valid email address. This is the function func_email_validation_regexp which is in include/func/func.core.php. You need to add a comma to the allowed characters of the email address.
__________________
Richard Williams Rogue Wave Limited Initial Inventory Imports Daily Inventory Updates Daily Inventory Reports Drop Ship Support Order Export to Shipper/Supplier Shopping Feeds That Work Programming for X-Cart richard@roguewavelimited.com http://www.roguewavelimited.com |
|||||||||
|
#7
|
|||||||||
|
|||||||||
![]() Quote:
__________________
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. |
|||||||||
#8
|
|||||||
|
|||||||
![]() This SQL patch does the trick... (v4.4.x - v4.5.x)
Code:
The others available are... Code:
The caveat is that where emails are displayed elsewhere in your store, it will show both, so you may need to adjust / hard code the order invoice etc.
__________________
xcartmods.co.uk |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Hi PhilJ
I've tried your patch on 4.6.4 and it keeps giving me error. I have tried every variation; adding a space between the commas, switching up the email addresses, changing "REPLACE" to "INSERT". I even tried editing the "xcart_data.sql" file in SQL Server rather than uploading the patch through x-cart. Please help, do you have any more information on this?
__________________
X-Cart 4.6.0 |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() Danielle, it would be helpful if you could explain what the error message said.
__________________
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. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|