Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Module Not Saving Data


HobbyTalk

Recommended Posts

New install of OSC. I am trying to get the USPS module setup. We have the account setup from USPS. The USPS module is installed and active but when I try and put in the USPS username (or any other information in the module) and Save it, it doesn't save the info and come back with the default settings. Anyone have an idea on why this is happening? TIA!

Link to comment
Share on other sites

New install of OSC. I am trying to get the USPS module setup. We have the account setup from USPS. The USPS module is installed and active but when I try and put in the USPS username (or any other information in the module) and Save it, it doesn't save the info and come back with the default settings. Anyone have an idea on why this is happening? TIA!

 

yes, it's a problem with your admin/modules.php file on like 46.

 

where it says

 

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

you should put

 

foreach($_POST['configuration'] as $key => $value) {

Link to comment
Share on other sites

  • 5 months later...
  • 3 months later...
yes, it's a problem with your admin/modules.php file on like 46.

 

where it says

 

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

you should put

 

foreach($_POST['configuration'] as $key => $value) {

 

 

HI THERE,

 

COULD YOU BE MORE SPECIFIC AS TO WHERE TO LOOK FOR THIS? I WENT INTO TOOLS/FILE MANAGER/SHIPPING.PHP AND COULD NOT FIND WHAT YOU WROTE (CODES). CAN YOU HELP?

 

THANKS,

DINA

Link to comment
Share on other sites

They said the code was here:

 

it's a problem with your admin/modules.php file on like 46.

 

And just a word to the wise, NEVER, EVER, EDIT FILES ON YOUR SITE WITH THE OSC FILEMANAGER!!!

 

It has a few quirks that can mess you up.

 

Use your site's Control Panel File Manager (NOT OSC!!!), or download it to your PC and edit it with NOTEPAD (NOT WORD!!) then transfer it back to your web site.

 

If it comes up screwy in NOTEPAD, you can use WORDPAD if you save it as a TEXT file (NOT RICH TEXT!).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

They said the code was here:

And just a word to the wise, NEVER, EVER, EDIT FILES ON YOUR SITE WITH THE OSC FILEMANAGER!!!

 

It has a few quirks that can mess you up.

 

Use your site's Control Panel File Manager (NOT OSC!!!), or download it to your PC and edit it with NOTEPAD (NOT WORD!!) then transfer it back to your web site.

 

If it comes up screwy in NOTEPAD, you can use WORDPAD if you save it as a TEXT file (NOT RICH TEXT!).

 

 

ALWAYS FOLLOW RILE#1!! GOT IT! Now, how do I find what the other guy wrote (code). Cannot find it. ANy idea? Thanks for you help!!

 

Dina

Link to comment
Share on other sites

Please copy/paste the contents of this file:

 

/admin/modules.php

 

Into your next post, and I'll help you look.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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