Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Category Description Alignment Rate Topic   - - - - -

 
  • tasos1988
  • Member
  • Trial users
  • Join Date: 12-Sep 14
  • 31 posts

Posted 10 November 2014 - 10:38 AM #1

Hello everyone!
I have a little question.
Is there any automatic way to align my categories' description in the middle? When I upgraded from 2.2.5 to 4.2.3 the alignment was gone!
I have more than 350 categories so I cannot do it manually!
Thanks for your time!

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19365 posts

Posted 10 November 2014 - 02:22 PM #2

Hello everyone!
I have a little question.
Is there any automatic way to align my categories' description in the middle? When I upgraded from 2.2.5 to 4.2.3 the alignment was gone!
I have more than 350 categories so I cannot do it manually!
Thanks for your time!


You can use categories:view hook to override category template.

Hope that helps.

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • tasos1988
  • Member
  • Trial users
  • Join Date: 12-Sep 14
  • 31 posts

Posted 12 November 2014 - 09:18 AM #3

I believe you are talking about the file that is located at the path below:

addons/views/categories/view.tpl

I am not sure what to do with it... I am pretty sure that I have to add some code at the code below but I am not sure what to do. I tried some changes but none worked

{if $category_data.description || $runtime.customization_mode.live_editor}
<div class="ty-wysiwyg-content ty-mb-s" {live_edit name="category:description:{$category_data.category_id}"}>{$category_data.description nofilter}</div>
{/if}


do you have any ideas?
thanks anyway!