Purchase note character limit

Hi,

Is there any option available to increase the character size limit to Purchase Notes?

Kind regards,

Bryan van Tol

Hi,

Please try this PHP snippet:

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		if(isset($form['fields']['purchase_note'])){
		  $form['fields']['purchase_note']['max_length'] = 123;
		}

		return $form;
	},
	1000
);

P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

Hi Andrii,

Thank you for the quick reply. I just added license keys to my profile.

Unfortunately, the snippet does not have my desired outcome.
I am trying to add a link from the admin page into the purchase note from a listing. However, it always cuts off after 237 characters.

Please see added screenshot.

One additional note, I see that the ‘%’ character is being excluded. Is there a way to keep all input in the note?

This is strange, the default character limit is 10,000 for the purchase note field. Please post a full URL here and we’ll try to test it locally.

Hi ihor,

I’m not sure that will work, as this is seen from the admin portal, or as part of the order confirmation.

Will a login work for you?

Hi,

Please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.