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.

In General
Thursday, July 19 2018, 10:20 PM
Share this post:
Responses (4)
  • Accepted Answer

    Friday, July 20 2018, 03:03 AM - #Permalink
    It looks like your company name is longer than the allowed space so it's shortened to fit.
    I would guess you could edit the template to widen that area.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 20 2018, 03:28 AM - #Permalink
    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,

    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 20 2018, 11:09 AM - #Permalink
    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
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 20 2018, 04:53 PM - #Permalink
    Thanks Rune, I did found it and fix it, increased the allowed characters by 1 that was all I needed from 14 to 15, as I mentioned I didn't had enough time to seat and look the code in more detail, Im setting this as demo so was pushing all to get done like for yesterday :).
    The reply is currently minimized Show
Your Reply