Answer the question
In order to leave comments, you need to log in
Any idea how to send a Custom Field from One Page checkout to an order email?
Installed Prestashop 1.7 and a module for quick checkout. Any idea how to send a Custom Field from One Page checkout to an order email? Added there radio buttons for selecting the delivery time interval, this is an additional item in the order letter. the field does not go away. Thank you!
Answer the question
In order to leave comments, you need to log in
If we are talking about Onepagecheckout PS - here is the solution .
The code does not come out to adapt. Help me please.
public function GetCustomFields($order, $id_lang)
{
$order = new Order($order->id);
$query = new DbQuery();
$query->SELECT field_value FROM ps_zooprvelsof_supercheckout_fields_data ORDER BY ps_zooprvelsof_supercheckout_fields_data DESC;
$field_options = Db::getInstance()->executeS($query);
if (!count($field_options)) {
return;
}
foreach ($field_options as $field)
return $field['field_value'] '<br/';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question