| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
List of X-Cart hooks | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
List of X-Cart hooks
I am considering using X-Cart for a project. A critical step would be to make an HTTP request to a remote server on order completion. I have tried to search for a list of hooks, but found only the upgrade hooks:
https://devs.x-cart.com/misc/upgrade_hooks.html Are there any other hooks available in X-Cart, or would one have to modify the core X-Cart files? Where is there a list of X-Cart hooks? Thank you.
__________________
The requested URL /VERSION was not found on this server. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: List of X-Cart hooks
Hi @dotancohen,
Welcome to X-Cart forums! X-Cart does not use hooks that allow you to insert your code only into particular parts of the business logic. Instead, we use the decorator pattern that allows you to change every piece of the software: https://devs.x-cart.com/getting_started/applying-logic-changes.html In your particular case, you need to create a module that would decorate \XLite\Model\Order::processSucceed() method and insert your code there. This processSucceed() method is called when the order is accepted in the system. Let me know if it makes sense to you. Tony Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|