These are the 2 files that need to be modified:
~modules/agilemultipleseller/views/templates/front/products/informations.tpl
In this file put {block name="hide_mod" hide}... {/block} around the fields reference, meta, ....
~modules/agilemultipleseller/views/templates/front/products/input_text_lang.tpl
In this file before:
- Code: Select all
{foreach from=$languages item=language}
add:
- Code: Select all
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script>
and after:
- Code: Select all
{if isset($maxchar)}
</div>
{/if}
add:
- Code: Select all
<script type="text/javascript">
$(document).ready(function(){
$( "select" ).change( insertVal );
insertVal();
});
function insertVal() {
var name = $( '#{$input_name}_{$language.id_lang}' ).val();
$("#reference").val(name);
$("#meta_keywords_1").val(name);
$("#meta_description_1").val(name);
$("#meta_title_1").val(name);
}
</script>
I'm still working on it but thought others might me interested.