Jump to content

Category And Subcategories Text Positions.


Recommended Posts

Hello.

I have couple of questions regarding categories, couldn't find an appropriate answer on forum.

1.The main issue is how can modify text in category description? Cause in product description you get a table where you can choose text font, hyperlinks and such, however in category description, its just a plain text.

[sOLVED] 2. And also with category text, it appears in category above subcategories and products. How can i move it to bottom of the page? I couldn't find such thing in positions. It works on homepage, but how can i do it inside category?

[sOLVED] 3. And the last :) In categories, where i don't have products and only subcategories, at the top the line goes "there are no products in this category". Is it possible to remove it? For instance if there are no products, it wont appear.

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

Question #1, even though tinymce is not available for category description like it is for products, you can still enter html in category descriptions. It will display properly in the front office.

 

Question #2 Depending on your theme, you should be able to re-arrange these two items in your category.tpl file

 

Question #3 Again, Depending on your theme and version, you can simply comment out the line in your category.tpl file

 

<!-- <div class="resumecat category-product-count">There are 11 products. </div> -->

 

I have done #1 and #3 on our own site: http://www.whispardesign.com/7-window-treatment-cornice

Link to comment
Share on other sites

I was able to solve second question. Yet i didnt get what you meant in the 1st question answer. Could you please specify how can i change fonts and text in category description.

for q3, i thats not the line i have. im using custom theme, ps v1.4.9, and thats what i have:

 

<p class="warning">{l s='There are no products in this category.'}</p>

Link to comment
Share on other sites

Considering 1st one. If im trying to insert the code into description, for example:

<p><span style="font-size: 12pt; font-family: 'comic sans ms', sans-serif;"> bla bla bla </span></p>

it just appears in front office: bla bla bla

Link to comment
Share on other sites

I was able to solve second question. Yet i didnt get what you meant in the 1st question answer. Could you please specify how can i change fonts and text in category description.

for q3, i thats not the line i have. im using custom theme, ps v1.4.9, and thats what i have:

 

<p class="warning">{l s='There are no products in this category.'}</p>

 

Try commenting that line out on your tpl page and see what happens. It might give you what you are looking for.

Link to comment
Share on other sites

Yes, posted in back office. It might be a linitation of 1.4.9 Someone more knowledgable might chime in here?

 

If you can post a link to your page it would be helpful to find what line needs to be commented out to get rid of the count

Link to comment
Share on other sites

Thank you very much for your help Whispar1.

Hope someone else will be able to help out on the issue.

 

For issue with line, here it is, basically the line which says - there are no products in the category.

my hope page isn't in english, so i doubt that it would be helpful :)

Link to comment
Share on other sites

Here is the section of code that needs to be commented out:

 

 

<span class="category-product-count"><font><font class="">in this category there is no product

</font></font></span>

 

You should see this in your category.tpl file where it makes reference to the product count

 

This is how my code looks on my theme:

 

 

<!-- <div class="resumecat category-product-count">

 

{include file="$tpl_dir./category-count.tpl"}

 

</div> -->

Link to comment
Share on other sites

Here is a solution that was posted for 1.4.7 and again for 1.5

I am only assuming it will work with 1.4.9

http://www.prestashop.com/forums/topic/174037-solved-how-to-add-tinymce-wysiwyg-to-categories-description-text-field/

 

Just create a backup before doing any of this and keep an original version of whatever files are changed so you can reload if it goes screwy.

Link to comment
Share on other sites

×
×
  • Create New...