Jump to content

mollymcb

Members
  • Content count

    1
  • Joined

  • Last visited

  1. mollymcb

    New UPS XML Shipping Module available

    I installed this the other day and I am having the same problem mentioned several posts ago. When I go to install it in the admin>modules>shipping, it shows there is 1 to install but then when I click Install Module, it isn't there. If I uninstall Flat Rate, Flat Rate appears but I cannot reinstall unless I delete the upsxml.php file in includes/modules/shipping. When I delete that file off the server and refresh the Install Module page, the Flat Rate module appears normal and can be reinstalled. The UPS XML one never appears. According to a previous post, it was said there is a problem with the upsxml.php file. I have not done anything to the file so I don't know what is wrong with it. I receive no error messages. I've included the upsxml.php file below. The install was normal except I had different code on the catalog/admin/modules.php above where it had me put in that code. It says after adding it should look like this: if (tep_not_null($action)) { switch ($action) { case 'save': reset($HTTP_POST_VARS['configuration']); while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { if (is_array($value) ) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': But mine is this: if (tep_not_null($action)) { switch ($action) { case 'save': reset($_POST['configuration']); while (list($key, $value) = each($_POST['configuration'])) { if (is_array($value) ) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link('modules.php', 'set=' . $set . '&module=' . $_GET['module'])); break; case 'install': Only thing I see different is $_Post instead of $HTTP_POST_VARS and tep_href_link('modules.php' instead of tep_href_link(FILENAME_MODULES osCommerce Online Merchant v2.3.4.1 PHP Version 5.3.29 I'm at a loss and need help. Any help is greatly appreciated. upsxml.php
×