Hello, does any one have experience or could share advise about this issue.
Store name get cut off for one letter and the last letter is replaced by 3 dots, see attached screen shots. If I change the letter in the code (that mean delete the dots and type the letter it will display correctly but you cant do that manually does not make sense.
No errors reported in the logs.
Thanks!
Store name get cut off for one letter and the last letter is replaced by 3 dots, see attached screen shots. If I change the letter in the code (that mean delete the dots and type the letter it will display correctly but you cant do that manually does not make sense.
No errors reported in the logs.
Thanks!
In General
Share this post:
Responses (4)
-
Accepted Answer
-
Accepted Answer
Hey Daniel,
Thanks for the reply, the template would not do the job the characters allowed are enough to fit the name. Check the attached screenshots.
The first is where the template design allow store name field width 199 px, the second is where I edit that to 240px, that does not change the outcome of shortening the name, because that is coming not from layout design but instead from the code, php have this string function I guess it is used here to round so to speak the strings if they exceed certain length or count, for an example:
in (PHP 4, PHP 5, PHP 7)
substr_count — Count the number of substring occurrences
int substr_count ( string $haystack , string $needle [, int $offset = 0 [, int $length ]] )
substr_count() returns the number of times the needle substring occurs in the haystack string. Please note that needle is case sensitive.
The problem I have is that I don't have enough time to read the whole code, so would be nice if someone from Arastta developers could give me a tip where to locate the function, I can change the allowed strings myself.
Thanks anyway,
Cheers -
Accepted Answer
Honestly... why bother, it's in admin for only the admins to see ...? It doesn't matter for anyone at all ...
Anyhow the limit has to be somewhere, else things get messed up because of missing space. There needs to be room for the dots too, for those being even longer ...
This isn't exactly anything anyone should waste time one. Still, for a dev it shouldn't take long to find it: https://github.com/arastta/arastta/blob/master/admin/controller/common/header.php#l261 -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »