E-shops which selling their product also to abroad customers probably need to have field in order form which gives possibility to choose country for the customer. When You want to this type of field You have do this:
Firstly You have to add new field sCountry to database. In file db/orders.def.php change the variables declaration: $aFieldsNames - add in the end of declaration ", 'sCountry' => previous_number_plus_1" $aFieldsSort - add in the end of declaration ", 'sCountry'" In function orders( $aExp ) add in the end of array will be returning: ", 'sCountry' => $aExp[previous_number_plus_1]" In the default free version of shop You can replace "previous_number_plus_1" by 19. After this changes in file db/orders.php add to every single record character "$".
In files config/lang_pl.php and config/lang_en.php You have to declare array of countries. You can copy this array from here: http://opensolution.org/Quick.Cart/forum/files/countryList.txt
In file actions_admin/orders.php below declaration of variable $sOrderSummary paste this line:
If you're interested in my solution, I have this implemented, for a programmer's day-wage I will share this with you. The whole description is here, along with some other plugins: http://www.tigerware.sk/easyplugins/
[CZ] Ahoj, anglina neni moje silna stranka, tak jeste cesky - hezky.) Potrebuji dostat k produktu moznost vlozit jeho unikatni kod - ID a aby se tento kod zobrazil u produktu i v objednavce. Povedlo se i dat kolonku do administrace, kod se ulozi do databaze k produktu a zobrazuje se taky u zbozi v shopu. Ale nedari se mi dostat jej do objednavky - resp. do databaze objednavek. Jde mi jen o to, dostat jej do te databaze, aby se ukazal u zbozi, jako ID a nazev produktu a takto se mi odeslal na mai. Kod je vyse, nevite, v cem delam chybu, ze se mi stale neuklada do te databaze? PHP neumim, jen zkousim podle navodu, co jsem tu nasel. Diky predem za rady!
The script works fine, country selection is neatly displayed and the country selected shows on the order confirmation form (on the screen after having dispatched the order).
Not so on the e-mail, actually I do have the very same issue as Oli82. The variable $aData[sCountry] (templates/orders_print.tpl) only produces a number instead of the country name. Whereas the number corresponds to the sequence of the country on the country-list.
Therefore, how should the variable look like in order not only to show the number but the country on the e-mail?
instead of this script I now used the one suggested by 'idaryl' (http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5078), works perfectly alright, including country indicated on the emails to customer & admin.
Did anyone try to add country select to verison 3.5? In version 3.2 everything works ok. Nut in version 3.5 Ext I can't do it to work. When I've changed database the shop didin't load. Without that, shop is loading, but there is no coutries in list when fulfilling order.