Page 1 of 1

Restrict urls in checkout comments

Posted: Mon Sep 26, 2022 9:11 pm
by htwp
Opencart 3.0.3.3.

Is there any way i can restrict links (urls) comments in checkout?

Re: Restrict urls in checkout comments

Posted: Tue Sep 27, 2022 7:11 pm
by paulfeakins
htwp wrote:
Mon Sep 26, 2022 9:11 pm
Is there any way i can restrict links (urls) comments in checkout?
Why? If someone is placing a genuine order it's very unlikely they are sending you spam?

Re: Restrict urls in checkout comments

Posted: Tue Sep 27, 2022 10:31 pm
by JNeuhoff
Paul is right. If you face issues with many fake account registrations, or spam mails, you might want to consider our SpamBot Buster.

Re: Restrict urls in checkout comments

Posted: Thu Oct 13, 2022 4:58 pm
by htwp
Hi to everyone and thank you for your reply. The reason i need this is sometimes customers write in url (like https://...........) with many characters more than 100 and inside admin order page it breaks the columns. So i thought that if i restrict URLs never again will happen

Re: Restrict urls in checkout comments

Posted: Fri Oct 14, 2022 4:47 pm
by paulfeakins
htwp wrote:
Thu Oct 13, 2022 4:58 pm
Hi to everyone and thank you for your reply. The reason i need this is sometimes customers write in url (like https://...........) with many characters more than 100 and inside admin order page it breaks the columns. So i thought that if i restrict URLs never again will happen
This is a prime example of why it's better to explain the PROBLEM not what YOU think is the solution.

A simple bit of CSS will fix the problem with columns breaking.

Re: Restrict urls in checkout comments

Posted: Fri Nov 04, 2022 5:05 pm
by htwp
paulfeakins wrote:
Fri Oct 14, 2022 4:47 pm
htwp wrote:
Thu Oct 13, 2022 4:58 pm
Hi to everyone and thank you for your reply. The reason i need this is sometimes customers write in url (like https://...........) with many characters more than 100 and inside admin order page it breaks the columns. So i thought that if i restrict URLs never again will happen
This is a prime example of why it's better to explain the PROBLEM not what YOU think is the solution.

A simple bit of CSS will fix the problem with columns breaking.
Can you provide the css fix or it's a bit more complicated to write it here?

Thank you for your answer

Re: Restrict urls in checkout comments

Posted: Fri Nov 04, 2022 10:13 pm
by paulfeakins
htwp wrote:
Fri Nov 04, 2022 5:05 pm
Can you provide the css fix or it's a bit more complicated to write it here?
Try something like:

Code: Select all

overflow-wrap: break-word;

Re: Restrict urls in checkout comments

Posted: Fri Nov 04, 2022 10:33 pm
by JNeuhoff
Or you could try this CSS:

Code: Select all

overflow-x: scroll;