OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Shipping Module: no edit/change option
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Shipping Modules
GvdS
When I look in my admin at the shipping modules, I have no column at the far right to change or edit the settings. See my screenshot below:



At the top you see a normal situation with the option to change the shippping settings, at the bottom is my current situation with no edit options at all at the far right of the screen.

I still have the original admin\modules.php and have not touched any of the files as far as I know. The page is not fully loaded, when I look at the source it's cut off at:

CODE
<!-- tools_eof //-->
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading">Verzendingsmodule</td>
            <td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt=""></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent">Modules</td>
                <td class="dataTableHeadingContent" align="right">Sort orders</td>
                <td class="dataTableHeadingContent" align="right">Actie </td>
              </tr>
              <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.xxxxx.nl/admin/modules.php?set=shipping&module=flat&action=edit'">
                <td class="dataTableContent">Vast tarief</td>
                <td class="dataTableContent" align="right">1</td>
                <td class="dataTableContent" align="right"><img src="images/icon_arrow_right.gif" border="0" alt=""> </td>
              </tr>
              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.xxxxx.nl/admin/modules.php?set=shipping&module=item'">
                <td class="dataTableContent">Per stuk</td>
                <td class="dataTableContent" align="right"></td>
                <td class="dataTableContent" align="right"><a href="http://xxxxx/admin/modules.php?set=shipping&module=item"><img src="images/icon_info.gif" border="0" alt="Informatie" title=" Informatie "></a> </td>
              </tr>


Can somebody help me out with getting back my edit options.
HansTeunissen
I've got the same problem.
Have you resolved it yet?
Greetings
krislyn5559
the same just happened to me help !
GvdS
Still no solution... did any of you have a solution yet?
Coopco
QUOTE (GvdS @ Aug 16 2007, 09:04 AM) *
When I look in my admin at the shipping modules, I have no column at the far right to change or edit the settings. See my screenshot below:



At the top you see a normal situation with the option to change the shippping settings, at the bottom is my current situation with no edit options at all at the far right of the screen.

I still have the original admin\modules.php and have not touched any of the files as far as I know. The page is not fully loaded, when I look at the source it's cut off at:

CODE
<!-- tools_eof //-->
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading">Verzendingsmodule</td>
            <td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt=""></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent">Modules</td>
                <td class="dataTableHeadingContent" align="right">Sort orders</td>
                <td class="dataTableHeadingContent" align="right">Actie </td>
              </tr>
              <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.xxxxx.nl/admin/modules.php?set=shipping&module=flat&action=edit'">
                <td class="dataTableContent">Vast tarief</td>
                <td class="dataTableContent" align="right">1</td>
                <td class="dataTableContent" align="right"><img src="images/icon_arrow_right.gif" border="0" alt=""> </td>
              </tr>
              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.xxxxx.nl/admin/modules.php?set=shipping&module=item'">
                <td class="dataTableContent">Per stuk</td>
                <td class="dataTableContent" align="right"></td>
                <td class="dataTableContent" align="right"><a href="http://xxxxx/admin/modules.php?set=shipping&module=item"><img src="images/icon_info.gif" border="0" alt="Informatie" title=" Informatie "></a> </td>
              </tr>


Can somebody help me out with getting back my edit options.

Probably a syntax error. Compare your files with standard files.
furrychops
I am having the same problem. Please someone post an answer!
furrychops
All I did was install the new update for my shipping module, and I have not changed ANY of the files I uploaded, and I have this problem. I wouldn't think it would be a syntax issue between an original file and the contribution file, because it is still the same file in the contribution... unedited or changed. So has anyone figure out a fix?
Coopco
QUOTE (furrychops @ Feb 2 2008, 02:44 AM) *
All I did was install the new update for my shipping module, and I have not changed ANY of the files I uploaded, and I have this problem. I wouldn't think it would be a syntax issue between an original file and the contribution file, because it is still the same file in the contribution... unedited or changed. So has anyone figure out a fix?

and you have a backup file that ends in php that needs to be deleted?
furrychops
when i updated the contribution, all i needed to do was delete my includes/languages/english/modules/shipping/usps.php, and includes/modules/shipping/usps.php, and then replace those with the files in the contribution. So my files are now totally replaced by those new ones from the contribution, which was USPS Methods 2_9_6.


