VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dhatzi on November 26, 2019, 09:39:11 AM

Title: Terms of Services text cannot be fitted
Post by: dhatzi on November 26, 2019, 09:39:11 AM
Hello guys,

I am facing the following issue:

I have added new text in Terms of Use but cannot be fitted, a lot of text is missing since I saved it.

Please advise what to do in order to solve my issue.

Thank you and regards
Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on November 26, 2019, 09:57:14 AM
Do You have enough rights ?
Do You use any special editor that strips the text ?

Jörgen @ Kreativ Fotografi
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on November 26, 2019, 09:57:45 AM
Note that because text cannot be fitted to the width I have created a table of 3 columns and I have added text in the middle column. In that way the text at the end of the text is dissappering after save
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on November 26, 2019, 10:00:59 AM
Hello Jorgen,

I think so TinyMCE :)

I have permissions because the text is saved but not all the text I am adding
Title: Re: Terms of Services text cannot be fitted
Post by: GJC Web Design on November 26, 2019, 11:20:40 AM
without a live url I doubt anyone can help you
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on November 26, 2019, 13:48:54 PM
URL: https://www.doitliketakemoney.gr
Title: Re: Terms of Services text cannot be fitted
Post by: jjk on November 26, 2019, 16:57:37 PM
With that link we can see your workaround, but not the original problem. (I suppose it's a problem with your T3 template).
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on November 27, 2019, 10:23:39 AM
Thank you for your replies.

The question is: is there a limitation on how much characters can be fitted in the Terms and Services?  or it is a problem on my website? Normaly had you tested to add a long text in the Terms and it worked?
Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on November 27, 2019, 11:18:58 AM
I have not tested this, I use include_content_item to include a Joomla article into the TOS field. This way I can have the same text available on the website through a menu item for the customer to view.

Include a numbered amount of characters and see when they are not stored any more.  Then You will discover if there is a limit.

Jörgen @ Kreativ Fotografi
Title: Re: Terms of Services text cannot be fitted
Post by: jjk on November 27, 2019, 13:43:51 PM
Quote from: dhatzi on November 27, 2019, 10:23:39 AM
The question is: is there a limitation on how much characters can be fitted in the Terms and Services?  or it is a problem on my website? Normaly had you tested to add a long text in the Terms and it worked?

In the database the data object vendor_terms_of_service is set to TEXT = 65,535 characters - 64 KB
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on December 02, 2019, 12:20:23 PM
Thank you Jorgen and jjk.

I will test both and let you know.
Title: Re: Terms of Services text cannot be fitted
Post by: jenkinhill on December 02, 2019, 12:49:24 PM
Jörgen thanks for the tip about using  include_content_item.  I have always used the "Articles Anywhere" plugin from Regular Labs, but include_content_item seems to offer additional functionality.
Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on December 02, 2019, 12:58:14 PM
Hello Jenkins

I have contributed to the code a couple of times. The last contribution, multi language, has only been implemented in my personal code. If You are interested I would gladly send You a copy.

Jörgen @ Kreativ Fotografi
Title: Re: Terms of Services text cannot be fitted
Post by: jenkinhill on December 02, 2019, 15:03:59 PM
Thanks, Jörgen, but I don't need multi-language. We make it a policy to only work on sites in English, not out of any prejudice, but because we now only have clients from UK and USA.
Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on December 02, 2019, 16:05:17 PM
That is understandable. Have a Nice Day.
Jörgen @ kreativ fotografi
Title: Re: Terms of Services text cannot be fitted
Post by: dhatzi on December 06, 2019, 12:39:22 PM
Hello guys,

I have applied jjk solution and it worked, I have changed database field type of vendor_terms_of_service from text to longtext and I fixed my issue.

Thank you very much
Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on December 06, 2019, 13:39:50 PM
You have to be aware that this will revert on the next upgrade of VM.

Jörgen @ Kreativ Fotografi
Title: Re: Terms of Services text cannot be fitted
Post by: Milbo on December 11, 2019, 09:23:00 AM
Do you mean this plugin? https://www.kksou.com/php-gtk2/Joomla/Include-Content-Item-plugin.php?

I added mediumtext now to the core

Title: Re: Terms of Services text cannot be fitted
Post by: Jörgen on December 11, 2019, 10:10:49 AM
Quote from: Milbo on December 11, 2019, 09:23:00 AM
Do you mean this plugin? https://www.kksou.com/php-gtk2/Joomla/Include-Content-Item-plugin.php?

I added mediumtext now to the core



Yes, I mean this plugin. I have also added multilanguage support to the plugin. That is, You have to make the connection between the different languages in the normal Joomla way to make it work. Makes good reuse of articles, for example TOS.

Jörgen @ Kreativ Fotografi