| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Enable/Disable Profile Modified Email from Admin | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Enable/Disable Profile Modified Email from Admin
This is a mod beyond the reach of my current abilites with X-Cart and could really use some assistance.
I would like to be able to have a check box in the admin side of the Modify User profile. The box would be checked by default to notify the customer of changes to their profile. I need the option to uncheck the box so that when I do annoying little modifications, like capitalising Street Names or correcting Phone Numbers the customer is not bombarded with emails. I'm sure a lot of people would find this to be a useful mod. If it already exists please tell me. I searched and searched but was unable to turn anything up. TIA |
|||||||||
#2
|
|||||||
|
|||||||
Patch for the database to make the option appear in the general settings:
Code:
Then amend include/register.php (version 3.3.5 - line 146 change: Code:
to: Code:
howzat?
__________________
ex x-cart guru |
|||||||
#3
|
|||||||||
|
|||||||||
Funky Dunk.
INSERT INTO xcart_config VALUES ('modify_emails', 'Modification emails sent', 'Y', 'General', 1000, 'Checkbox'); General should be in commas. I do believe I owe you a beer or two. Drop me an email the next time you are in Canada. |
|||||||||
#4
|
|||||||
|
|||||||
And then edit the template to include another checkbox???
hopefully coz I can't see anything appear at the bottom of the general settings page |
|||||||
#5
|
|||||||||
|
|||||||||
If you ran the insert statement on your dbase, the checkbox should automatically appear.
|
|||||||||
#6
|
|||||||
|
|||||||
Ahhh just tried it on a different version (3.3.5) and it worked but in 3.3.3 it doesn't which was the one I wanted to do it on (v.heavy mods so not safe to upgrade).
Anyone know how to do it in 3.3.3 ???? |
|||||||
#7
|
|||||||||
|
|||||||||
I've got this working in 3.4.10
Here are the changes: Patch for the database to make the option appear in the general settings: Code:
Then amend include/register.php (version 3.4.10 - line 19 Original Code:
New Code:
Once this mod is implemented, you will find a new checkbox at the bottom of General Settings in the Admin area. Check the box to enable notifications, leave empty to disable them. Note: the change to register.php is just adding the "if" statement. What an amazingly simple and effective mod. Thanks !
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#8
|
|||||||
|
|||||||
3.4.14
I've got a fresh install of 3.4.14 and neither version of the mod worked for me. The checkbox shows up, but unchecking (or checking) it still results in me receiving e-mails everytime a profile is modified.
Has anyone found a way to use this for 3.4.14? Thank you!
__________________
Always happy to Paypal over some money for X-Cart solutions. I need to get this store running! Help! --Testing 3.5.8, heavily modified, Linux, Apache 1.3.31, PHP 4.3.4-- |
|||||||
#9
|
|||||||||
|
|||||||||
Nerd Luv,
Works fine on my 3.4.14 site. Perhapsyou should post your code so we can see what the problem is. This is certainly one for Custom Mods (moderators, hint hint)! |
|||||||||
#10
|
|||||||
|
|||||||
OK, here's the entire code for include/register.php
It's all in 1 piece, but I divided it into 3 sections here to indicate the section that I changed. (1st piece of original code removed by request) Here's the bit I changed: Code:
This is original code at the end Code:
Thoughts, anyone? Is there something else I need to modify?
__________________
Always happy to Paypal over some money for X-Cart solutions. I need to get this store running! Help! --Testing 3.5.8, heavily modified, Linux, Apache 1.3.31, PHP 4.3.4-- |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|