llewis Posted February 21, 2007 Share Posted February 21, 2007 I've been trying for a few days to get past this problem, and I'm getting closer. After adding the USPS module, it never shows up as a shipping option. In the code I've narrowed it down to function tep_count_modules($modules = '') { $count = 0; if (empty($modules)) return $count; $modules_array = split(';', $modules); for ($i=0, $n=sizeof($modules_array); $i<$n; $i++) { $class = substr($modules_array[$i], 0, strrpos($modules_array[$i], '.')); if (is_object($GLOBALS[$class])) { if ($GLOBALS[$class]->enabled) { $count++; } } } return $count; } On line 8, the "$GLOBALS[$class]->enabled" never evaluates to "true" for usps eventhough it is "enabled" in the admin "shipping modules". The other modules I can change from "inactive" to "active" and the change is picked up. What do I have to do to fix USPS? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.