Jump to content

BlackOps

Members
  • Content count

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    Tony
  • Location
    USA
  • Website
  1. BlackOps

    Vendor_Auto_E-mail (In_Development)

    Go to line 67 of the original vendors.php file (or near there, if you have modified it) and find the following line: $insert_sql_data = array('vendors_id' => $vendors_id, 'languages_id' => $language_id); Replace $vendors_id with $vID so it looks like this: $insert_sql_data = array('vendors_id' => $vID, 'languages_id' => $language_id);
  2. BlackOps

    Vendor_Auto_E-mail (In_Development)

    Cool :D I think I'll download the latest package, once you update it, and let my client try it out. Keep up the good work. -Tony
  3. BlackOps

    Vendor_Auto_E-mail (In_Development)

    Craig, I am looking at contributions like yours as a solution for a client of mine. I have not installed or tested your contribution, but looking through the code, I noticed something that might be causing the bug you have been wrestling with (not displaying existing values on edit): In vendors.php, I noticed that, throughout the first part of the file, you refer to $vInfo-> Then, under the edit case of the switch() statement on (or near) line 248, you refer to $vINFO-> I'm thinking this might be why your form fields are not being populated...what happens when you change the case here? Just my 2 cents, since I have not used this yet, but think it is a valuable contribution.
  4. I just installed this contribution, and it works fine. It's a very straight-forward solution to a real problem. I have made the following modification to html_output.php, so you can arbitrarily add other files that use SSL, without having to modify the list in multiple places. catalog/admin/includes/functions/html_output.php: Instead of adding the following to each if statement: ($page != FILENAME_CUSTOMERS && $page != FILENAME_ORDERS && $page != FILENAME_ORDERS_PACKINGSLIP && $page != FILENAME_ORDERS_INVOICE) or ($page == FILENAME_CUSTOMERS || $page == FILENAME_ORDERS || $page == FILENAME_ORDERS_PACKINGSLIP || $page == FILENAME_ORDERS_INVOICE) I created an array at the top of the file: // Define array of pages that require SSL // Modification of EZ Secure Contrib // 20040929 - BlackOps $force_ssl_list = array( FILENAME_CUSTOMERS, FILENAME_ORDERS, FILENAME_ORDERS_PACKINGSLIP, FILENAME_ORDERS_INVOICE, FILENAME_CREATE_ACCOUNT, FILENAME_CREATE_ACCOUNT_PROCESS, FILENAME_CREATE_ACCOUNT_SUCCESS, FILENAME_CREATE_ORDER_PROCESS, FILENAME_CREATE_ORDER, FILENAME_EDIT_ORDERS ); Then added the following line to the top of the function tep_href_link: global $force_ssl_list; Then, in the if statements, I added the following: !in_array($page, $force_ssl_list) or in_array($page, $force_ssl_list) So, the final if statements should look like: if ($connection == 'NONSSL' && !in_array($page, $force_ssl_list)) { and elseif ($connection == 'SSL' || in_array($page, $force_ssl_list)) { Now, you may add any number of pages to the $force_ssl_list array, and each page in the array will use SSL. The reason I created the array outside of the scope of the function, is that I can forsee wanting access to that lis of pages in another function.
×