Totally Zenned
- Join Date:
- Jul 2008
- Posts:
- 772
- Plugin Contributions:
- 0
Add Customers from admin addon
Hi boozubay,
I think there's more to it than what you've posted here.
For example, WHICH "add_customers.php" file are you referring to? There's more than one in the fileset.
Also, what did you do with the file (and it's code) that goes in admin/includes/boxes/extra_boxes since that filepath no longer exists in ZC150?
Also, this mod allows admin to send a welcome email to the customers they add. That function has also gone away in ZC150. Did you clean up that code?
Making a mod work with zc150 is only half the equation. It has to also be secure and PCI compliant. Did you ensure this when you made your changes?
I think it's awesome that you've found a way to make this work - it's a very popular mod and many of us would love to have a ZC150 compatible version of it. So please don't think I'm criticizing your efforts.
It's just that when you update a mod...there's more to it than tweaking the code (as I have recently found out in my own efforts to update mods). You must also clean up deprecated code in the mod files, rewrite the readme, make sure it's secure and compliant, and then upload the fileset to the downloads area for the whole community to enjoy (vs. posting a code tweak in the support thread).
Does that make sense?
boozubay:
FIXED not working for 1.5!
add customers.php change line 172
<form method="POST" enctype="multipart/form-data" action="' . $_SERVER['PHP_SELF'] . '"> <td class="formAreaTitle">' . CATEGORY_PERSONAL . '</td><input name="action2" type="hidden" value="add_complete" />Also change line 8
$action = (isset($_GET['action2']) ? $_GET['action2']:false);
$error = false;
$processed = false;
$cInfo = array();require_once('add_customers_backend.php');
//for single customer insert
if ($action2) {
$array = validate_customer();
$errors = $array['errors'];
$cInfo = $array['cInfo'];if (count($errors) < 1) { insert_customer(); $feedback[] = 'Customer inserted successfully'; }}
//end of single customer insertWorks perfectly now!
*Go that extra mile, you never know what's at the end of the road