Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ultimate SEO Mod Problem


tchmnkyz

Recommended Posts

i have a problem when using the Ultimate SEO Mod. it is giving an order number of 0 to all orders not the correct order number.

--jeremy

 

it does infact have that. it is like it is not pulling that id or something. i dont know what. just not putting the id in the emails and for some reason it dont display in my admin side either...

Link to comment
Share on other sites

goto your checkout_process.php where it sends the mail few lines above is where it sets up the url

 

				 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .

 

so change it to see if the tep_href_link causes it just to be sure

 

				 EMAIL_TEXT_INVOICE_URL . ' ' . $insert_id . "\n" .

 

place a test order is the order id still 0?

Link to comment
Share on other sites

in that checkout_process.php there is a line of code

 

$insert_id = tep_db_insert_id();

 

comment it out then just below add:

$tmp_query = tep_db_query("select MAX(orders_id) as last_id from " . TABLE_ORDERS . "");
$tmp_array = tep_db_fetch_array($tmp_query);
$insert_id = $tmp_array['last_id'];

 

Does the insert_id now non-zero? If so check if it is valid and represents the last order you made. If that works there is something with the database I would suspect persistent connections but you already tried that as you said.

Edited by enigma1
Link to comment
Share on other sites

  • 4 weeks later...

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