Results 1 to 10 of 263

Threaded View

  1. #40

    Default Re: 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?


    Quote Originally Posted by boozubay View Post
    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 insert


    Works perfectly now!
    Last edited by ScriptJunkie; 19 Apr 2012 at 05:25 PM.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

 

 

Similar Threads

  1. how do i install the add customers through admin addon
    By Matt Smith in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 12 Oct 2009, 11:46 AM
  2. Add customers from Admin addon error
    By 21zerogo in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Jul 2009, 02:12 AM
  3. How do I set default country when using Add Customers via Admin addon?
    By Andy_GS in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Apr 2009, 09:40 AM
  4. Adding customers from admin side, without an addon?
    By dcb37ga in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Dec 2008, 05:22 AM
  5. Add customer from Admin addon
    By wireyourworld in forum Managing Customers and Orders
    Replies: 3
    Last Post: 4 Apr 2008, 05:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR