+ Reply to Thread
Results 1 to 3 of 3

Thread: I can't setup the payment or shipping modules via the Admin

  1. #1
    Junior Member rfsforums's Avatar
    Join Date
    Sep 2010
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default I can't setup the payment or shipping modules via the Admin

    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!

  2. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    176
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default

    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.

  3. #3
    Junior Member rfsforums's Avatar
    Join Date
    Sep 2010
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Greystoke View Post
    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:

    PHP Code:
          reset($_POST['configuration']); 
    Before this:

    PHP Code:
            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:

    PHP Code:
          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!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts