When an order is placed and the authorization fails, the user is redirected to PayMyOrderPage via the HandleFailedPayments property. The order is thus assigned an OrderStatusId = 4 (or "Problem"). When purchaser enters in correct payment information and the order is successfully completed, the OrderStatusId does not update (it remains 4 instead of 1). Shouldn't the order be updated to OrderStatusId = 1 (or "Payment Pending")? If not, where can I go to make this update?
From what I can tell, the store looks to see what the old OrderStatusId is and then updates the order with that old information.
Thanks in advance for any help!
Updating OrderStatusId
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Fri Sep 18, 2009 2:24 pm
Re: Updating OrderStatusId
did u customize your original code anywhere in your store?
hope this helps!
__________________
s_ismail

AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail


AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Fri Sep 18, 2009 2:24 pm
Re: Updating OrderStatusId
Give a try and edit your ConLib/PayMyOrderPage.ascx.cs file and locate following codeRadiatorman wrote:When an order is placed and the authorization fails, the user is redirected to PayMyOrderPage via the HandleFailedPayments property. The order is thus assigned an OrderStatusId = 4 (or "Problem"). When purchaser enters in correct payment information and the order is successfully completed, the OrderStatusId does not update (it remains 4 instead of 1). Shouldn't the order be updated to OrderStatusId = 1 (or "Payment Pending")? If not, where can I go to make this update?
From what I can tell, the store looks to see what the old OrderStatusId is and then updates the order with that old information.
Thanks in advance for any help!
Code: Select all
_Order = OrderDataSource.Load(_OrderId);
Code: Select all
_Order = OrderDataSource.Load(_OrderId,false);
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Fri Sep 18, 2009 2:24 pm
Re: Updating OrderStatusId
That didn't work for me. What I ended up doing was finding the code below:
and then adding the following just after it:
That way if the payment was successful, OrderStatusId is forced to update to being successful too
Code: Select all
bool result = PayOrder(e.Payment);
Code: Select all
if (result)
{
_Order = OrderDataSource.Load(_OrderId);
OrderDataSource.UpdateOrderStatus(_Order, 1);
}