tanel90 Posted June 17, 2013 Share Posted June 17, 2013 I try to add some extra options to order->carrier page, but it's pretty hard to find where exactly SQL insert is being executed. So I have <option> list on carrier page but now I need to post this value somehow to SQL table ps_carrier_extra. Any ideas? Link to comment Share on other sites More sharing options...
PascalVG Posted June 17, 2013 Share Posted June 17, 2013 Hi tanel, Normally the definition of the carrier and it's SQL 'translation' is done in the object class file itself, so I suggest to have a look in classes/Carrier.php Probably can adjust the definition array here to add the attributes you want to add to the carrier and then rewrite the (quite some) SQL queries for all the database related functions that come with the object class (probably functions like add, delete, update, getpriceforWeight getDeliverableCountries etc. etc. etc.) Give it a try, pascal Link to comment Share on other sites More sharing options...
tanel90 Posted June 18, 2013 Author Share Posted June 18, 2013 (edited) Thanks for you reply. Probably expressed myself wrong. I would like to simply enter order id and form value (form is on carrier page) to table (only includes: id, extra). I checked carrier file but guess I should look for a place where orders are going to be submitted to SQL? Found thread: http://www.prestashop.com/forums/topic/84550-solved-where-is-the-insert-into-statement/ It's a bit similar to what I want to do, but at the moment code lines aren't same any more. Edited June 18, 2013 by tanel90 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now