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 43 Times in 12 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. The Following 4 Users Say Thank You to rfsforums For This Useful Post:

    asricksclesc (22-11-2012),ciojennacgalac (16-12-2012),hersamuchpeich (09-11-2012),itojessosaspos (23-11-2012)

  3. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    187
    Thanks
    2
    Thanked 499 Times in 113 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.

  4. The Following 4 Users Say Thank You to Greystoke For This Useful Post:

    asricksclesc (22-11-2012),ciojennacgalac (16-12-2012),hersamuchpeich (09-11-2012),itojessosaspos (23-11-2012)

  5. #3
    Junior Member rfsforums's Avatar
    Join Date
    Sep 2010
    Posts
    20
    Thanks
    1
    Thanked 43 Times in 12 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!

  6. The Following 3 Users Say Thank You to rfsforums For This Useful Post:

    asricksclesc (22-11-2012),hersamuchpeich (09-11-2012),itojessosaspos (23-11-2012)

Posting Permissions

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