X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   What file is used to update order status after PayPal transaction goes through? (https://forum.x-cart.com/showthread.php?t=74778)

Joetoomy79 12-08-2016 06:28 PM

What file is used to update order status after PayPal transaction goes through?
 
I have a custom program where I send customers a link that they can use to enter my store, but after they place an order, I deactivate the link. It works great for net billed orders, but I'm having issues with credit card payments. Right now a counter is updated when the customer 'submits' their order - but for credit card purchases, the customer is taken to PayPal to actually pay for their items. I've had some customers close out or back out of PayPal before completing the order, which is understandable, but the link gets incremented once they "submit" their order and BEFORE they've paid - so then I end up with customers who still want to use their link, but can't because the system has deactivated it.

I'm thinking for credit card payments I need to update my counter after the order's status in the Order's Department is changed from "not finished" to "processed".

Does anyone have any idea what file to find this information in - or maybe a better place to update my counter so that the counter value is set (or increased) once the system confirms payment has been accepted?

cherie 12-09-2016 04:20 PM

Re: What file is used to update order status after PayPal transaction goes through?
 
One option is to add this to customer/main/order_message.tpl but if you need this done in php then maybe in func_process_order() in include/func/func.order.php.

Joetoomy79 12-09-2016 06:11 PM

Re: What file is used to update order status after PayPal transaction goes through?
 
Thanks! I'll try adding the code in func.order.php - I originally started there but must have moved on too soon.


All times are GMT -8. The time now is 01:47 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.