Then, when I went to my admin, i selected "install" in the shipping modules section for the USPS contribution.

Following that (according to contrib update instructions), I also did two updates to MySQL:

UPDATE configuration
SET configuration_value = UPPER(configuration_value),
set_function='tep_cfg_select_multioption(array(''GLOBAL EXPRESS'', ''GLOBAL EXPRESS NON-DOC RECT'', ''GLOBAL EXPRESS NON-DOC NON-RECT'', ''EXPRESS MAIL INT'', ''EXPRESS MAIL INT FLAT RATE ENV'', ''PRIORITY MAIL INT'', ''PRIORITY MAIL INT FLAT RATE ENV'', ''PRIORITY MAIL INT FLAT RATE BOX'', ''FIRST-CLASS MAIL INT''), '
WHERE configuration_key='MODULE_SHIPPING_USPS_TYPES_INTL';

UPDATE configuration
SET configuration_value = UPPER(configuration_value),
set_function='tep_cfg_select_multioption(array(''EXPRESS'', ''PRIORITY'', ''FIRST CLASS'', ''PARCEL'', ''BPM'', ''LIBRARY'', ''MEDIA''), '
WHERE configuration_key='MODULE_SHIPPING_USPS_TYPES';

Then the instructions said to Edit the newly installed and updated shipping module in my admin. I clicked on one of the two buttons that said "Edit" and then all I was left with was the little purple arrow on the far right, and no edit options.

If I click out of the admin area and come back, it gives me the options for the USPS module to "remove" or "edit" once again. But even after refreshing and clicking the edit button again, it just looks like the second picture above that Gvds posted.

Any ideas?

THANKS!
moda
SOLUTION:

catalog/admin/includes/functions/general.php

********************************************************************************
***********
IF YOU ARE USING UPSXML_v1_2_3_1 MOD - YOU CAN SKIP STEP #6 AS THE CODE IS ALREADY IN THERE
********************************************************************************
***********

*****************************************
Find This code somewhere around line 767:
*****************************************

////
// Alias function for module configuration keys
function tep_mod_select_option($select_array, $key_name, $key_value) {
reset($select_array);
while (list($key, $value) = each($select_array)) {
if (is_int($key)) $key = $value;
$string .= '<br><input type="radio" name="configuration[' . $key_name . ']" value="' . $key . '"';
if ($key_value == $key) $string .= ' CHECKED';
$string .= '> ' . $value;
}

return $string;
}

***********************************************
INSERT THE FOLLOWING CODE AFTER THE ABOVE LINE:
***********************************************

// USPS Methods 3.0
// Alias function for Store configuration values in the Administration Tool
function tep_cfg_select_multioption($select_array, $key_value, $key = '') {
for ($i=0; $i<sizeof($select_array); $i++) {
$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');
$string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
$key_values = explode( ", ", $key_value);
if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED';
$string .= '> ' . $select_array[$i];
}
$string .= '<input type="hidden" name="' . $name . '" value="--none--">';
return $string;
}

****************************
SO IT SHOULD LOOK LIKE THIS:
****************************

////
// Alias function for module configuration keys
function tep_mod_select_option($select_array, $key_name, $key_value) {
reset($select_array);
while (list($key, $value) = each($select_array)) {
if (is_int($key)) $key = $value;
$string .= '<br><input type="radio" name="configuration[' . $key_name . ']" value="' . $key . '"';
if ($key_value == $key) $string .= ' CHECKED';
$string .= '> ' . $value;
}

return $string;
}
// USPS Methods 3.0
// Alias function for Store configuration values in the Administration Tool
function tep_cfg_select_multioption($select_array, $key_value, $key = '') {
for ($i=0; $i<sizeof($select_array); $i++) {
$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');
$string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
$key_values = explode( ", ", $key_value);
if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED';
$string .= '> ' . $select_array[$i];
}
$string .= '<input type="hidden" name="' . $name . '" value="--none--">';
return $string;
}
////
// Retreive server information
function tep_get_system_information() {
global $HTTP_SERVER_VARS;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.