Search code examples
magentocharacterlimitcheckoutmaxlength

Magento Terms & Conditions max character limit


I have a problem here that even after hours of searching with my friend Google, I'm still getting no results...

My Terms & Conditions are larger then the max character set of the Magento section for it.

Then I would like to know if one of you could please help me to locate the file and the line to edit to make the max character set biger and letting me put all my Terms & Condition without problem.

Thank you very much in advance for your time.

sincerely,

Nicolas


Solution

  • The T&C content is stored in the checkout_agreement table in a field named content

    This field is assigned the datatype text and has a maximum length of around 64kB with actual content depending on how many bytes your UTF-8 encoded text uses.

    You would need to change the datatype to longtext which has a maximum length of 16MB.

    Testing this will be necessary to make sure no validation limits have been imposed on the entry template.