문제

I have an X-Cart store, when a person places a successful order I would like to send an ajax request to the server using jquery (if possible), or at the very least run some PHP code at that point.

Does anyone know where in the x-cart file structure the code is to do something like this?

UPDATE: I am using the One Page Checkout Module for checkout.

Thanks for any help

도움이 되었습니까?

해결책

The files I needed were in includes/func/func.orders.php .. Since its already PHP, no need for an ajax call, just coded what I needed directly into the order complete function. There are also functions for order placed and order processed if you need to put something there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top