Jump to content

Как добавить еще одно поле в форму заказа?


Recommended Posts

Было сделано следующее:
1) Добавлено поле familia в базу данных через phpMyAdmin
2) в api/Orders.php было добавлено familia:

$query = $this->db->placehold("SELECT id, delivery_id, delivery_price, separate_delivery, payment_method_id, paid, payment_date, closed, discount, date,
user_id, familia, name, address, phone, email, comment, status, url, total_price, note
FROM __orders AS o
WHERE 1
$id_filter $status_filter $user_filter $keyword_filter $modified_from_filter ORDER BY status, id DESC $sql_limit", "%Y-%m-%d");

В нужные места админки и сайта было добавлено {$order->familia|escape}

НО ФАМИЛИЯ НЕ СОХРАНЯЕТСЯ В БАЗУ, где копать?

PS: Simpla 2.1

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...