Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Module Creation

 
Reply
   X-Cart forums > X-Cart 5 > Third Party Add-Ons for X-Cart 5
 
Thread Tools Search this Thread
  #1  
Old 01-05-2017, 01:39 AM
 
Sooraj Sooraj is offline
 

Newbie
  
Join Date: Mar 2016
Posts: 9
 

Post Module Creation

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
Reply With Quote
  #2  
Old 01-06-2017, 12:29 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Module Creation

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Third Party Add-Ons for X-Cart 5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:16 AM.

   

 
X-Cart forums © 2001-2020