Jump to content

Recommended Posts

I am trying to add some custom fields on my prestashop backend and, when filled, to show up in frontend. Here are some examples of what I want to implement: 

 

http://i.imgur.com/K9VZgy7.jpg

 

And here's the frontend:

 

http://i.imgur.com/HE2nYoa.jpg

 

Searched everywhere but no results. I just need an idea or an example. Thank you :) !

Link to comment
Share on other sites

I've done this but it doesn't save the data fron the textarea. Can you tell why?

Here's the code i use:

<tr>

<td class="col-left">
{include file="controllers/products/multishop/checkbox.tpl" field="name" type="default" multilang="true"}
<label>{l s="What's Included"}</label>
</td>

<td style="padding-bottom:5px;" class="translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if !$language.is_default}display: none;{/if} float: left;">
{include file="controllers/products/textarea_lang.tpl" languages=$languages input_name='extra_description' input_value=$product->extra_description}
</div>
{/foreach}
</td>

</tr>
Edited by corsenium (see edit history)
Link to comment
Share on other sites

Here is the code that works with textfield:

<td style="padding-bottom:5px;" class="translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if !$language.is_default}display: none;{/if} float: left;">

<input size="43" type="text" {if !$product->id}disabled="disabled"{/if}
id="extra_description_{$language.id_lang}" name="extra_description_{$language.id_lang}"
value="{$product->extra_description[$language.id_lang]|htmlentitiesUTF8|default:''}"/><sup> *</sup>

</div>
{/foreach}
</td>
Link to comment
Share on other sites

×
×
  • Create New...