Guest Posted November 23, 2006 Posted November 23, 2006 I'm new to osCommerce and having problems trying to get the USPS shipping module working. In the admin tool, Modules > Shipping, I have enabled the module (and see that "Enable USPS Shipping" is true). Also, querying mySQL directly with: select configuration_key, configuration_value from configuration where configuration_key = 'MODULE_SHIPPING_INSTALLED'; returns: MODULE_SHIPPING_INSTALLED | usps.php But my checkout_shipping.php page does not show USPS shipping info. Delving into the PHP code, I add a test statement to my page: <?php echo tep_count_shipping_modules() ?> It returns 0 on the page. But if I add the flat.php shipping module, the above statement returns 1; i.e. whether both usps.php *and* flat.php are installed, or just flat.php is installed. In other words the function tep_count_shipping_modules() does not seem to be able to count the usps.php modeul -- even when I can see it *is* installed both through direct mySQL query *and* in the osCommerce admin page -- and thus, if only usps.php is installed, the code following this block (checkout_shipping.php, lines 238-240) is never executed: <?php if (tep_count_shipping_modules() > 0) { ?> This must be a bug...! One further comment. In the osCommerce admin tool Module > Shipping. The instructions for the USPS module indicates "You will need to have registered an account with USPS at http://www.uspsprioritymail.com/et_regcert.html to use this module". Further below there are fields for the USPS userID and password. I registered with USPS, but it only gave me a userID -- no password. The version of osCommerce I'm working with (and recently downloaded) is oscommerce-2.2ms2-060817. Very baffled. Please someone help... Thanks, Nicky
Guest Posted November 23, 2006 Posted November 23, 2006 Is it 'Enabled', and installed? Yep, it's enabled too. Says so both in the admin console and by direct mysql query: mysql> select configuration_key, configuration_value from configuration where configuration_key = 'MODULE_SHIPPING_USPS_STATUS'; +-----------------------------+---------------------+ | configuration_key | configuration_value | +-----------------------------+---------------------+ | MODULE_SHIPPING_USPS_STATUS | true | +-----------------------------+---------------------+ Still baffled... Thanks, Nicky
Recommended Posts
Archived
This topic is now archived and is closed to further replies.