News:

Support the VirtueMart project and become a member

Main Menu

Make a default field translatable and WYSIWYG

Started by fgispert, September 20, 2016, 17:24:06 PM

Previous topic - Next topic

fgispert

HI, in my project, i don't use the product_url field for nothing so i decided to use it but for other things. I need to make it translatable and with editor. What i made? First of all i cretaed the columns in the product language table (j30virtuemart_products_es_es, j30virtuemart_products_ca_es) and deleted from the products no language table (j30virtuemart_products), and it works, when i enter some info is different for each language. So then i added the editor to the product_url field with :

<?php echo $this->editor->display('product_url',  $this->product->product_url, '100%;', '550', '75', '20', array('pagebreak', 'readmore') ) ; ?>


And it work, the field has editor . BUT IT DON'T SAVE THE CHANGES FOR EACH LANGUAGE.


Can anyone help me please? Thanks in advance! 

PD: I DON'T WANT CUSTOM FIELDS