Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Module: no edit/change option


GvdS

Recommended Posts

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:

 

deliverynoedittp1.gif

 

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:

 

<!-- 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.

Edited by GvdS
Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...
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:

 

deliverynoedittp1.gif

 

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:

 

<!-- 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.

Link to comment
Share on other sites

  • 2 months later...

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Edited by furrychops
Link to comment
Share on other sites

  • 4 months later...

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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...