Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fedex Automated Labels - Database Problem


tightwatt

Recommended Posts

My web host set up the default oscommerce setup. When they did this, they put an extension on the top level of the database.

 

My database name is allen1. The orders are stored in allen1.osc_orders. The fedex labels module (admin/ship_fedex.php) is giving me an error:

 

1146 - Table 'allen1.orders' doesn't exist

 

select * from orders where orders_id = 383

 

I know that if I could get the path to be 'allen1.osc_orders' that the problem would go away, but I am not sure where this is located in the code.

 

Any help would be appreciated as I think this is an excellent add-in, but it's not working yet.

 

Thanks,

 

Stephen Allen.

Link to comment
Share on other sites

I figured this one out on my own. This issue will affect anyone who has aplus.net as their web host with their installation of osCommerce.

 

There are two locations in the admin/ship_fedex.php file that will have be changed.

 

Find:

 

tep_db_query("select * from orders where orders_id = $order");

 

replace with:

 

tep_db_query("select * from osc_orders where orders_id = $order");

 

This change, along with changes to sql_new_install (to match database names) will get your automated FedEx labels working.

 

Stephen Allen.

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