PDA

View Full Version : I can't setup the payment or shipping modules via the Admin



rfsforums
23-11-2010, 19:54
Very strange behavior but I can't setup the payment or shipping modules. I can install them but when but when I try to edit them and save my changes, the change don't get saved. To setup the shipping module, I had to do it in the db which I'd rather not do for the payment module. BTW, this does not happen when setting up products or updating orders, etc via the admin.
Thanks!

Greystoke
23-11-2010, 20:26
Hi,

The fix is here:
http://www.itvault.com/threads/25-Paypal-Interface

This is an oscommerce issue.
I eventually got oscommerce to add the fix to their code.

rfsforums
24-11-2010, 19:06
Hi,

There is a known issue with this happening on some server with the standard osCommerce installation.

If you add this line to your shop/admin/modules.php it should fix the problem.

Add:


reset($_POST['configuration']);


Before this:


while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
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':


It should now look like this:


case 'save':
reset($_POST['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
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':


That worked, Thanks!