| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Module Creation | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I'm a xcart5 newbie. Trying to create a module related to order. I want to execute sql query when my module is installed. In xcart4 there is an option in admin backend to execute sql query. My requirement is - i need to add new column to order table. In xcart4, I can execute sql query. What about xcart5? Can I add it in install.yaml and execute that query?
__________________
Version 4.6 & 5.3 PHP 5.6 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() YAML files are for data only.
To alter the structure you should "decorate" existing PHP classes. Please check these articles: - http://devs.x-cart.com/en/basics/understanding_models.html - http://devs.x-cart.com/en/basics/adding_new_property_to_a_product/ (search for "IDecorator")
__________________
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 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|