D
D
Dmitry2016-12-11 16:40:32
opencart
Dmitry, 2016-12-11 16:40:32

How to add a new description field to a product in OpenCart 2.3?

I'm trying to add a new product description field myself in the OpenCart 2.3 engine. Everything was simple in the old versions, but I can’t figure it out in the latest one.
I used this instruction
https://www.youtube.com/watch?v=HeW0g5sf2DA
But, I get an error, not even an error, but a remark. but the output from the database still does not work, and a new one is not entered

<b>Notice</b>: Undefined index: equipment in <b>.../admin/view/template/catalog/product_form.tpl</b> on line <b>71</b>

and the code is this, which swears:
<div class="form-group">
<label class="col-sm-2 control-label" for="input-equipment<?php echo $language['language_id']; ?>"><?php echo $entry_equipment; ?></label>
<div class="col-sm-10">
<textarea name="product_description[<?php echo $language['language_id']; ?>][equipment]" rows="5" placeholder="<?php echo $entry_equipment; ?>" id="input-equipment<?php echo $language['language_id']; ?>" class="form-control"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['equipment'] : ''; ?></textarea>
 </div>
</div>

I understand that the new "equipment" field needs to be declared somewhere else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2016-12-11
@egormmm

You don't have the equipment key in the data array in your controller. Therefore, he swears.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question