X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   xcart place order and flow (https://forum.x-cart.com/showthread.php?t=76792)

Amitk 01-25-2019 09:25 AM

xcart place order and flow
 
I am new to xcart and i have no idea how this workflow works.
I have seen some of the examples and code for Xcart.
I want to use a middleware [a function or some validation] to work while user will click "Place Order" Button.

I have gone through Xcart code in multiple files but dont know how the workflow goes.

Anyone please help me out here...

Thanks

tony_sologubov 01-28-2019 02:49 AM

Re: xcart place order and flow
 
Hi @Amitk,

You should decorate \XLite\Controller\Customer\Checkout class and define your own version of the doActionCheckout() method.

Let me know if this is something you are looking for.

Tony

Quote:

Originally Posted by Amitk
I am new to xcart and i have no idea how this workflow works.
I have seen some of the examples and code for Xcart.
I want to use a middleware [a function or some validation] to work while user will click "Place Order" Button.

I have gone through Xcart code in multiple files but dont know how the workflow goes.

Anyone please help me out here...

Thanks



All times are GMT -8. The time now is 11:46 PM.

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