| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Run a sql command during mod installation | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Run a sql command during mod installation
Does anyone know how to run a sql command during the install of a mod? I have a mod that modifies how clean urls work in 5.2.x, but I had to manually run a sql command to remove all of the extensions from the clean url table. Is there a way I could have included that command in my mod, so that the command would run during installation?
__________________
Ver 5.2.6 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Run a sql command during mod installation
Use the hooks scripts - http://kb.x-cart.com/display/XDD/Upgrading+X-Cart+5
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Run a sql command during mod installation
Or make your module to check if the url has extension and remove it before returning the url
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Run a sql command during mod installation
You should look into implementing \XLite\Module\AModule::callInstallEvent() method in your Main.php class.
__________________
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 |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|