Jump to content

Adding extra choices to carrier page


tanel90

Recommended Posts

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

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

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 by tanel90 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...