Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

United Parcel Service (XML) - Disallowed Shipping Methods


soupgfx

Recommended Posts

Hello all...

 

I'm trying to disallow a particular method of shipping (Ground shipping to be exact) and when I click the update button and come back to the settings it doesn't keep the setting? It just defaults to the standard setting, which leaves all shipping methods on.

 

Has anyone had this problem and if so, how do you correct it?

 

Here's a screen shot of the problem. Click Here

 

Thanks for any tips!

 

-SoupGFX

Edited by soupgfx
Link to comment
Share on other sites

I'm trying to disallow a particular method of shipping (Ground shipping to be exact) and when I click the update button and come back to the settings it doesn't keep the setting? It just defaults to the standard setting, which leaves all shipping methods on.

Did you follow step 4 of the readme.txt and did you add that new function to general.php in the admin side? There is also catalog/includes/functions/general.php, where it is not needed.

 

Perhaps the while/list stuff in that function is giving you trouble. Perhaps changing it to the version below would help?

////
// Alias function for module configuration keys
 function tep_mod_select_option($select_array, $key_name, $key_value) {
//	reset($select_array);
foreach ($select_array as $key => $value) {
  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;
 }

By the way, the official UPSXML thread is in the general contribution forum.

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