Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

(int)$orders['orders_id'] always equals zero?" Options Rating


sh1977

Recommended Posts

Hello All

 

Could someone help me out with a little problem

 

Does anyone know why in checkout_success.php the value of

(int)$orders['orders_id'] always equals zero?".

 

Some more info.

 

I'm trying to install iDevAffiliate with % per sale. But when an affiliate makes a sale i'm getting an error in the iDevAiliate admin section.

The error is

 

Processing Error!

Check Cart Integration &

Processing Code Configuration

 

 

The helpdesk guy from iDevAffiliate suggested seeing if anyone here might be able to help out.

Below is his email

 

I haven't a clue. Every single time the order number is coming back as 0 in the confirmation. We have well over 400 osC users and use that cart ourselves. I've never seen of this or heard of it. The bottom line is when we go into the database to get the order details, it's trying to the details of order #0 which of course doesn't exist.

 

I'd check the osC forums and ask why the following always = 0.

 

(int)$orders['orders_id']

 

I'd say something like, "does anyone know why in checkout_success.php the value of

(int)$orders['orders_id'] always equals zero?".

 

 

 

 

Lucky me i always like to be the first one to have a error.

 

 

Anyone got any ideas?

 

 

Regards,

Scott

Link to comment
Share on other sites

Hello

 

Thanks for your help.

 

The problem was to do with the database and not any of the code.

 

One of the three tables below had a problem.

Customer_Info

Customer_Basket

Customer_Basket_Attributes

 

After i cleared all three tables everything started working fine.

 

No idea what was wrong inside the tables, but who cares it works now.

 

 

Regards,

Scott

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