Jump to content

[solved] Name of the products are shorten using some strange rule.


Recommended Posts

Hi,

 

As you can see in attached printscreen, there are 2 products from my website.

One has longer and other has shorter name but they both can be displayed in one line.

 

post-525426-0-40965900-1369649190_thumb.png

 

On the first product Presta just cuts off big part of the name and then add "..." and in the second it just goes into the 2nd line and displays full name.

 

Why there are 2 rules that are completely different?

And more important question, how to make all names to display as 2nd product?

 

Thank you in advance.

Dean

Link to comment
Share on other sites

I see, thank you Vekia.

 

I believe that I can also change value to something other then 35 and get more characters to be displayed?

 

But then again, you can see that in the first product it didn't use 35 characters and then cut the name. Instead it just displayed a few characters and added ... sign it didn't even go to next line.

Edited by Dolke (see edit history)
Link to comment
Share on other sites

Sorry for not replying sooner Vekia.

 

Here is another link: http://www.dekom.co....hanicarski-alat

Basically you can see this on very category page. I will try to find these other truncate functions as this one I changed is not for the product title.

 

@parsifal

 

Ty for taking interest in this issue. Value for that option is:

Recompile templates if the files have been updated

Edited by Dolke (see edit history)
Link to comment
Share on other sites

This value, while expected to behave like the last value "Always recompile" when a .tpl file has been changed, it does not always do that. I have found that sometimes it helps to manually delete the cached template files (all the *.tpl.php files in the directory /YOUR_PS_PATH/cache/smarty/cache/)

Edited by parsifal (see edit history)
Link to comment
Share on other sites

In this folder I see bunch of other folders but not those files you are talking about.

 

Btw, your solution Vekia worked. Thank you once again.

 

so im going to mark this thread as solved ;-)

i just thought that you've got still problem with this ;/

Link to comment
Share on other sites

Yes go ahead please.

 

@perisfal

 

Well I really don't know sir. When I go to that particular folder there are no files like you describe.

Im using prestashop 1.5.4.1 which is the latest version so maybe this was fixed compering to your 1.5.x v.

Link to comment
Share on other sites

×
×
  • Create New...