| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
How call external stored procedure before page /?target=checkout loaded? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
How call external stored procedure before page /?target=checkout loaded?
Good day!
I really need to call my external stored procedure before the checkout page ( shop.com/?target=checkout as example) start loading. Stored procedure located in x-cart database and does not use or return parameters. How can this be realize most correctly? Thank you very much! This is necessary to monitor the connection of the store with the external fiscal registrar. |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: How call external stored procedure before page /?target=checkout loaded?
Do you mean stored procedures?
If so, working with them will be tricky a bit. X-Cart 5 works with the database via Doctrine that is an abstraction over different database types. But stored procedures are not consistent across different types of databases, so is not something that can be implemented as an abstract thing. However, you can use "Native Queries" to run raw SQL queries against the database: PHP Code:
Does this work? --- I've been told by our support staff that using the same "database handle" for regular queries and stored procedures may result into "Commands out of sync" error. If this happens to you too, you may try to use the MySQL PDO or MySQLi directly (not via Doctrine).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: How call external stored procedure before page /?target=checkout loaded?
Quote:
You are my god! Thank! |
|||||||||
|
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|