S
S
sadieff2016-06-06 14:38:20
MODX
sadieff, 2016-06-06 14:38:20

How to display country in minishop2 order management?

Good day, developers! I have MODx with minishop2 installed. In order management, I want to display the country. Added country to the ms2_order_grid_fields field, described the column in the orders.grid.js file. The column appeared, but the values ​​do not appear. What is the reason, where else do you need to rule?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Shchavelev, 2016-09-12
@DetaliDigital

This placeholder is standard for msOrder
We can check this by looking at the core/components/minishop2/model/minishop2/mysql/msorderaddress.map.inc.php file or
the MySQL database, the new country column in the modx_ms2_order_addresses
orders.grid.js table - it is also present default

,getAddressFields: function(config) {
    var all = {receiver:{},phone:{},index:{},country:{},region:{},metro:{},building:{},city:{},street:{},corp:{},room:{}};

Therefore, you need to register this field in the ordering process.
and specify in the settings to display this field ms2_order_grid_fields
After sending the order, this field should be reflected in the CMS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question