View Single Post
  #20  
Old 08-01-2006, 07:37 AM
  moneysaver67's Avatar 
moneysaver67 moneysaver67 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 74
 

Default

Quote:
Originally Posted by ecommerce
carpe, does the payment options determine if this works or not?


I will like to have paypal API, but it should just read credit card.
(paypal should be invisible)

fax order

phone order

money order

gift certificate

will it work with those options?


In short, the error is that the SQL statement does not know the ORDER # of the last order, which is kind of odd. There is a check that sees if the order_id param sent is empty, to reference from secure_oid, but still coming up blank.


This should be an easy fix... Does anyone know the best way to reference the Order ID of the order that just occurred?

The following returns the decoded order details from the orders table. Details for a given Order ID are returned based on the order_id parameter, $GLOBALS[orderid].

Code:
$dec_details = func_order_details( $GLOBALS[orderid] );

If
Code:
$orderid
is not the correct value to pass, please let us know.

There is a check to see if the param passed is empty, to pull from
Code:
$secure_oid[0]

In summary, the issues experienced are all a result of the missing orderid, which in turn causes the SQL to crash, which reports the 'N/A', etc...

What's more interesting is that it has been working perfectly fine on my end, but not for others?
__________________
X-Cart 4.0.16-.19 Gold [unix] / DSEFU
Reply With Quote